mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] fix wizard methods
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
67c4800388
commit
f4049e128d
@@ -11,9 +11,10 @@ inventory revaluation.
|
||||
|
||||
You can re-valuate inventory values by:
|
||||
|
||||
* Changing the price for a specific product. The inventory price is changed
|
||||
and inventory value is recalculated according to the new price. In case of
|
||||
real price, you can select which quants you want to change the price on.
|
||||
* Changing the inventory valuation of a specific product. The cost price
|
||||
is changed, and the inventory value is recalculated according to the new
|
||||
price. In case of real price, you can select on which quants you want to
|
||||
change the unit cost.
|
||||
|
||||
* Changing the value of the inventory. The quantity of inventory remains
|
||||
unchanged, resulting in a change in the price.
|
||||
@@ -40,8 +41,8 @@ Usage
|
||||
to create a new Inventory Revaluation.
|
||||
|
||||
* In order to post the inventory revaluation for multiple items at once,
|
||||
select the records in the tree view and go to 'More / Post Inventory
|
||||
Revaluations'.
|
||||
select the records in the tree view and go to
|
||||
*More / Post Inventory Revaluations*.
|
||||
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
|
||||
@@ -42,8 +42,9 @@ class StockInventoryRevaluationGetQuants(models.TransientModel):
|
||||
'new_cost': quant.cost
|
||||
}
|
||||
|
||||
@api.one
|
||||
@api.multi
|
||||
def process(self):
|
||||
self.ensure_one()
|
||||
if self.env.context.get('active_id', False):
|
||||
reval_obj = self.env['stock.inventory.revaluation']
|
||||
reval_quant_obj = self.env['stock.inventory.revaluation.quant']
|
||||
|
||||
@@ -23,8 +23,9 @@ class StockInventoryRevaluationMassPost(models.TransientModel):
|
||||
'Bad context propagation'
|
||||
return res
|
||||
|
||||
@api.one
|
||||
@api.multi
|
||||
def process(self):
|
||||
self.ensure_one()
|
||||
revaluation_ids = self.env.context.get('active_ids', [])
|
||||
revaluation_obj = self.env['stock.inventory.revaluation']
|
||||
for revaluation in revaluation_obj.browse(revaluation_ids):
|
||||
|
||||
Reference in New Issue
Block a user