Repository
OCA/margin-analysis · module folder · Try on Runboat
Module version
1.0.0
Category
Account
Folder size
0.14 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/margin-analysis
Last tracking update
2026-08-07 09:06:26
Authors
Odoo Community Association (OCA), GRAP, Tecnativa
Maintainers
Odoo Community Association (OCA), GRAP, Tecnativa
Committers
OCA-git-bot, oca-ci, Alexis VANNOT
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_invoice_margin_sale
Description
This module allows to show sales margin in invoices.

The new information is available:

- on the invoice form view

![](../static/description/account_invoice_form.png)

- and on the invoice tree view

![](../static/description/account_invoice_tree.png)

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_margin_form_tree account.move tree Inherits account.view_move_form
view_account_invoice_tree account.move tree Inherits account.view_invoice_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • margin Float
    readonly=True string='Margin Analysis'
Public methods (0)

No public methods.

New fields (3)
  • margin Monetary
    compute='_compute_margin' currency_field='currency_id' store=True
  • margin_percent Float
    compute='_compute_margin' digits='Product Price' store=True string='Margin (%)'
  • margin_signed Monetary
    compute='_compute_margin' currency_field='currency_id' store=True
Public methods (0)

No public methods.

New fields (4)
  • margin Float
    compute='_compute_margin' digits='Product Price' store=True
  • margin_percent Float
    compute='_compute_margin' readonly=True store=True string='Margin (%)'
  • margin_signed Float
    compute='_compute_margin' digits='Product Price' store=True
  • purchase_price Float
    compute='_compute_purchase_price' digits='Product Price' readonly=False store=True string='Cost'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…