Repository
OCA/margin-analysis · module folder · Try on Runboat
Module version
1.0.0
Category
Sales
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://www.camptocamp.com
Last tracking update
2026-08-07 07:17:48
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Guewen Baconnier, Stéphane Bidoul (ACSONE), Francisco Fernández @PlanetaTIC, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
sale_margin_sale_order_line_form sale.order.form sale.order form Inherits sale_margin.sale_margin_sale_order_line
sale_margin_sale_order_line_tree sale.order.form sale.order form Inherits sale_margin.sale_margin_sale_order_line_form
view_set_sale_line_purchase_price Set Cost set.sale.line.purchase.price form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (1)
  • purchase_price_missing Boolean
    compute='_compute_purchase_price_missing' string='Missing Cost'
Public methods (0)

No public methods.

New fields (3)
  • currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr> required=True string='Currency'
  • line_id Many2one → sale.order.line
    comodel_name='sale.order.line' default=<expr> readonly=True required=True string='Sale Line'
  • purchase_price Float
    digits=dp.get_precision('Product Price') groups='base.group_user' help='Cost of the product template used for standard stock valuation in accounting and used as a base price on purchase orders. Expressed in the default unit of measure of the product.' string='Cost'
Public methods (1)
  • confirm_purchase_price(self)
    @api.multi