Files

48 lines
1.5 KiB
Markdown

# 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