From aa0bafca8493ca91e53a60d4623ed6a2c52f779e Mon Sep 17 00:00:00 2001 From: Kristof Bernaert Date: Sun, 4 Oct 2026 17:57:33 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20add=20dlv=5Fpartner=5Fchild=5Faddress?= =?UTF-8?q?=5Fstreet=20=E2=80=94=20street/street2=20and=20email=20below=20?= =?UTF-8?q?phone=20on=20child=20cards=20of=20the=20partner=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dlv_partner_child_address_street/CHANGELOG.md | 25 ++++++++++ dlv_partner_child_address_street/README.md | 47 +++++++++++++++++++ dlv_partner_child_address_street/__init__.py | 0 .../__manifest__.py | 26 ++++++++++ .../views/res_partner_views.xml | 19 ++++++++ 5 files changed, 117 insertions(+) create mode 100644 dlv_partner_child_address_street/CHANGELOG.md create mode 100644 dlv_partner_child_address_street/README.md create mode 100644 dlv_partner_child_address_street/__init__.py create mode 100644 dlv_partner_child_address_street/__manifest__.py create mode 100644 dlv_partner_child_address_street/views/res_partner_views.xml diff --git a/dlv_partner_child_address_street/CHANGELOG.md b/dlv_partner_child_address_street/CHANGELOG.md new file mode 100644 index 0000000..7180708 --- /dev/null +++ b/dlv_partner_child_address_street/CHANGELOG.md @@ -0,0 +1,25 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [16.0.1.1.0] - 2026-10-04 + +### Changed +- Email moved from directly under the name to below phone/mobile on the child + cards. + +## [16.0.1.0.1] - 2026-10-04 + +### Changed +- Street2 is shown on its own line (only when filled) instead of after a + comma behind street. + +## [16.0.1.0.0] - 2026-10-04 + +### Added +- Initial release. +- Street and street2 on the child address cards of the partner form + (Contacts & Addresses tab), for address-type children only. diff --git a/dlv_partner_child_address_street/README.md b/dlv_partner_child_address_street/README.md new file mode 100644 index 0000000..f6e5459 --- /dev/null +++ b/dlv_partner_child_address_street/README.md @@ -0,0 +1,47 @@ +# dlv_partner_child_address_street + +## Overview + +In the partner form, the **Contacts & Addresses** tab lists child records as +kanban cards. For address-type children (delivery, invoice, other, ...) the +standard card shows only zip, city and country, so several addresses of the +same company look identical. + +This addon changes those cards in two ways: + +1. **Street and street2** are added to address-type children. Each is shown on + its own line and omitted when empty. +2. **Email is moved** from directly under the name to below phone/mobile, so the + name, address and phone read as one block. This applies to all child cards, + including contact (person) children. + +Resulting order: name, function, street, street2, zip/city, country, phone, +mobile, email. + +## How it works + +Pure view inheritance of `base.view_partner_form`; no models, no Python, no +extra fields. `street` and `street2` are already loaded by the standard +`child_ids` kanban, so no additional data is fetched. An xpath inserts the line +before the zip/city block, inside the existing `type != 'contact'` condition. A +second xpath moves the existing email `div` after the mobile `div` +(`position="move"`). + +Street and street2 are not shown for child contacts (persons); only the email +move affects them. + +## Scope + +- Only the inline `child_ids` kanban of the partner form. +- Other views (sale order address popup, partner kanban, ...) are not touched. + +## Compatibility + +- Odoo 16.0 (Community and Enterprise) +- Depends on: `base` + +## Credits + +bv Domus La Vila — https://domuslavila.eu + +License: LGPL-3 diff --git a/dlv_partner_child_address_street/__init__.py b/dlv_partner_child_address_street/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dlv_partner_child_address_street/__manifest__.py b/dlv_partner_child_address_street/__manifest__.py new file mode 100644 index 0000000..0b79fa6 --- /dev/null +++ b/dlv_partner_child_address_street/__manifest__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +{ + "name": "DLV Partner Child Address Street", + "summary": "Show street and street2 on the child contact/address cards " + "of the partner form", + "description": """ +In the partner form, the "Contacts & Addresses" tab shows child addresses +(delivery, invoice, other) as kanban cards that only display zip, city and +country. Addresses of the same company therefore look identical. + +This addon adds street and street2 (each on its own line, only when filled) +to the cards of address-type children. Child contacts (persons) are unchanged. +""", + "author": "bv Domus La Vila", + "website": "https://domuslavila.eu", + "category": "Contacts", + "version": "16.0.1.1.0", + "license": "LGPL-3", + "depends": ["base"], + "data": [ + "views/res_partner_views.xml", + ], + "installable": True, + "application": False, + "auto_install": False, +} diff --git a/dlv_partner_child_address_street/views/res_partner_views.xml b/dlv_partner_child_address_street/views/res_partner_views.xml new file mode 100644 index 0000000..addd2c4 --- /dev/null +++ b/dlv_partner_child_address_street/views/res_partner_views.xml @@ -0,0 +1,19 @@ + + + + res.partner.form.child.street + res.partner + + + + +
+
+
+ + + + +
+
+