openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #06926
[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-783135-ron into lp:openobject-addons
Rohan Nayani(Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-783135-ron into lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #783135 in OpenERP Addons: "Impossible localization of '''Here is the procurement scheduling report...'''"
https://bugs.launchpad.net/openobject-addons/+bug/783135
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-783135-ron/+merge/61397
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-783135-ron/+merge/61397
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-783135-ron.
=== modified file 'procurement/schedulers.py'
--- procurement/schedulers.py 2011-01-14 00:11:01 +0000
+++ procurement/schedulers.py 2011-05-18 13:03:28 +0000
@@ -100,7 +100,7 @@
report_total += 1
for proc in procurement_obj.browse(cr, uid, report_ids, context=context):
if proc.state == 'exception':
- report.append('PROC %d: from stock - %3.2f %-5s - %s' % \
+ report.append(_('PROC %d: from stock - %3.2f %-5s - %s') % \
(proc.id, proc.product_qty, proc.product_uom.name,
proc.product_id.name,))
report_except += 1
@@ -111,15 +111,15 @@
end_date = time.strftime('%Y-%m-%d, %Hh %Mm %Ss')
if uid:
request = self.pool.get('res.request')
- summary = '''Here is the procurement scheduling report.
-
- Start Time: %s
- End Time: %s
- Total Procurements processed: %d
- Procurements with exceptions: %d
- Skipped Procurements (scheduled date outside of scheduler range) %d
-
- Exceptions:\n'''% (start_date, end_date, report_total, report_except, report_later)
+ summary = _("Here is the procurement scheduling report. \
+\
+ Start Time: %s \
+ End Time: %s \
+ Total Procurements processed: %d \
+ Procurements with exceptions: %d \
+ Skipped Procurements (scheduled date outside of scheduler range) %d \
+\
+ Exceptions:\n") % (start_date, end_date, report_total, report_except, report_later)
summary += '\n'.join(report)
request.create(cr, uid,
{'name': "Procurement Processing Report.",