Displayed the name of Intrasat code in Intrasat Invoice report instead of browse...
authordhr-odoo <dhr@tinyerp.com>
Fri, 20 Jun 2014 11:26:09 +0000 (16:56 +0530)
committerMartin Trigaux <mat@openerp.com>
Tue, 24 Jun 2014 15:01:07 +0000 (17:01 +0200)
addons/report_intrastat/views/report_intrastatinvoice.xml

index abf4bdd..4da858f 100644 (file)
@@ -56,7 +56,7 @@
                     <tr t-foreach="o.invoice_line" t-as="l">
                         <td><span t-field="l.name"/></td>
                         <td class="text-right"><span t-esc="', '.join(map(lambda x: x.name, l.invoice_line_tax_id))"/></td>
-                        <td class="text-right"><span t-esc="l.product_id.intrastat_id"/></td>
+                        <td class="text-right"><span t-esc="l.product_id.intrastat_id.name"/></td>
                         <td class="text-right"><span t-esc="l.product_id.weight"/></td>
                         <td class="text-right"><span t-field="l.quantity"/></td>
                         <td groups="product.group_uom"><span t-field="l.uos_id"/></td>