Hibou Odoo Suite: Accounting Modules: Invoice Margin

Repository Versions:



Hibou Corp.




The purpose of this documentation is to outline the use case and processes associated with Hibou's Invoice Margin module. The Invoice Margin module displays margin calculation on invoices. If the invoice line is associated with a sale order line, the cost will then come from the sale order line.

Getting Started

First thing's first, we want to install the module! Navigate to the Apps application and search 'Invoice Margin'. When ready, hit Install.

Odoo CMS - a big picture

  Good to Know!

The Invoice Margin module requires both the Invoicing and Margins in Sale Orders modules. However, if you do not already have these modules installed, Odoo will install them for you during this module's installation.


To get started, navigate to the Accounting application.

Odoo - Sample 1 for three columns

Margin on Invoices

Once there, click on Sales and then Customer Invoices.

Select an invoice from the list of invoices. On the invoice form view, you will see, below Amount Due, a new Margin field that displays the profitability by calculating the difference between the Unit Price and the Cost.

Odoo CMS - a big picture


The Invoice Margin module adds a new computed field margin to the 'account.invoice.line` and `account.invoice` models. It also adds a `purchase_price` Float field to `account.invoice.line` for Cost. Both the `margin` and `purchase_price` fields are added to the Account Invoice form view.