How to count One2many field in report template odoo 15

410 Views Asked by At

Can some one tell me how to count One2many field in report template please?

I've a One2many field called calendar_jobs_ids
I want to count it and print to my report template, but i don't know how to do it.

enter image description here

Can some one help me please.
Thanks.

1

There are 1 best solutions below

0
fudu On BEST ANSWER

I've found a solution, that we call function from model to count the One2many field, then we use it in report template, that'll be good.

enter image description here

enter image description here