[MERGE] ir_action: properly handle the False value for a reference field in a onchange method.
lp bug: https://launchpad.net/bugs/793682 fixed bzr revid: vmt@openerp.com-20110916123948-qaoou8rj2rx5l4ou
This commit is contained in:
commit
9c470cda34
|
@ -457,7 +457,7 @@ class actions_server(osv.osv):
|
|||
return [(r['model'], r['name']) for r in res] + [('','')]
|
||||
|
||||
def change_object(self, cr, uid, ids, copy_object, state, context=None):
|
||||
if state == 'object_copy':
|
||||
if state == 'object_copy' and copy_object:
|
||||
if context is None:
|
||||
context = {}
|
||||
model_pool = self.pool.get('ir.model')
|
||||
|
|
Loading…
Reference in New Issue