[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [bug #45009] Creating a new Work Schedule fails if the comp
From: |
Luis González |
Subject: |
[Health-dev] [bug #45009] Creating a new Work Schedule fails if the company's timezone is not set |
Date: |
Mon, 04 May 2015 17:04:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0 |
URL:
<http://savannah.gnu.org/bugs/?45009>
Summary: Creating a new Work Schedule fails if the company's
timezone is not set
Project: GNU Health
Submitted by: luisg123v
Submitted on: Mon 04 May 2015 05:04:47 PM GMT
Category: Programming / Tracebacks
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Module: health_calendar
_______________________________________________________
Details:
When trying to create a new Work Schedule (Health -> Appointments -> New Work
Schedule), it will fail if the current company's timezone is not set, i.e.
it's "None".
It shows up the following traceback:
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 161, in dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/wizard/wizard.py", line 249, in execute
return wizard._execute(state_name)
File "/trytond/wizard/wizard.py", line 280, in _execute
result = self._execute(transition())
File "/trytond/modules/health_calendar/wizard/wizard_health_calendar.py",
line 109, in transition_create_
dt = timezone.localize(dt)
AttributeError: 'NoneType' object has no attribute 'localize'
I think id might be solved either assuming the default timezone when it's
None, or setting the company's timezone as a required field
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45009>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Health-dev] [bug #45009] Creating a new Work Schedule fails if the company's timezone is not set,
Luis González <=