[MERGE] merged the mra branch containing a fix related to the read() on osv_memory that returns now a tuple instead of id for m2o

bzr revid: qdp-launchpad@openerp.com-20110324115721-xwt3ebo1kjw5j717
This commit is contained in:
Quentin (OpenERP)
2011-03-24 12:57:21 +01:00
+2 -2
View File
@@ -153,9 +153,9 @@ class account_move_line_reconcile_writeoff(osv.osv_memory):
if context is None:
context = {}
data = self.read(cr, uid, ids,context=context)[0]
account_id = data['writeoff_acc_id']
account_id = data['writeoff_acc_id'][0]
context['date_p'] = data['date_p']
journal_id = data['journal_id']
journal_id = data['journal_id'][0]
context['comment'] = data['comment']
if data['analytic_id']:
context['analytic_id'] = data['analytic_id']