OdooWiki OCA HUB

Account Invoice Margin Sale Delivered Sync

account_invoice_margin_sale_delivered_sync folder_open OCA/margin-analysis open_in_new
Account License: AGPL-3

This module allows to keep purchase price delivered between sale order line and invoice lines.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Keeps the cost price used for margin on customer invoices in line with the delivered cost from the related sales order, and lets you choose whether posted invoices are updated too.

This module links the margin (cost price) shown on customer invoices with the delivered cost coming from the related sales order lines, so the profit you see on an invoice matches what was actually delivered.

  • When an invoice line is created from a sales order, its cost price is taken from the delivered cost of the sales order line, falling back to the sales order line cost or the product's standard cost.
  • A new company setting, "Sync sale delivered margin on posted invoices", is added in the Sales settings. It is turned on by default.
  • If this setting is off, invoice lines that belong to a posted invoice are left untouched when the cost price is recalculated, so their margin stays as it was.
  • If the setting is on, posted invoice lines are recalculated like draft ones.

The module touches invoice lines (account.move.line), sales order lines (sale.order.line), companies (res.company) and the settings screen (res.config.settings). The option appears in the Sales settings form, next to the margin module option.

Models and fields (4)
  • res.company · extends an existing modelmargin_sale_sync_invoice_posted (Sync sale delivered margin on posted invoices)
  • sale.order.line · extends an existing model
  • account.move.line · extends an existing model
  • res.config.settings · extends an existing modelmargin_sale_sync_invoice_posted

Text generated by AI (DeepSeek) from reading the Odoo 15.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/margin-analysis.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.