mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_inventory_revaluation (deprecated method)
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
21d4afa5f2
commit
e186b9c016
@@ -386,7 +386,8 @@ class StockInventoryRevaluation(models.Model):
|
||||
def create(self, values):
|
||||
sequence_obj = self.env['ir.sequence']
|
||||
if values.get('name', '/') == '/':
|
||||
values['name'] = sequence_obj.get('stock.inventory.revaluation')
|
||||
values['name'] = sequence_obj.next_by_code(
|
||||
'stock.inventory.revaluation')
|
||||
return super(StockInventoryRevaluation, self).create(values)
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user