[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:
Vo Minh Thu 2011-09-16 14:39:48 +02:00
commit 9c470cda34
1 changed files with 1 additions and 1 deletions

View File

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