TIP: You can type at any time to perform a new search.
Manage language in contacts
partner_contact_lang · OCA/partner-contact
- Repository
- OCA/partner-contact · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Sales
- Folder size
- 0.09 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/partner-contact
- Last tracking update
- 2026-08-07 08:42:56
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- Weblate, OCA-git-bot, oca-ci, Antoni Marroig Campomar
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Odoo by default propagate language field to the created contacts from their form, but it doesn't allow to change it once created. This module fills this gap, and also provides other facilities for the contact language management: 1. Put the language of the parent company when the contact doesn't have a language and this parent company is assigned. 2. When the company changes the language, it fills with the same language all the contacts that don't have any. 3. Show the language in the inner narrowed Contact form and set the new conctact with a different language if needed. 4. Search and also group contacts by their language.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_partner_form |
view.partner.address.form.extension | res.partner | form | Inherits base.view_partner_form |
view_res_partner_filter |
res.partner.filter.extension | res.partner | Inherits base.view_res_partner_filter |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (2)-
onchange_parent_id(self)@api.onchange('parent_id')Change language if the parent company changes and there's no language defined yet. A special case is made for virtual records, where default lang value is assigned at startup, so we always overwrite language in that case. -
write(self, vals)Propagate a language change in the partner to the child contacts.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…