How To Get Field Values In .rml Report In Odoo?
I have following code this .rml code to extract field value from form . but i have many2one fields so its getting index values insted of value or string
Solution 1:
try with this code
<blockTable style="blocktablestyle4">
<tr>
<td>
<para style="textstyle1">ID : [[ o.folionum and o.folionum.name or '']]</para>
<para style="textstyle1">Folio : [[ o.folio_number and o.folio_number.name or '' ]]</para>
</td>
<td>
<para style="textstyle1">Inspection Type : [[ o.inspec_type and o.inspec_type.name or '']]</para>
</td>
</tr>
</blockTable>
If you have many2one field than we can access table value using many2one_field.field_name
Post a Comment for "How To Get Field Values In .rml Report In Odoo?"