Sales Lines Cost Control

sale_line_cost_control
REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/10.0/sale_line_cost_control
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSGuewen Baconnier, Stéphane Bidoul (ACSONE), Francisco Fernández @PlanetaTIC, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_planner
    - procurement
    - sale_margin
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
sale_margin_sale_order_line_form sale.order.form sale.order xpath Inherits sale_margin.sale_margin_sale_order_line
sale_margin_sale_order_line_tree sale.order.form sale.order xpath Inherits sale_margin.sale_margin_sale_order_line_form
view_set_sale_line_purchase_price Set Cost set.sale.line.purchase.price form New
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