Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
5866 มุมมอง

I have created a template for sale and I have also added an 'approved by' part with the issued date. Whenever the list of the product increases this part get split into two pages of the template. I wanted to move that whole field into another whenever splitting get started. Is there any way to do it.                    

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Bhuwan

Did you find a solution to your problem, we have the same issue using Odoo 15

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can add this to your parent div style

display: table


This element should be moved to another page if spaces are not sufficient for the element


Regards,
Hadyan

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hii,

Remove the page break from the div's style.


Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You can split using this. we cannot identify when it splits

<p style="page-break-before:always;"> </p>

Regards,

Silvestar

อวตาร
ละทิ้ง
ผู้เขียน

I have this code at the bottom of my page.

<div class = "signature_of_preprator" style = "float: right; page-break-before:always;">

<t t-if = "doc.signature_image">

<p><img t-att-src = "image_data_uri(doc.signature_image)" style = "height: 100px; width: 80px;"/></p>

</t>

<t t-else = "">

</t>

<p style = "margin-right: 100px; text-align: left; border-top: 2px solid black;">

<strong>Approved By:</strong><br/>

<span t-field = "doc.user_id.name"/><br/>

<t t-if = "doc.user_id.function">

<span t-field = "doc.user_id.function"/><br/>

</t>

<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%m/%d/%Y')"/>

</p>

</div>

I have used page-break but no success, still that 'approve by' block is shown in two pages. I just want that div section move into next page with image whenever splitting occur.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 19
4338
0
ส.ค. 23
1708
2
ก.พ. 19
4188
QWeb report แก้ไขแล้ว
1
ม.ค. 19
3948
0
ม.ค. 16
3728