diff --git a/mrp_production_estimated_cost/__openerp__.py b/mrp_production_estimated_cost/__openerp__.py index b337ec9b7..73e6ad596 100644 --- a/mrp_production_estimated_cost/__openerp__.py +++ b/mrp_production_estimated_cost/__openerp__.py @@ -6,7 +6,7 @@ { "name": "Estimated costs in manufacturing orders", - "version": "8.0.1.2.0", + "version": "8.0.1.2.1", "category": "Manufacturing", "author": "OdooMRP team, " "AvanzOSC, " diff --git a/mrp_production_estimated_cost/models/mrp_production.py b/mrp_production_estimated_cost/models/mrp_production.py index 072a9bae0..a85c28619 100644 --- a/mrp_production_estimated_cost/models/mrp_production.py +++ b/mrp_production_estimated_cost/models/mrp_production.py @@ -130,7 +130,7 @@ class MrpProduction(models.Model): general_account = ( product.property_account_income or product.categ_id.property_account_income_categ or - property_obj.get('property_account_expense_categ', + property_obj.get('property_account_income_categ', 'product.category')) if not production.analytic_account_id: raise exceptions.Warning(