From e95c182608bfd40f72bac16e25de937c3824b951 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Wed, 18 May 2011 18:22:34 +0530 Subject: [PATCH 1/4] [FIX]procurement:Fixed:procurement scheduling report=>not Translation properly lp bug: https://launchpad.net/bugs/783135 fixed bzr revid: ron@tinyerp.com-20110518125234-9cea4larl1uub313 --- addons/procurement/schedulers.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py index 3a6e3336472..8bc2fef615b 100644 --- a/addons/procurement/schedulers.py +++ b/addons/procurement/schedulers.py @@ -100,7 +100,7 @@ class procurement_order(osv.osv): 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 @@ class procurement_order(osv.osv): 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.", From 48871849770800f1fd7d5fe6686e543951c49e6b Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Thu, 2 Jun 2011 17:34:55 +0530 Subject: [PATCH 2/4] [IMP]procurement:Improvement in Traslation string bzr revid: ron@tinyerp.com-20110602120455-lgadptlti782btgm --- addons/procurement/schedulers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py index 8bc2fef615b..0c0372660d9 100644 --- a/addons/procurement/schedulers.py +++ b/addons/procurement/schedulers.py @@ -77,7 +77,7 @@ class procurement_order(osv.osv): report_later += 1 for proc in procurement_obj.browse(cr, uid, ids, context=context): if proc.state == 'exception': - report.append('PROC %d: on order - %3.2f %-5s - %s' % \ + report.append(_('PROC %d: on order - %3.2f %-5s - %s') % \ (proc.id, proc.product_qty, proc.product_uom.name, proc.product_id.name)) report_except += 1 From bcb551f338919368265b8f5835f696fce77b22e3 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Mon, 6 Jun 2011 15:42:33 +0530 Subject: [PATCH 3/4] [IMP]procurement:fixed=>Lines breaks in Traslation string bzr revid: ron@tinyerp.com-20110606101233-o3hi56uin99gdj60 --- addons/procurement/schedulers.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py index 0c0372660d9..62fcf652b47 100644 --- a/addons/procurement/schedulers.py +++ b/addons/procurement/schedulers.py @@ -111,15 +111,15 @@ class procurement_order(osv.osv): 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. \n\ +\n\ + Start Time: %s \n\ + End Time: %s \n\ + Total Procurements processed: %d \n\ + Procurements with exceptions: %d \n\ + Skipped Procurements (scheduled date outside of scheduler range) %d \n\ +\n\ + Exceptions:\n""") % (start_date, end_date, report_total, report_except, report_later) summary += '\n'.join(report) request.create(cr, uid, {'name': "Procurement Processing Report.", From fecd5e29f41132c8d9df5600ad57c0d0e95d88da Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Mon, 6 Jun 2011 16:06:04 +0530 Subject: [PATCH 4/4] [IMP]procurement:improvements in lines breack code bzr revid: ron@tinyerp.com-20110606103604-gh7o9jpm5lfnc3ay --- addons/procurement/schedulers.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py index 62fcf652b47..d72651ed55a 100644 --- a/addons/procurement/schedulers.py +++ b/addons/procurement/schedulers.py @@ -111,14 +111,14 @@ class procurement_order(osv.osv): 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. \n\ -\n\ - Start Time: %s \n\ - End Time: %s \n\ - Total Procurements processed: %d \n\ - Procurements with exceptions: %d \n\ - Skipped Procurements (scheduled date outside of scheduler range) %d \n\ -\n\ + 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,