Purchase Stock Date Done Revaluation

purchase_stock_date_done_revaluation
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/19.0/purchase_stock_date_done_revaluation
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYInventory
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Quartile
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Quartile
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Aungkokolin1997
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:50
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
    - 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 revalues a **not-yet-billed incoming purchase receipt** when its
effective date (`date_done`) changes, so the inventory value reflects the
exchange rate of the new date.

It is only relevant for **purchase orders in a foreign currency** (a currency
other than the company currency): there, the receipt value in company currency
depends on the FX rate at the receipt date, so moving that date should move the
value. For company-currency purchases it has no effect.

It is meant to be used together with
[`stock_date_done`](https://github.com/OCA/stock-logistics-workflow/tree/19.0/stock_date_done),
which lets users set/edit the effective date (`date_done`) of transfers and
scraps — before validation and, permission-gated, on done records — and
propagates it to the stock moves. It does **not** depend on it, though: it
operates on the native `date_done` / `move.date` and Odoo's standard valuation,
so you can install either module on its own or both together.

Once a vendor bill is posted, the bill governs the value and this module steps
aside — no value is pinned.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)