Skip to Content
Menu
This question has been flagged
1 Reply
2056 Views

I want to give a One2many list a sequence i from 1 to....n like in report without creating a field , is that possible ?



Avatar
Discard
Best Answer

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>

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 23
2817
0
Jan 23
86
1
Oct 22
3091
2
Sep 22
7891
2
Apr 22
2454