Stock Account Inventory Force Date

stock_account_inventory_force_date
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_account_inventory_force_date
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSmreficent, OCA Transbot, oca-travis, Weblate, OCA-git-bot, sergiocorato, hveficent
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - account
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_company_form res.company.form res.company group Inherits base.view_company_form
view_inventory_form stock.inventory.form - stock_inventory_force_date stock.inventory field Inherits stock.view_inventory_form
Models touched (5)

New fields (2)
  • force_inventory_lock_date Date
    help="If set, it won't be possible for any user to force an inventory,adjustment using a date earlier than this one." string='Force Inventory Lock Date'
  • standard_cost_change_account_id Many2one → account.account
    string='Standard Cost Change Offsetting Account' args: 'account.account'
Public methods (0)

No public methods.

New fields (1)
  • force_inventory_date Boolean
    help='Force the inventory moves and accounting entries to a given datein the past.' readonly=True states={'draft': [('readonly', False)]}
Public methods (2)
  • post_inventory(self)
    @api.multi
  • write(self, vals)
    @api.multi
    For inventories with `force_inventory_date` we only allow to change `date` if they are in draft and not being confirmed.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/11.0/stock_account_inventory_force_date
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, hveficent
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
    - account
    - analytic
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_company_form res.company.form res.company group Inherits base.view_company_form
view_inventory_form stock.inventory.form - stock_inventory_force_date stock.inventory field Inherits stock.view_inventory_form
Models touched (5)

New fields (2)
  • force_inventory_lock_date Date
    help="If set, it won't be possible for any user to force an inventory,adjustment using a date earlier than this one." string='Force Inventory Lock Date'
  • standard_cost_change_account_id Many2one → account.account
    string='Standard Cost Change Offsetting Account' args: 'account.account'
Public methods (0)

No public methods.

New fields (1)
  • force_inventory_date Boolean
    help='Force the inventory moves and accounting entries to a given datein the past.' readonly=True states={'draft': [('readonly', False)]}
Public methods (2)
  • post_inventory(self)
    @api.multi
  • write(self, vals)
    @api.multi
    For inventories with `force_inventory_date` we only allow to change `date` if they are in draft and not being confirmed.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)
    @api.multi