تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1732 أدوات العرض

Hello 


I'm using V17 enterprise on SH.


I'm working on a custom report, the preview on studio works right, but, when I print the report the tables are moved out of the document.

I'm attaching the studio view with a piece of code, and the pdf report, any ideas on how to solve this please?



الصورة الرمزية
إهمال
أفضل إجابة

Hello Felipe,

I think you should close div tag of line no. 8 after h5 tag and take new div tag with class row before table tag.


Regards,

Hemangi.

الصورة الرمزية
إهمال
الكاتب

so you mean the table on a separate div?

الكاتب

Ok, I will try that.

And fot the second section, where I have no table but a <p> for the text "OBSERVACIONES DEL CLIENTE" and all the way to the right I have a field called by a <span>? I want that span to be a separate line after the <p> this is my code there:

<div class="container">
<div class="row border mt-2" style="height: 300px;">
<p class="fw-bold text-decoration-underline">OBSERVACIONES QUE HACE EL CLIENTE</p>
<t t-esc="doc.description"/>
</div>
</div>

الكاتب

BTW the first section is now working right! thanks! now the table appears bellow the text. I've used the separate DIV. If you can please guide me on the second section. Thanks

For,
OBSERVACIONES QUE HACE EL CLIENTE:
Description

Try same. Use different div with class row.

الكاتب

Second option:

OBSERVACIONES QUE HACE EL CLIENTE
Description (this comes from odoo field)

For,
OBSERVACIONES QUE HACE EL CLIENTE:
Description

Try same. Use different div with class row.

الكاتب

Yeah! that's the solution. Thank you so much for your help

المنشورات ذات الصلة الردود أدوات العرض النشاط
PDF reports تم الحل
5
يوليو 25
2367
Wrong PDF Format تم الحل
2
مارس 24
2902
1
مارس 24
2758
0
نوفمبر 22
3060
0
نوفمبر 19
8