if not a:
a = line.product_id.categ_id.property_account_expense_categ.id
if not a:
- raise osv.except_osv(_('Error !'),
- _('There is no expense account defined ' \
- 'for this product: "%s" (id:%d)') % \
+ raise osv.except_osv(_('Error!'),
+ _('Define expense account for this product: "%s" (id:%d).') % \
(line.product_id.name, line.product_id.id,))
else:
a = property_obj.get(cr, uid,