Odoo Ayuda


1 Respuesta

Muhammad Anees Arabia Saudí

--Muhammad Anees--

| 7 3 9
Riyadh, Arabia Saudí
--Muhammad Anees--

Odoo, Dynamics AX and Web Developer.

Muhammad Anees Arabia Saudí
10/11/19 2:29

What is this report for? Means for which model is this report for? Are you printing this report from Form View. Form View takes only current record. From tree view make a for loop to all records of the model.

7 Comentarios
rehmanabdullah355@gmail.com Pakistán
10/11/19 2:45

Thanks for answering sir i am so stuck and no one helping!

This report is for custom model "purchase.comp" and its for a tree view. Can you please give me an example of how to make a loop accurately using "purchase.comp".

Muhammad Anees Arabia Saudí
10/11/19 3:06

<t t-call="web.external_layout">

<div class="page">


<t t-foreach="docs" t-as="o">


<td><span t-field="o.id" /></td>

<td><span t-field="o.name" /></td>

<td><span t-field="o.other fields" /></td>









string="Purchase Comp Report"





print_report_name="'Purchase Com - %s' % (object.id)"


rehmanabdullah355@gmail.com Pakistán
10/11/19 3:27

hey man thank you so much you are a life saver and worked like a charm <3

rehmanabdullah355@gmail.com Pakistán
10/11/19 3:31

just one think it is printing making pages on the basis of number of lines selected? why is that?

rehmanabdullah355@gmail.com Pakistán
10/11/19 3:40

sorry i got it.. i was looping in calling the template too. Thanks man

Muhammad Anees Arabia Saudí
10/11/19 3:41

Yes you are right. Its a standard behavior in odoo. There is a trick to print all rows in your model.

In your tree view on top right where it show pagination like 1-80. Click on it, its editable and change it from 1-80 to 1-1000.

Select and print you new range..

rehmanabdullah355@gmail.com Pakistán
10/11/19 3:53

man i didn't know that. That is very informative ! (y) i cant thank you enough actually

Realizar una pregunta
Keep Informed
1 seguidor(es)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now