Borealis
Borealis

Reputation: 1137

odoo, how can I add internal reference to quotation report?

I need to add the internal reference default_code to the quotation report sale_report_template.xml.

I tried using

   <t t-foreach="layout_category['lines']" t-as="l">
                                <tr>
                                    <td><span t-field="l.default_code"/></td>

but can't seem to get it to work.

Upvotes: 0

Views: 394

Answers (1)

Borealis
Borealis

Reputation: 1137

 <t t-foreach="layout_category['lines']" t-as="l">
                                <tr>
                                    <td><span t-field="l.product_id.default_code"/></td>

Upvotes: 3

Related Questions