Merge lp:~akretion-team/aeroo/7.0-fix-crash-tz into lp:aeroo

Proposed by Alexis de Lattre
Status: Needs review
Proposed branch: lp:~akretion-team/aeroo/7.0-fix-crash-tz
Merge into: lp:aeroo
Diff against target: 12 lines (+1/-1)
1 file modified
report_aeroo/report_aeroo.py (+1/-1)
To merge this branch: bzr merge lp:~akretion-team/aeroo/7.0-fix-crash-tz
Reviewer Review Type Date Requested Status
Alistek developers - http://www.alistek.com Pending
Review via email: mp+306432@code.launchpad.net

Description of the change

One small fix on the v7 branch: field name on res.users is tz, not context_tz

To post a comment you must log in.

Unmerged revisions

6. By Alexis de Lattre

FIX avoid a crash due to wrong field name (context_tz -> tz)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'report_aeroo/report_aeroo.py'
2--- report_aeroo/report_aeroo.py 2013-05-16 15:53:25 +0000
3+++ report_aeroo/report_aeroo.py 2016-09-22 09:42:04 +0000
4@@ -765,7 +765,7 @@
5 if context is None:
6 context = {}
7 if 'tz' not in context:
8- context['tz'] = pool.get('res.users').browse(cr, uid, uid).context_tz
9+ context['tz'] = pool.get('res.users').browse(cr, uid, uid).tz
10
11 data.setdefault('model', context.get('active_model',False))
12 ir_obj = pool.get('ir.actions.report.xml')

Subscribers

People subscribed via source and target branches