This question has been flagged
1 Reply
1920 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