Merge lp:~juanalfonso/openobject-addons/openobject-addons-fixed-reports-stock-picking-for-translation-template into lp:openobject-addons/7.0

Proposed by Juan A. Pérez Ruiz (Otherway)
Status: Needs review
Proposed branch: lp:~juanalfonso/openobject-addons/openobject-addons-fixed-reports-stock-picking-for-translation-template
Merge into: lp:openobject-addons/7.0
Diff against target: 27 lines (+14/-5)
1 file modified
stock/report/picking.py (+14/-5)
To merge this branch: bzr merge lp:~juanalfonso/openobject-addons/openobject-addons-fixed-reports-stock-picking-for-translation-template
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+203397@code.launchpad.net

Description of the change

In the picking reports a for statement has been removed in order to include the reports 'stock.picking.list.in' and 'stock.picking.list.out' in translation template pot.

It seem that when a variable is used to define the name of a report in report_sxw() function it is not included in translation template '.pot' and then the reports are not translated.

To post a comment you must log in.

Unmerged revisions

9797. By Juan A. Pérez Ruiz (Otherway)

In the picking reports a for statement have been removed in order to include the reports stock.picking.list.in and stock.picking.list.out in translation template pot.

9796. By Juan A. Pérez Ruiz (Otherway)

Added missing translations in es.po for report stock.picking.list.in and stock.picking.list.out

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/report/picking.py'
2--- stock/report/picking.py 2013-08-23 13:12:14 +0000
3+++ stock/report/picking.py 2014-01-27 18:47:00 +0000
4@@ -35,9 +35,18 @@
5 desc = '[' + move_line.product_id.default_code + ']' + ' ' + desc
6 return desc
7
8-for suffix in ['', '.in', '.out']:
9- report_sxw.report_sxw('report.stock.picking.list' + suffix,
10- 'stock.picking' + suffix,
11- 'addons/stock/report/picking.rml',
12- parser=picking)
13+report_sxw.report_sxw('report.stock.picking.list',
14+ 'stock.picking',
15+ 'addons/stock/report/picking.rml',
16+ parser=picking)
17+
18+report_sxw.report_sxw('report.stock.picking.list.in',
19+ 'stock.picking.in',
20+ 'addons/stock/report/picking.rml',
21+ parser=picking)
22+
23+report_sxw.report_sxw('report.stock.picking.list.out',
24+ 'stock.picking.out',
25+ 'addons/stock/report/picking.rml',
26+ parser=picking)
27 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: