[FIX]: set one2many and many2one field value in empty list

bzr revid: atp@tinyerp.com-20120913125207-q8yvyopdzykdrpwg
This commit is contained in:
Atul Patel (OpenERP) 2012-09-13 18:22:07 +05:30
parent 74df8d0147
commit 8cb70a7cd3
1 changed files with 4 additions and 1 deletions

View File

@ -1431,7 +1431,10 @@ rule or repeating pattern of time to exclude from the recurring rule."),
if r['class']=='private':
for f in r.keys():
if f not in ('id','date','date_deadline','duration','user_id','state'):
r[f] = False
if isinstance(r[f], list):
r[f] = []
else:
r[f] = False
if f=='name':
r[f] = _('Busy')