Merge with addons/trunk revno 8168.
[odoo/odoo.git] / addons / purchase / wizard / purchase_line_invoice.py
index 0883da2..404dfb1 100644 (file)
@@ -102,9 +102,8 @@ class purchase_line_invoice(osv.osv_memory):
                         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,