449
444
ctx[a] = process_val(a, defaults.get(a, False))
452
#print "\nmatch-1-2: ",match,match.group(1),match.group(2)#<_sre.SRE_Match object at 0x9f4e968> product_id_change product_id
453
args = map(lambda x: eval(x, ctx), match.group(2).split(','))#[36]
454
result = getattr(model, match.group(1))(self.cr, SUPERUSER_ID, [], *args)#{'value': {'bom_id': False, 'routing_id': False, 'product_uom': 2}}
447
args = map(lambda x: eval(x, ctx), match.group(2).split(','))
448
result = getattr(model, match.group(1))(self.cr, SUPERUSER_ID, [], *args)
455
449
for key, val in (result or {}).get('value', {}).items():
456
450
assert key in fg, "The returning field '%s' from your on_change call '%s' does not exist either on the object '%s', either in the view '%s' used for the creation" % (key, match.group(1), model._name, view_info['name'])