[IMP] stock_account: better error message
bzr revid: qdp-launchpad@openerp.com-20140424091715-xykdsi2dxacm4ybh
This commit is contained in:
parent
4d48e71b2f
commit
873e65edfa
|
@ -180,11 +180,12 @@ class stock_quant(osv.osv):
|
|||
|
||||
if not all([acc_src, acc_dest, acc_valuation, journal_id]):
|
||||
raise osv.except_osv(_('Error!'), _('''One of the following information is missing on the product or product category and prevents the accounting valuation entries to be created:
|
||||
Product: %s
|
||||
Stock Input Account: %s
|
||||
Stock Output Account: %s
|
||||
Stock Valuation Account: %s
|
||||
Stock Journal: %s
|
||||
''') % (acc_src, acc_dest, acc_valuation, journal_id))
|
||||
''') % (move.product_id.name, acc_src, acc_dest, acc_valuation, journal_id))
|
||||
return journal_id, acc_src, acc_dest, acc_valuation
|
||||
|
||||
def _prepare_account_move_line(self, cr, uid, move, qty, cost, credit_account_id, debit_account_id, context=None):
|
||||
|
|
Loading…
Reference in New Issue