PURCHASE,SALE: fyx typo

bzr revid: ced-75816660b86d1f2cee90bb6a3081fe7f1dd26fee
This commit is contained in:
ced
2007-04-25 14:09:29 +00:00
parent ec860fcfa7
commit 458aa657a6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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)