[FIX] portal, account: portal invoice alert layout

Fix broken layout issue
This commit is contained in:
sri-odoo
2018-09-25 12:57:22 +02:00
committed by qsm-odoo
parent 553d3dbaad
commit f5a86259f1
2 changed files with 16 additions and 9 deletions
@@ -122,14 +122,17 @@
</t>
<!-- Page Content -->
<div id="invoice_content" class="o_portal_page_content col-12 col-lg d-flex justify-content-end">
<t t-if="error or warning" t-call="account.portal_invoice_error"/>
<t t-if="success and (not error and not warning)" t-call="account.portal_invoice_success"/>
<div class="o_portal_html_view shadow">
<div class="o_portal_html_loader text-center">
<i class="fa fa-circle-o-notch fa-spin fa-2x fa-fw text-black-50"></i>
<div id="invoice_content" class="o_portal_page_content col-12 col-lg d-flex flex-column align-items-end">
<div class="o_portal_page_size">
<t t-if="error or warning" t-call="account.portal_invoice_error"/>
<t t-if="success and (not error and not warning)" t-call="account.portal_invoice_success"/>
<div class="o_portal_html_view shadow">
<div class="o_portal_html_loader text-center">
<i class="fa fa-circle-o-notch fa-spin fa-2x fa-fw text-black-50"></i>
</div>
<iframe id="invoice_html" class="mt8 mb8" width="100%" height="100%" frameborder="0" scrolling="no" t-att-src="invoice.get_portal_url(report_type='html')"/>
</div>
<iframe id="invoice_html" class="mt8 mb8" width="100%" height="100%" frameborder="0" scrolling="no" t-att-src="invoice.get_portal_url(report_type='html')"/>
</div>
</div>
</div>
+6 -2
View File
@@ -487,11 +487,15 @@ form label {
}
}
.o_portal_html_view {
overflow: hidden;
.o_portal_page_size {
width: 100%;
max-width: 210mm; // A4 page's width
}
.o_portal_html_view {
overflow: hidden;
background: white;
position: relative;
.o_portal_html_loader {
@include o-position-absolute(45%, 0, auto, 0);