[FIX]procurement:Fixed:procurement scheduling report=>not Translation properly

lp bug: https://launchpad.net/bugs/783135 fixed

bzr revid: ron@tinyerp.com-20110518125234-9cea4larl1uub313
This commit is contained in:
ron@tinyerp.com 2011-05-18 18:22:34 +05:30
parent de0f30f575
commit e95c182608
1 changed files with 10 additions and 10 deletions

View File

@ -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.",