diff --git a/stock_landed_costs_average/__manifest__.py b/stock_landed_costs_average/__manifest__.py index 843a726d..bc7fbbc8 100644 --- a/stock_landed_costs_average/__manifest__.py +++ b/stock_landed_costs_average/__manifest__.py @@ -1,7 +1,7 @@ { 'name': 'Landed Costs Average', 'summary': 'Use Landed Costs on Average Cost inventory.', - 'version': '12.0.1.0.0', + 'version': '13.0.1.0.0', 'author': "Hibou Corp. ", 'category': 'Warehouse', 'license': 'AGPL-3', diff --git a/stock_landed_costs_average/models/stock_landed_cost.py b/stock_landed_costs_average/models/stock_landed_cost.py index 16dd31ea..1782c562 100644 --- a/stock_landed_costs_average/models/stock_landed_cost.py +++ b/stock_landed_costs_average/models/stock_landed_cost.py @@ -33,7 +33,6 @@ class LandedCost(models.Model): raise UserError(_('The selected picking does not contain any move that would be impacted by landed costs. Landed costs are only possible for products configured in real time valuation with real price costing method. Please make sure it is the case, or you selected the correct picking')) return lines - @api.multi def button_validate(self): """ Override to directly set new standard_price on product if average costed. @@ -53,6 +52,7 @@ class LandedCost(models.Model): 'date': cost.date, 'ref': cost.name, 'line_ids': [], + 'type': 'entry', } for line in cost.valuation_adjustment_lines.filtered(lambda line: line.move_id): # Prorate the value at what's still in stock