diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 14a45f8f36e..9524abf06f7 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -189,7 +189,7 @@ class purchase_order(osv.osv): if not a: a = ol.product_id.categ_id.property_account_expense_categ if not a: - raise osv.except_osv('Error !', 'There is no income account define for this product: "%s" (id:%d)' % (line.product_id.name, line.product_id.id,)) + raise osv.except_osv('Error !', 'There is no income account defined for this product: "%s" (id:%d)' % (line.product_id.name, line.product_id.id,)) a = a[0] else: a = self.pool.get('ir.property').get(cr, uid, 'property_account_expense_categ', 'product.category') diff --git a/addons/sale/sale.py b/addons/sale/sale.py index cf972a7ad01..a8d8aa6bef0 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -576,7 +576,7 @@ class sale_order_line(osv.osv): if not a: a = line.product_id.categ_id.property_account_income_categ if not a: - raise osv.except_osv('Error !', 'There is no income account define for this product: "%s" (id:%d)' % (line.product_id.name, line.product_id.id,)) + raise osv.except_osv('Error !', 'There is no income account defined for this product: "%s" (id:%d)' % (line.product_id.name, line.product_id.id,)) a = a[0] else: a = self.pool.get('ir.property').get(cr, uid, 'property_account_income_categ', 'product.category', context=context)