diff --git a/stock_landed_costs_average/__manifest__.py b/stock_landed_costs_average/__manifest__.py index 1c02704e..843a726d 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': '11.0.1.0.0', + 'version': '12.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 19c761f1..16dd31ea 100644 --- a/stock_landed_costs_average/models/stock_landed_cost.py +++ b/stock_landed_costs_average/models/stock_landed_cost.py @@ -56,10 +56,10 @@ class LandedCost(models.Model): } for line in cost.valuation_adjustment_lines.filtered(lambda line: line.move_id): # Prorate the value at what's still in stock - _logger.warn('(line.move_id.remaining_qty / line.move_id.product_qty) * line.additional_landed_cost') - _logger.warn('(%s / %s) * %s' % (line.move_id.remaining_qty, line.move_id.product_qty, line.additional_landed_cost)) + _logger.info('(line.move_id.remaining_qty / line.move_id.product_qty) * line.additional_landed_cost') + _logger.info('(%s / %s) * %s' % (line.move_id.remaining_qty, line.move_id.product_qty, line.additional_landed_cost)) cost_to_add = (line.move_id.remaining_qty / line.move_id.product_qty) * line.additional_landed_cost - _logger.warn('cost_to_add: ' + str(cost_to_add)) + _logger.info('cost_to_add: ' + str(cost_to_add)) new_landed_cost_value = line.move_id.landed_cost_value + line.additional_landed_cost line.move_id.write({