[MERGE] trunk-wms up to revision 9687

bzr revid: qdp-launchpad@openerp.com-20140424092054-i93e3b2r1j4x0hx0
This commit is contained in:
Quentin (OpenERP) 2014-04-24 11:20:54 +02:00
commit 92313cdb8d
1 changed files with 2 additions and 1 deletions

View File

@ -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):