parent
6be08e1808
commit
649c69f34b
|
@ -71,6 +71,11 @@ class ir_model(osv.osv):
|
||||||
pooler.restart_pool(cr.dbname)
|
pooler.restart_pool(cr.dbname)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
def write(self, cr, user, ids, vals, context=None):
|
||||||
|
if context:
|
||||||
|
del context['__last_update']
|
||||||
|
return super(ir_model,self).write(cr, user, ids, vals, context)
|
||||||
|
|
||||||
def create(self, cr, user, vals, context=None):
|
def create(self, cr, user, vals, context=None):
|
||||||
if context and context.get('manual',False):
|
if context and context.get('manual',False):
|
||||||
vals['state']='manual'
|
vals['state']='manual'
|
||||||
|
|
Loading…
Reference in New Issue