diff options
| author | Martin Trigaux <mat@odoo.com> | 2014-11-13 18:01:25 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2014-11-14 12:24:31 +0100 |
| commit | 7f4c4a5e8a94c4cea0700a3fcc928fa11fbdc96f (patch) | |
| tree | c9125ef19f346eff844051e901dfedcf4a40963e /addons | |
| parent | 1a826e07fe61b8e55291f207da81eddf55baf14b (diff) | |
[IMP] purchase: error message linked to product, not company
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/purchase/purchase.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
