Partner contact sale info propagation
partner_contact_sale_info_propagation · OCA/sale-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
0 migration notes
1 model
0 views
0 HTTP endpoints
Description
This module propagates the Salesperson from a company to its contacts.
Odoo already puts the Salesperson of the parent company on a contact when the contact is created under it (or moved to it) and the contact has no Salesperson of its own. This module completes that behavior:
- When the company changes its Salesperson, it fills with the same Salesperson all the contacts that don't have any or that have the previous Salesperson of the company. The change is propagated down the whole contacts hierarchy.
- Contacts having their own, different Salesperson are left untouched.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)Propagate the Salesperson change in the partner to the child contacts. Odoo only sets the salesperson of the parent on its contacts when they are created or re-parented and they have no salesperson yet (see `res.partner._compute_user_id`), so here we take care of the later changes done in the company, updating the contacts that have no salesperson or that still have the previous one of the company.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…