Merge lp:~openerp-dev/openobject-server/6.1-opw-589975-msh into lp:openobject-server/6.1
Status: | Rejected |
---|---|
Rejected by: | Chris Biersbach (OpenERP) |
Proposed branch: | lp:~openerp-dev/openobject-server/6.1-opw-589975-msh |
Merge into: | lp:openobject-server/6.1 |
Diff against target: |
28 lines (+7/-1) 1 file modified
openerp/osv/fields.py (+7/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.1-opw-589975-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+154267@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of context_today method, returns wrong date, it returns UTC date if there is no tz key not found, there should be fallback, if tz not found in context then we should read context_tz of user, as context will not always available, it may come blank if context_today is called from method of workflow.
Demo:- Go to Accounting -> Customer Invoices and create one customer invoice in timezone Australia/Hobart wich UTC+11 and create invoice before 11 AM in Australia/Hobart so that in UTC it is 11PM of previous day, or change your system clock to generate this scenario, now validate invoice, so you will get invoice_date previous day even though your system shows 20th March but invoice_date will 19th March.
Reason:- tz not passed in context, so it should be handled if tz not available in context.
Thanks.
Unmerged revisions
- 4348. By Mohammed Shekha<email address hidden>
-
[FIX]Refixed the issue of context timezone.
I reject this because 6.1 is not an LTS and we thus no longer merge in it.