[REM] Removed tz_offset from context and remove store=True
authorFabien Meghazi <fme@openerp.com>
Thu, 29 Nov 2012 21:00:33 +0000 (22:00 +0100)
committerFabien Meghazi <fme@openerp.com>
Thu, 29 Nov 2012 21:00:33 +0000 (22:00 +0100)
bzr revid: fme@openerp.com-20121129210033-p687bul10jiandxt

openerp/addons/base/res/res_partner.py
openerp/addons/base/res/res_users.py

index b14620a..07dba6b 100644 (file)
@@ -202,7 +202,7 @@ class res_partner(osv.osv, format_address):
             help="The partner's timezone, used to output proper date and time values inside printed reports. "
                  "It is important to set a value for this field. You should use the same timezone "
                  "that is otherwise used to pick and render date and time values: your computer's timezone."),
-        'tz_offset': fields.function(_get_tz_offset, type='char', size=5, string='Timezone offset', store=True),
+        'tz_offset': fields.function(_get_tz_offset, type='char', size=5, string='Timezone offset', invisible=True),
         'user_id': fields.many2one('res.users', 'Salesperson', help='The internal user that is in charge of communicating with this contact if any.'),
         'vat': fields.char('TIN', size=32, help="Tax Identification Number. Check the box if this contact is subjected to taxes. Used by the some of the legal statements."),
         'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'),
index 2b61377..4565f86 100644 (file)
@@ -343,7 +343,7 @@ class res_users(osv.osv):
         for k in self._all_columns.keys():
             if k.startswith('context_'):
                 context_key = k[8:]
-            elif k in ['lang', 'tz', 'tz_offset']:
+            elif k in ['lang', 'tz']:
                 context_key = k
             else:
                 context_key = False