From 458aa657a65cf1875e1a189c52818f85ed7381d0 Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 25 Apr 2007 14:09:29 +0000 Subject: [PATCH] PURCHASE,SALE: fyx typo bzr revid: ced-75816660b86d1f2cee90bb6a3081fe7f1dd26fee --- addons/purchase/purchase.py | 2 +- addons/sale/sale.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)