Account Voucher on_change_journal_voucher method ERROR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When I set a journal on Account Voucher object then getting error message:
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
select = map(lambda x: isinstance(x, dict) and x['id'] or x, select)
File "/home/
select = map(lambda x: isinstance(x, dict) and x['id'] or x, select)
KeyError: 'id'
addons revision 4332
server revision 2870
Changed in openobject-addons: | |
status: | New → Incomplete |
milestone: | none → 6.0 |
On Account Voucher view (xml_id = 'view_voucher_ form') :
<field name="partner_id" required="1" on_change= "onchange_ journal_ voucher( line_ids, tax_id, amount, partner_id, journal_id, type)"/>
<field name="journal_id" widget="selection" select="1" on_change= "onchange_ journal_ voucher( line_ids, tax_id, amount, partner_id, journal_id, type)"/>
param line_ids is missmatched to orm.read method.
On osv/orm.py line 2960 : unreconciled' : 35000.0, 'amount': 0.0, 'type': 'cr', 'amount_original': 35000.0, 'account_id': 76}]
The value of select variable is must be [23]
but this time :
value of select is [{'date_due': False, 'name': u'SAJ/2010/001', 'date_original': '2010-10-15', 'move_line_id': 2, 'amount_
##