OdooWiki OCA HUB

PoS Order Margin & Account Invoice Margin

pos_margin_account_invoice_margin folder_open OCA/pos open_in_new
Point Of Sale License: AGPL-3

This module is a glue module between two OCA modules, pos_margin (same repository) and account_invoice_margin (OCA/margin-analysis).

With this module, invoices created from point of sale has correct margin.

Note

When installing this module, the margin will be computed from invoices that has been generated from point of sale.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

This module makes sure that invoices generated from Point of Sale orders carry the purchase cost of each product, so the margin shown on those invoices is correct.

When you invoice a Point of Sale order, Odoo creates invoice lines from the order lines. Without this module, those invoice lines do not know the purchase cost of the product, so the margin on the invoice is wrong.

This module fixes that in two ways:

  • For new invoices: each time an invoice line is created from a Point of Sale order line, the purchase price of the order line is copied onto the invoice line. This happens automatically when the invoice is generated from the Point of Sale.
  • For existing invoices: when you install the module, a one-time process runs in the background. It looks at all Point of Sale orders that are already invoiced and whose margin is not already complete, finds the related invoice, and fills in the purchase price on each invoice line by matching the product with the order lines. This may take a while if you have many orders.

The module works together with the Point of Sale margin and invoice margin features. It does not add new menus or screens; it only changes how invoice lines are filled in. The models touched are pos.order and, indirectly, the invoice lines created from it.

Models and fields (1)
  • pos.order · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 12.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: 1 confirmed, 8 with no information of 9 versions.

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.