Skip to content
Health
82/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by20/25
    3 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 0 migration notes 6 models 5 views 0 HTTP endpoints

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

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
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

New fields (1)
  • sale_contact_partner_id Many2one
    copy=False help='Contact person for this invoice. Only child contacts of the partner can be selected.'
Public methods (0)

No public methods.

New fields (1)
  • sale_display_contact_on_reports Boolean
    default=True help='If enabled, the sale contact will be displayed on sale orders and invoices PDF reports.' string='Display sale contact on reports'
Public methods (0)

No public methods.

New fields (1)
  • sale_display_contact_on_reports Boolean
    help='If enabled, the sale contact will be displayed on sale orders and invoices PDF reports.' readonly=False related='company_id.sale_display_contact_on_reports' string='Display sale contact on reports'
Public methods (0)

No public methods.

New fields (2)
  • sale_contact_invoice_ids One2many → account.move
    args: 'account.move', 'sale_contact_partner_id'
  • sale_contact_sale_ids One2many → sale.order
    args: 'sale.order', 'sale_contact_partner_id'
Public methods (0)

No public methods.

New fields (1)
  • sale_contact_partner_id Many2one → res.partner
    comodel_name='res.partner' copy=True domain="[('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'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…