第二页与第一页odoo报告的页边距不同

问题描述 投票:0回答:1

大家好,我创建了一个没有徽标或公司信息的自定义外部布局,我在报告中使用了 A4 纸张格式,顶部边距为 40 毫米,底部边距为 30 毫米,但是当我打印时,第一页有额外的空间标题其他页面没有我该如何解决? report result img

这是自定义外部布局的代码

<templateid="custom_external_layout_empty"><tt-if="not o"t-set="o"t-value="doc"/><tt-if="not company"><tt-if="company_id"><tt-set="company"t-value="company_id"/></t><tt-elif="o and 'company_id' in o and o.company_id.sudo()"><tt-set="company"t-value="o.company_id.sudo()"/></t><tt-else="else"><tt-set="company"t-value="res_company"/></t></t><divclass="header"><divclass="row"><divclass="col-12"><br/><br/><br/></div></div></div><divclass="footer"><divclass="row">
</div></div><tt-if="company.external_report_layout_id"t-call="{{company.external_report_layout_id.sudo().key}}"><tt-out="0"/></t><tt-else="else"t-call="web.external_layout_standard"><tt-out="0"/></t>

这是报告的代码

<templateid="report_eco_obs_gen"><tt-call="web.html_container"><tt-foreach="docs"t-as="doc"><tt-call="auto_appointment.custom_external_layout_empty"><divclass="page"style="font-family:Calibri;"><divclass="oe_structure"/><palign="center"style="font-size: 14pt"><strong><u>ECOGRAFÍA 11 - 14 SEMANAS DE GESTACIÓN</u></strong></p><divclass="row mt16 mb8"style="font-size: 12pt"><divclass="col-12"><spanstyle="margin-right: 91px;">Fecha y Hora</span>: <spant-field="doc.date_atention"t-options="{'widget': 'datetime', 'format': 'dd/MM/yyyy, HH:MM:SS'}"/><br/><spanstyle="margin-right: 125px;">Nombre</span>:<tt-if="not doc.hc_obstetric_id"><spant-field="doc.patient_id_gin"/></t><tt-else="else"><spant-field="doc.patient_id"/></t><br/><spanstyle="margin-right: 144px;">Edad</span>:<tt-if="not doc.hc_obstetric_id"><spant-field="doc.patient_id_gin.age"/></t><tt-else="else"><spant-field="doc.patient_id.age"/></t><br/><spanstyle="margin-right: 110px;">Indicación</span>: <spant-field="doc.indication"/><br/><spanstyle="margin-right: 36px;">Condiciones Técnicas</span>: <spant-field="doc.tecnical_condition"/><br/><spanstyle="margin-right: 112px;">Embarazo</span>: <spant-field="doc.pregnant"/><br/><spanstyle="margin-right: 146px;">FUR</span>:<tt-if="not doc.hc_obstetric_id"><spant-field="doc.date_fur_gin"t-options="{'widget': 'date', 'format': 'dd/MM/yyyy'}"/></t><tt-else="else"><spant-field="doc.date_fur"t-options="{'widget': 'date', 'format': 'dd/MM/yyyy'}"/></t><br/><spanstyle="margin-right: 5px;">Edad Gestacional por FUR</span>: <spant-field="doc.gestational_age"/><br/><spanstyle="margin-right: 21px;">Fecha Probable de Parto</span>: <spant-field="doc.date_birth"/><br/><palign="center"><strong><u>EVALUACIÓN ECOGRÁFICA FETAL</u></strong></p><em><spant-field="doc.description"/></em></div></div><br/><br/><divclass="text-center"><imgt-att-src="'/auto_appointment/static/img/sello.png'"height="100"border="1"width="170"/></div></div></t></t></t></template>  

我怎样才能解决空间标题以获得每个页面相同的空间

xml odoo report qweb qwebpage
1个回答
0
投票

您来解决这个问题了吗?我的情况完全一样。我已经使用外部布局创建了一个自定义报告,因此在第一页上,由于地址位于该处,内容会向下移动。但!在第二页上没有地址,由于预先盖章的纸张格式,内容向上移动并被剪切。

© www.soinside.com 2019 - 2024. All rights reserved.