Merge lp:~unifield-team/unifield-addons/jfb-addons-uf-2220 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4605
Proposed branch: lp:~unifield-team/unifield-addons/jfb-addons-uf-2220
Merge into: lp:unifield-addons
Diff against target: 21 lines (+2/-2)
1 file modified
report_webkit/webkit_report.py (+2/-2)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/jfb-addons-uf-2220
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+201411@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'report_webkit/webkit_report.py'
--- report_webkit/webkit_report.py 2013-01-17 09:04:56 +0000
+++ report_webkit/webkit_report.py 2014-01-13 13:52:52 +0000
@@ -186,7 +186,8 @@
186 def translate_call(self, src):186 def translate_call(self, src):
187 """Translate String."""187 """Translate String."""
188 ir_translation = self.pool.get('ir.translation')188 ir_translation = self.pool.get('ir.translation')
189 res = ir_translation._get_source(self.parser_instance.cr, self.parser_instance.uid, self.report_xml.report_file and "addons/%s"%self.report_xml.report_file or self.name, 'report', self.localcontext.get('lang', 'en_US'), src)189 orig_file = self.report_xml.report_file or self.tmpl
190 res = ir_translation._get_source(self.parser_instance.cr, self.parser_instance.uid, orig_file and "addons/%s"%orig_file or self.name, 'report', self.localcontext.get('lang', 'en_US'), src)
190 if not res :191 if not res :
191 return src192 return src
192 return res 193 return res
@@ -245,7 +246,6 @@
245 self.parser_instance.set_context(objs, data, ids, report_xml.report_type)246 self.parser_instance.set_context(objs, data, ids, report_xml.report_type)
246247
247 template = False248 template = False
248
249 if report_xml.report_file :249 if report_xml.report_file :
250 path = addons.get_module_resource(report_xml.report_file)250 path = addons.get_module_resource(report_xml.report_file)
251 if path and os.path.exists(path) :251 if path and os.path.exists(path) :

Subscribers

People subscribed via source and target branches

to all changes: