Error cuando se trata de facturar y el usuario no cuenta con una zona horaria configurada
Siguente error al momento de querer facturar y el usuario no ha configurado una zona horaria
File "/home/federico/Documentos/bench/parts/server/openerp/models.py", line 5722, in <dictcomp>
name: rec[name] for name in names
File "/home/federico/Documentos/bench/parts/server/openerp/models.py", line 5603, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/home/federico/Documentos/bench/parts/server/openerp/fields.py", line 818, in __get__
self.determine_value(record)
File "/home/federico/Documentos/bench/parts/server/openerp/fields.py", line 896, in determine_value
self.compute_value(recs)
File "/home/federico/Documentos/bench/parts/server/openerp/fields.py", line 876, in compute_value
self._compute_value(records)
File "/home/federico/Documentos/bench/parts/server/openerp/fields.py", line 868, in _compute_value
self.compute(records)
File "/home/federico/Documentos/bench/parts/server/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/home/federico/Documentos/bench/parts/server/openerp/api.py", line 407, in new_api
result = [method(rec, *args, **kwargs) for rec in self]
File "/home/federico/Documentos/bench/parts/l10n_mx_facturae/l10n_mx_facturae/models/account_invoice.py", line 201, in _compute_datetime
tz = timezone(self.env.user.partner_id.tz or UTC)
File "/home/federico/Documentos/bench/eggs/pytz-2015.4-py2.7.egg/pytz/__init__.py", line 162, in timezone
if zone.upper() == 'UTC':
AttributeError: 'UTC' object has no attribute 'upper'