I want to give a One2many list a sequence i from 1 to....n like in report without creating a field , is that possible ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1920
Views
When you get field object of one2many in report you can do like this in report: suppose field is line_ids
<t t-set="counter" t-value="0"/>
<t t-foreach="o.line_ids" t-as="line">
<t t-esc="counter"/> # whenever you put sequence no
<Your Code>
<t t-set="counter" t-value="counter + 1"/>
</t>