[FIX] mrp_repair : YML and report corrected

bzr revid: ach@tinyerp.com-20100917125036-v0870q20tzaxcuw8
This commit is contained in:
Anup (OpenERP) 2010-09-17 18:20:36 +05:30
parent 7a294c79f3
commit 739687936a
2 changed files with 3 additions and 3 deletions

View File

@ -386,7 +386,7 @@
<blockTable colWidths="534.0" style="Table8">
<tr>
<td>
<para style="P3">[[ format(o.quotation_notes) or removeParentNode('blockTable') ]]</para>
<para style="P3">[[ format(o.quotation_notes or '') or removeParentNode('blockTable') ]]</para>
</td>
</tr>
</blockTable>

View File

@ -1,8 +1,8 @@
-
In order to test the PDF reports defined on a mrp-repair, we will print a order
In order to test the PDF reports defined on a MRP Repair, we will print an Order Report
-
!python {model: mrp.repair}: |
import netsvc, tools, os
(data, format) = netsvc.LocalService('report.repair.order').create(cr, uid, [ref('mrp_repair.mrp_repair_rma0')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'mrp-repair_order.'+format), 'wb+').write(data)
file(os.path.join(tools.config['test_report_directory'], 'mrp_repair-order_report.'+format), 'wb+').write(data)