From 7f4c4a5e8a94c4cea0700a3fcc928fa11fbdc96f Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 13 Nov 2014 18:01:25 +0100 Subject: [PATCH] [IMP] purchase: error message linked to product, not company --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index d1bb845e38d..e6f4989c9a3 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -471,7 +471,7 @@ class purchase_order(osv.osv): if not acc_id: acc_id = po_line.product_id.categ_id.property_account_expense_categ.id if not acc_id: - raise osv.except_osv(_('Error!'), _('Define expense account for this company: "%s" (id:%d).') % (po_line.product_id.name, po_line.product_id.id,)) + raise osv.except_osv(_('Error!'), _('Define expense account for this product: "%s" (id:%d).') % (po_line.product_id.name, po_line.product_id.id,)) else: acc_id = property_obj.get(cr, uid, 'property_account_expense_categ', 'product.category', context=context).id fpos = po_line.order_id.fiscal_position or False