TIP: You can type at any time to perform a new search.
Stock Inventory Revaluation
stock_inventory_revaluation · OCA/stock-logistics-warehouse
- Repository
- OCA/stock-logistics-warehouse · module folder · Try on Runboat
- Module version
- 1.0.2
- Category
- Warehouse
- Folder size
- 2.59 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-warehouse
- Last tracking update
- 2026-08-07 07:31:51
- Authors
- Odoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., Eficent Business and IT Consulting Services S.L., Matt Taylor
- Maintainers
- Odoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., Eficent Business and IT Consulting Services S.L., Matt Taylor
- Committers
- Denis Roussel, Weblate, OCA Transbot, OCA-git-bot, oca-travis, Matt Taylor, Pascal GOUHIER
Code Analysis ⓘ
Views touched (11)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
stock_inventory_revaluation_get_move_form |
stock.inventory.revaluation.get.moves.form | stock.inventory.revaluation.get.moves | form | New |
stock_inventory_revaluation_mass_post_form |
stock.inventory.revaluation.mass.post.form | stock.inventory.revaluation.mass.post | form | New |
view_category_property_form |
product.category.stock.property.form.inherit | product.category | form | Inherits stock_account.view_category_property_form |
view_move_line_form |
account.move.line.form | account.move.line | form | Inherits account.view_move_line_form |
view_stock_inventory_revaluation_form |
stock.inventory.revaluation.form | stock.inventory.revaluation | form | New |
view_stock_inventory_revaluation_move_form |
stock.inventory.revaluation.move.form | stock.inventory.revaluation.move | form | New |
view_stock_inventory_revaluation_move_tree |
stock.inventory.revaluation.move.tree | stock.inventory.revaluation.move | tree | New |
view_stock_inventory_revaluation_search |
stock.inventory.revaluation.search | stock.inventory.revaluation | search | New |
view_stock_inventory_revaluation_tmpl_form |
stock.inventory.revaluation.tmpl.form | stock.inventory.revaluation.template | form | New |
view_stock_inventory_revaluation_tmpl_tree |
stock.inventory.revaluation.tmpl.tree | stock.inventory.revaluation.template | tree | New |
view_stock_inventory_revaluation_tree |
stock.inventory.revaluation.tree | stock.inventory.revaluation | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (10)
New fields (1)
-
stock_inventory_revaluation_idMany2one → stock.inventory.revaluationcomodel_name='stock.inventory.revaluation'copy=Falseondelete='restrict'string='Stock Inventory Revaluation'
-
unlink(self)@api.multi
New fields (1)
-
stock_inventory_revaluation_idMany2one → stock.inventory.revaluationcomodel_name='stock.inventory.revaluation'copy=Falseondelete='restrict'related='move_id.stock_inventory_revaluation_id'store=Truestring='Stock Inventory Revaluation'
-
unlink(self)@api.multi
New fields (2)
-
property_inventory_revaluation_decrease_account_categMany2one → account.accountcompany_dependent=Truehelp='Define the Financial Accounts to be used as the balancing account in the transaction created by the revaluation. The Valuation Decrease Account is used when the inventory value is decreased.'string='Valuation Decrease Account' args: 'account.account' -
property_inventory_revaluation_increase_account_categMany2one → account.accountcompany_dependent=Truehelp='Define the Financial Accounts to be used as the balancing account in the transaction created by the revaluation. The Valuation Increase Account is used when the inventory value is increased due to the revaluation.'string='Valuation Increase Account' args: 'account.account'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
do_change_standard_price(self, new_price, account_id)@api.multiOverride standard method, as it was not suitable.
New fields (0)
No new fields.
Public methods (1)-
default_get(self, fields)@api.model
New fields (25)
-
account_move_idsOne2many → account.movecomodel_name='account.move'inverse_name='stock_inventory_revaluation_id'readonly=True -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>readonly=Truestates={'draft': [('readonly', False)]}string='Company' -
cost_methodCharrelated='product_id.cost_method'string='Cost Method' -
current_costFloathelp='The current cost of the product.'related='product_id.standard_price'string='Current cost' -
current_valueFloathelp='Total current value of product in stock'related='product_id.stock_value'string='Current value' -
decrease_account_idMany2one → account.accountcomodel_name='account.account'help='Define the G/L accounts to be used as the balancing account in the transaction created by the revaluation. The Decrease Account is used when the inventory value is decreased.'readonly=Truestates={'draft': [('readonly', False)]}string='Decrease Account' -
document_dateDatetimereadonly=Truestring='Applied date' -
increase_account_idMany2one → account.accountcomodel_name='account.account'help='Define the G/L accounts to be used as the balancing account in the transaction created by the revaluation. The Increase Account is used when the inventory value is increased due to the revaluation.'readonly=Truestates={'draft': [('readonly', False)]}string='Increase Account' -
journal_idMany2one → account.journalcomodel_name='account.journal'help='Select a journal for the accounting entry. Leave blank to usethe default journal for the product.'readonly=Truestates={'draft': [('readonly', False)]}string='Journal' -
nameCharcopy=Falsedefault='/'help='Reference for the journal entry'readonly=Truerequired=Truestates={'draft': [('readonly', False)]}string='Reference' -
new_costFloatdigits=dp.get_precision('Product Price')help='Enter the new cost you wish to assign to the product. Relevant only when the selected revaluation type is Price Change.'readonly=Truestates={'draft': [('readonly', False)]}string='New cost' -
new_valueFloatdigits=dp.get_precision('Account')help='New total value for the available inventory. Relevant only if the selected revaluation type is Total Value Change. Actual resulting value may be slightly different, based on per-unit price precision and rounding.'readonly=Truestates={'draft': [('readonly', False)]}string='New value' -
old_costFloatdigits=dp.get_precision('Product Price')help='Displays the previous cost of the product'readonly=Truestring='Old cost' -
old_valueFloatdigits=dp.get_precision('Account')help='Total current value of the product, prior to revaluation'readonly=Truestring='Old value' -
post_dateDatehelp='Journal Entry posting date'readonly=Truestates={'draft': [('readonly', False)]}string='Posting Date' -
product_idMany2one → product.productcomodel_name='product.product'domain=[('type', '=', 'product')]readonly=Truerequired=Truestates={'draft': [('readonly', False)]}string='Product' -
product_template_idMany2one → product.templatecomodel_name='product.template'related='product_id.product_tmpl_id'store=Truestring='Product Template' -
qty_availableFloatdigits=dp.get_precision('Product Unit of Measure')related='product_id.qty_available'string='Quantity On Hand' -
remarksTexthelp='Displays by default Inventory Revaluation. This text is copied to the journal entry.'readonly=Truestates={'draft': [('readonly', False)]}string='Remarks' -
reval_move_idsOne2many → stock.inventory.revaluation.movecomodel_name='stock.inventory.revaluation.move'copy=Falseinverse_name='revaluation_id'readonly=Truestates={'draft': [('readonly', False)]}string='Revaluation Moves' -
reval_template_idMany2one → stock.inventory.revaluation.templatecomodel_name='stock.inventory.revaluation.template'help='Choose a template to automatically apply revaluation options.'readonly=Truestates={'draft': [('readonly', False)]}string='Template' -
revaluation_typeSelectiondefault='inventory_value'help="'Unit Price Change': Change the per-unit price of the product. Inventory value is recalculated according to the new price and available quantity.\n'Total Value Change': Change the total value of the inventory. Unit price is recalculated according to the new total value and available quantity. Actual resulting value may be slightly different, based on per-unit price precision and rounding."readonly=Truerequired=Trueselection=[('price_change', 'Unit Price Change'), ('inventory_value', 'Total Value Change')]states={'draft': [('readonly', False)]}string='Revaluation Type' -
stateSelectiondefault='draft'readonly=Truerequired=Trueselection=[('draft', 'Draft'), ('posted', 'Posted'), ('cancel', 'Cancelled')]string='Status' -
stock_valuation_account_idMany2one → account.accountcomodel_name='account.account'help='To be set automatically when posting the revaluation'readonly=Truestring='Stock Valuation Account' -
uom_idMany2one → uom.uomcomodel_name='uom.uom'related='product_template_id.uom_id'string='UoM'
-
button_cancel(self)@api.multi -
button_draft(self)@api.multi -
button_post(self)@api.multi -
create(self, values)@api.model -
post(self)@api.multi
New fields (6)
-
date_fromDateargs: 'Date From' -
date_toDateargs: 'Date To' -
location_idMany2one → stock.locationcomodel_name='stock.location'domain=[('usage', '=', 'internal')]string='Location' -
lot_idMany2one → stock.production.lotcomodel_name='stock.production.lot'domain="[('product_id', '=', product_id)]"string='Lot/Serial' -
product_idMany2one → product.productcomodel_name='product.product'related='revaluation_id.product_id' -
revaluation_idMany2one → stock.inventory.revaluationcomodel_name='stock.inventory.revaluation'required=Truestring='Revaluation'
-
default_get(self, fields)@api.model -
process(self)@api.multi
New fields (0)
No new fields.
Public methods (1)-
process(self)@api.multi
New fields (13)
-
company_idMany2one → res.companycomodel_name='res.company'related='revaluation_id.company_id'string='Company' -
current_valueFloatrelated='move_id.remaining_value'string='Current Value' -
in_dateDatetimerelated='move_id.date'string='Incoming Date' -
location_idMany2one → stock.locationcomodel_name='stock.location'related='move_id.location_dest_id'string='Location' -
move_idMany2one → stock.movecomodel_name='stock.move'readonly=Truerequired=Truestring='Stock Move' -
nameCharcompute='_compute_name'readonly=Truestore=Truestring='Name' -
new_valueFloatcopy=Falsedigits=dp.get_precision('Product Price')help='Enter the new value you wish to assign to the Move. Relevant only when the selected revaluation type is Total Value Change.'string='New Value' -
old_qtyFloathelp="We store the remaining quantity, at the time of posting the revaluation, in case the revaluation gets canceled. If the remaining quantity at the time of cancellation is different, we can't allow the cancellation."readonly=Truestring='Old Quantity' -
old_valueFloatdigits=dp.get_precision('Product Price')help='Shows the previous value of the move'readonly=Truestring='Previous Value' -
product_idMany2one → product.productcomodel_name='product.product'related='move_id.product_id'string='Product' -
qtyFloatrelated='move_id.remaining_qty'string='Quantity' -
revaluation_idMany2one → stock.inventory.revaluationcomodel_name='stock.inventory.revaluation'readonly=Truerequired=Truestring='Revaluation' -
stateSelectionrelated='revaluation_id.state'
-
create_account_moves(self)@api.modelMust be called after writing new values to reval moves -
get_value_change(self)@api.model -
write_new_value(self)@api.model -
write_old_value(self)@api.model
New fields (6)
-
decrease_account_idMany2one → account.accountcomodel_name='account.account'help='Define the G/L accounts to be used as the balancing account in the transaction created by the revaluation. The Decrease Account is used when the inventory value is decreased.'string='Decrease Account' -
increase_account_idMany2one → account.accountcomodel_name='account.account'help='Define the G/L accounts to be used as the balancing account in the transaction created by the revaluation. The Increase Account is used when the inventory value is increased due to the revaluation.'string='Increase Account' -
journal_idMany2one → account.journalcomodel_name='account.journal'help='Select a journal for the accounting entry. Leave blank to usethe default journal for the product.'string='Journal' -
nameCharrequired=Truestring='Name' -
remarksTexthelp='This text is copied to the notes on the journal entry.'required=Truestring='Remarks' -
revaluation_typeSelectiondefault='inventory_value'help="'Unit Price Change': Change the per-unit price of the product. Inventory value is recalculated according to the new price and available quantity.\n'Total Value Change': Change the total value of the inventory. Unit price is recalculated according to the new total value and available quantity."required=Trueselection=[('price_change', 'Unit Price Change'), ('inventory_value', 'Total Value Change')]string='Revaluation Type'
-
copy(self, default=None)@api.multi@api.returns('self', <expr>)
Loading…
Loading…
Loading…