diff --git a/stock_inventory_revaluation/models/stock_inventory_revaluation.py b/stock_inventory_revaluation/models/stock_inventory_revaluation.py index 83836f4f3..e9b59843c 100644 --- a/stock_inventory_revaluation/models/stock_inventory_revaluation.py +++ b/stock_inventory_revaluation/models/stock_inventory_revaluation.py @@ -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