Update costs from purchase

purchase_stock_cost_update
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/18.0/purchase_stock_cost_update
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, David Vidal, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - onboarding
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to adjust the valuation of the incoming goods related to their
purchase order from the purchase line itself.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order sheet Inherits purchase.purchase_order_form
stock_valuation_layer_form stock.valuation.layer notebook Inherits stock_account.stock_valuation_layer_form
Models touched (3)

New fields (2)
  • valuation_difference_report Html
    compute='_compute_valuation_difference_report'
  • valuation_differs Boolean
    compute='_compute_valuation_differs'
Public methods (1)
  • action_apply_price_difference(self)

New fields (2)
  • valuation_difference Float
    compute='_compute_valuation_differs' store=True
  • valuation_differs Boolean
    compute='_compute_valuation_differs' store=True
Public methods (0)

No public methods.

New fields (2)
  • cost_update_history Text
    readonly=True
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/16.0/purchase_stock_cost_update
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSOCA-git-bot, David Vidal, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:12:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to adjust the valuation of the incoming goods related to their
purchase order from the purchase line itself.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order sheet Inherits purchase.purchase_order_form
stock_valuation_layer_form stock.valuation.layer notebook Inherits stock_account.stock_valuation_layer_form
Models touched (3)

New fields (2)
  • valuation_difference_report Html
    compute='_compute_valuation_difference_report'
  • valuation_differs Boolean
    compute='_compute_valuation_differs'
Public methods (1)
  • action_apply_price_difference(self)

New fields (2)
  • valuation_difference Float
    compute='_compute_valuation_differs' store=True
  • valuation_differs Boolean
    compute='_compute_valuation_differs' store=True
Public methods (0)

No public methods.

New fields (2)
  • cost_update_history Text
    readonly=True
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/purchase-workflow
PULL REQUEST
PULL REQUEST[MIG] purchase_stock_cost_update: Migration to 14.0 (#3021)