Sale Partner Sale Contact
sale_partner_sale_contact · OCA/sale-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by20/253 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module adds a Sale Contact field to quotations, sale orders, and invoices.
Key concept — keep the company as customer, name the person who drives the deal
In standard Odoo, partner_id is the commercial/legal counterpart of
the document: it drives the fiscal position, pricelist, payment terms,
receivable account and the invoice/shipping addresses. While it can
technically hold a child contact, using it to store the "contact person"
forces an individual into a field that is meant to represent the
invoiced/contracted entity — polluting analytic accounting and
reporting.
This module addresses a different need: tracking a named commercial
contact person (e.g. procurement manager, project lead, key account
contact) who is the day-to-day point of contact for a deal, while
keeping the company as the commercial entity in partner_id. That
person travels consistently across the sale order, its invoices, and
(with the companion module) any generated projects — something
partner_id cannot guarantee, since each document computes its own
partner_id.
Billing and shipping addresses remain independent and unaffected.
This distinction is also fully compatible with B2C: when the customer is an individual without child contacts, the field simply remains empty and the ordinary Odoo workflow is unchanged.
The sale contact field allows you to:
- Select a specific contact person for a sale order or quotation
- Automatically propagate the contact from sale order to generated invoices
- Display the contact person on PDF reports (quotations, orders, invoices)
The contact must be a child contact (person) of the selected customer.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- sale_partner_sale_contact_on_project, sale_partner_sale_contact_website_sale, website_sale_partner_sale_contact
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
report_invoice_document |
report_invoice_document | ir.ui.view | qweb | Inherits account.report_invoice_document |
report_saleorder_document |
report_saleorder_document | ir.ui.view | qweb | Inherits sale.report_saleorder_document |
res_config_settings_view_form |
res.config.settings.view.form.inherit.sale.partner.sale.contact | res.config.settings | form | Inherits sale.res_config_settings_view_form |
view_move_form |
account.move.form.sale_contact_partner | account.move | form | Inherits account.view_move_form |
view_order_form |
sale.order.form.sale_contact_partner | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
-
sale_contact_partner_idMany2onecopy=Falsehelp='Contact person for this invoice. Only child contacts of the partner can be selected.'
No public methods.
-
sale_display_contact_on_reportsBooleandefault=Truehelp='If enabled, the sale contact will be displayed on sale orders and invoices PDF reports.'string='Display sale contact on reports'
No public methods.
-
sale_display_contact_on_reportsBooleanhelp='If enabled, the sale contact will be displayed on sale orders and invoices PDF reports.'readonly=Falserelated='company_id.sale_display_contact_on_reports'string='Display sale contact on reports'
No public methods.
-
sale_contact_invoice_idsOne2many → account.moveargs: 'account.move', 'sale_contact_partner_id' -
sale_contact_sale_idsOne2many → sale.orderargs: 'sale.order', 'sale_contact_partner_id'
No public methods.
-
sale_contact_partner_idMany2one → res.partnercomodel_name='res.partner'copy=Truedomain="[('id', 'child_of', partner_id), ('is_company', '=', False), ('id', '!=', partner_id)]"help='Contact person for this record. Only child contacts of the partner can be selected.'string='Sale Contact'
No public methods.
No new fields.
Public methods (0)No public methods.
Loading…