From 81f52cdb1b13552a3480005db2e56ab825c3443f Mon Sep 17 00:00:00 2001 From: oihane Date: Thu, 31 Aug 2017 09:44:19 +0200 Subject: [PATCH] [8.0][IMP] mrp_production_estimated_cost: change property name (#221) --- mrp_production_estimated_cost/__openerp__.py | 2 +- mrp_production_estimated_cost/models/mrp_production.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(