[FIX]: set one2many and many2one field value in empty list
bzr revid: atp@tinyerp.com-20120913125207-q8yvyopdzykdrpwg
This commit is contained in:
parent
74df8d0147
commit
8cb70a7cd3
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue