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
2056
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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Feb 23
|
2817 | ||
|
0
Jan 23
|
86 | ||
|
1
Oct 22
|
3091 | ||
|
2
Sep 22
|
7891 | ||
|
2
Apr 22
|
2454 |