| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/account-invoicing |
| GIT | |
| GIT | https://github.com/OCA/account-invoicing.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/account-invoicing/tree/8.0/invoice_margin |
| VERSION | |
| VERSION | 2.0.0 |
| CATEGORY | |
| CATEGORY | Invoicing |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), GRAP |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), GRAP |
| COMMITTERS | |
| COMMITTERS | Sylvain LE GAL, GitHub, OCA Transbot, OCA-git-bot |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:11:24 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web_kanban - web - product - decimal_precision - report - analytic - board - edi - email_template |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_invoice_form |
account.invoice | xpath | Inherits account.invoice_form | |
view_account_invoice_tree |
account.invoice | field | Inherits account.invoice_tree |
margin
Float
compute='_compute_margin'
digits_compute=dp.get_precision('Product Price')
help='It gives profitability by calculating the difference between the Unit Price and the cost price.'
multi='margin'
store=True
args: 'Margin'
margin_percent
Float
compute='_compute_margin'
digits_compute=dp.get_precision('PoS Order Margin Percent')
multi='margin'
store=True
args: 'Margin (%)'
No public methods.
margin
Float
compute='_compute_multi_margin'
digits_compute=dp.get_precision('Product Price')
multi='multi_margin'
store=True
args: 'Margin'
margin_percent
Float
compute='_compute_multi_margin'
digits_compute=dp.get_precision('Product Price')
multi='multi_margin'
store=True
args: 'Margin (%)'
purchase_price
Float
copy=False
digits_compute=dp.get_precision('Product Price')
string='Cost Price'
create(self, vals)
product_id_change(self, product, uom_id, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, currency_id=False, company_id=None)