Traceback : File "/home/odoo/addons/hotel_reservation/models/hotel_reservation.py", line 738, in get_room_summary
if self._context.get('tz', False):
File "/usr/local/lib/python2.7/dist-packages/pytz/init.py", line 163, in timezone
if zone.upper() == 'UTC':
AttributeError: 'bool' object has no attribute 'upper'
To solve this problem i test first if something exist in "self._context.get('tz', False)", if not i define "timezone"
Traceback : File "/home/odoo/addons/hotel_reservation/models/hotel_reservation.py", line 738, in get_room_summary if self._context.get('tz', False): File "/usr/local/lib/python2.7/dist-packages/pytz/init.py", line 163, in timezone if zone.upper() == 'UTC': AttributeError: 'bool' object has no attribute 'upper'
To solve this problem i test first if something exist in "self._context.get('tz', False)", if not i define "timezone"