Hibou Odoo Suite: Accounting Modules: Invoice Margin
Purpose
This documentation outlines the use case and processes associated with Hibou's Invoice Margin module for Odoo 14. 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.
Once there, remove the 'Apps' filter, then search 'Invoice Margin'. When ready, hit Install.
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.
Process
To get started, navigate to the Accounting app.
Technical
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.