[FIX] base_calendar : timezone False sent to server for write

bzr revid: tfr@openerp.com-20110202143557-9cefs1eyu2yekh04
This commit is contained in:
Thibault Francois 2011-02-02 15:35:57 +01:00
parent de2e08f4aa
commit 59b7e608f0
1 changed files with 1 additions and 1 deletions

View File

@ -1473,7 +1473,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
if not real_event_id in new_ids:
new_ids.append(real_event_id)
if vals.get('vtimezone', '').startswith('/freeassociation.sourceforge.net/tzfile/'):
if vals.get('vtimezone', '') and vals.get('vtimezone', '').startswith('/freeassociation.sourceforge.net/tzfile/'):
vals['vtimezone'] = vals['vtimezone'][40:]
updated_vals = self.onchange_dates(cr, uid, new_ids,