Sale Margin Delivered

sale_margin_delivered
REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/18.0/sale_margin_delivered
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Carlos Roca, Bhavesh Heliconia
WEBSITE
WEBSITEhttps://github.com/OCA/margin-analysis
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - sale_margin
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Computes sale order lines margins for the delivered items.

This module takes in consideration Outgoing and Returns.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale_margin.sale_margin_sale_order_line_form
Models touched (2)

New fields (3)
  • margin_delivered Float
    compute='_compute_margin_delivered' help='Total Margin of all delivered products.\n\nFormula: Delivered Quantities * (Unit Price with Discounts - Average Unit Cost of Delivered Products)\n\nValue may differ from Cost Price because Stock Valuation Layers are used instead of Cost on line.' store=True
  • margin_delivered_percent Float
    compute='_compute_margin_delivered' help='Margin percent between the Unit Price with discounts and Delivered Unit Cost.\n\nFormula: ((Unit Price with Discounts - Average Unit Cost of delivered products) / Unit Price with Discounts)' readonly=True store=True
  • purchase_price_delivery Float
    compute='_compute_margin_delivered' help='Average Unit Cost of delivered products.\n\nFormula: Value Delivered / Quantity Delivered\n\nWhen using the FIFO method, the value of this field may not match the actual cost of the product delivered.\nThere may also be differences with the costing of the Sales from Deliveries report, because when the sales order is created, it is not known exactly which units will actually be delivered to calculate their cost.\nThis is because when the sales order is created, it is not known which units will actually be delivered to calculate their actual cost. You do not have this information until you validate the corresponding delivery note.' store=True
Public methods (0)

No public methods.

New fields (1)
  • margin_delivered Float
    readonly=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/16.0/sale_margin_delivered
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), Weblate, OCA-git-bot, oca-ci, Eduardo De Miguel, pilarvargas-tecnativa, josep-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/margin-analysis
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:54
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - sale_margin
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale_margin.sale_margin_sale_order_line_form
Models touched (2)

New fields (3)
  • margin_delivered Float
    compute='_compute_margin_delivered' help='Total Margin of all delivered products.\n\nFormula: Delivered Quantities * (Unit Price with Discounts - Average Unit Cost of Delivered Products)\n\nValue may differ from Cost Price because Stock Valuation Layers are used instead of Cost on line.' store=True
  • margin_delivered_percent Float
    compute='_compute_margin_delivered' help='Margin percent between the Unit Price with discounts and Delivered Unit Cost.\n\nFormula: ((Unit Price with Discounts - Average Unit Cost of delivered products) / Unit Price with Discounts)' readonly=True store=True
  • purchase_price_delivery Float
    compute='_compute_margin_delivered' help='Average Unit Cost of delivered products.\n\nFormula: Value Delivered / Quantity Delivered\n\nWhen using the FIFO method, the value of this field may not match the actual cost of the product delivered.\nThere may also be differences with the costing of the Sales from Deliveries report, because when the sales order is created, it is not known exactly which units will actually be delivered to calculate their cost.\nThis is because when the sales order is created, it is not known which units will actually be delivered to calculate their actual cost. You do not have this information until you validate the corresponding delivery note.' store=True
Public methods (0)

No public methods.

New fields (1)
  • margin_delivered Float
    readonly=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/15.0/sale_margin_delivered
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, CarlosRoca13, josep-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/margin-analysis
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:39
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/margin-analysis:
    - sale_margin_security
odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - stock_account
    - stock
    - barcodes
    - sale_margin
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale_margin.sale_margin_sale_order_line_form
Models touched (2)

New fields (3)
  • margin_delivered Float
    compute='_compute_margin_delivered' store=True
  • margin_delivered_percent Float
    compute='_compute_margin_delivered' readonly=True store=True
  • purchase_price_delivery Float
    compute='_compute_margin_delivered' store=True
Public methods (0)

No public methods.

New fields (1)
  • margin_delivered Float
    readonly=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/13.0/sale_margin_delivered
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSCarlos Dauden, sergio-teruel, Sergio Teruel, oca-travis, Weblate, OCA-git-bot, David
WEBSITE
WEBSITEhttps://github.com/OCA/margin-analysis
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/margin-analysis:
    - sale_margin_security
odoo/odoo:
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale_margin
    - sale_management
    - sale
    - sales_team
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale.view_order_form
Models touched (2)

New fields (3)
  • margin_delivered Float
    compute='_compute_margin_delivered' store=True string='Margin Delivered'
  • margin_delivered_percent Float
    compute='_compute_margin_delivered' readonly=True store=True string='Margin Delivered Percent'
  • purchase_price_delivery Float
    compute='_compute_margin_delivered' store=True string='Purchase Price Delivered'
Public methods (0)

No public methods.

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

No public methods.

REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/12.0/sale_margin_delivered
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSdavid, OCA Transbot, sergio-teruel, João Marques, Sergio Teruel, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/margin-analysis
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/margin-analysis:
    - sale_margin_security
odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - decimal_precision
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - stock_account
    - stock
    - barcodes
    - sale_margin
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale.view_order_form
Models touched (2)

New fields (3)
  • margin_delivered Float
    compute='_compute_margin_delivered' store=True string='Margin Delivered'
  • margin_delivered_percent Float
    compute='_compute_margin_delivered' oldname='margin_delivered_percent' readonly=True store=True string='Margin Delivered Percent'
  • purchase_price_delivery Float
    compute='_compute_margin_delivered' store=True string='Purchase Price Delivered'
Public methods (0)

No public methods.

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

No public methods.

REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/11.0/sale_margin_delivered
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Sergio Teruel, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/margin-analysis
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/margin-analysis:
    - sale_margin_security
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
    - sale_margin
    - sale_management
    - sale
    - sales_team
    - account
    - analytic
    - portal
    - http_routing
    - account_invoicing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order xpath Inherits sale.view_order_form
Models touched (2)

New fields (3)
  • margin_delivered Float
    compute='_compute_margin_delivered' store=True string='Margin Delivered'
  • margin_delivered_percent Float
    compute='_compute_margin_delivered' oldname='margin_delivered_percent' readonly=True store=True string='Margin Delivered Percent'
  • purchase_price_delivery Float
    compute='_compute_margin_delivered' store=True string='Purchase Price Delivered'
Public methods (0)

No public methods.

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

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/margin-analysis
PULL REQUEST
PULL REQUEST[17.0][MIG] sale_margin_delivered: Migration to 17.0 (#239)