bzr revid: fp@tinyerp.com-20090706193222-45lelv5ws4b7cr42
This commit is contained in:
Fabien Pinckaers 2009-07-06 21:32:22 +02:00
parent 6be08e1808
commit 649c69f34b
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ class ir_model(osv.osv):
pooler.restart_pool(cr.dbname)
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):
if context and context.get('manual',False):
vals['state']='manual'