diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml
index 85832ac446d..114424c70e9 100644
--- a/addons/account/views/account_portal_templates.xml
+++ b/addons/account/views/account_portal_templates.xml
@@ -32,46 +32,43 @@
There are currently no invoices and payments for your account.
-
-
-
-
- | Invoice # |
- Invoice Date |
- Due Date |
- |
- Amount Due |
-
-
+
+
+
+ | Invoice # |
+ Invoice Date |
+ Due Date |
+ |
+ Amount Due |
+
+
+
|
- Draft Invoice
+ Draft Invoice
|
|
|
- Waiting for Payment
+ Waiting for Payment
- Paid
+ Paid
- Cancelled
+ Cancelled
|
- |
+ |
-
-
-
+
+
diff --git a/addons/account_payment/views/account_portal_templates.xml b/addons/account_payment/views/account_portal_templates.xml
index 4a1d766fae4..e7edeedeff8 100644
--- a/addons/account_payment/views/account_portal_templates.xml
+++ b/addons/account_payment/views/account_portal_templates.xml
@@ -1,35 +1,35 @@
-
- Status |
+
+ Status |
-
+ |
+ t-att-href="invoice.get_portal_url(anchor='portal_pay')" title="Pay now" aria-label="Pay now" class="btn btn-sm btn-success" role="button">
Pay Now
|
-
+ |
- Waiting for Payment
+ Waiting for Payment
- Authorized
+ Authorized
- Pending
+ Pending
- Paid
+ Paid
- Cancelled
+ Cancelled
|
diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss
index bcbfee68b28..4234447499b 100644
--- a/addons/portal/static/src/scss/portal.scss
+++ b/addons/portal/static/src/scss/portal.scss
@@ -11,6 +11,13 @@ $o-portal-mobile-toolbar: true; // Enable/Disable custom design
$o-portal-mobile-toolbar-border: $border-color;
$o-portal-mobile-toolbar-bg: $gray-200;
+// Portal Tables
+$o-portal-table-th-pt: map-get($spacers, 2) !default; // bts4 pt-2
+$o-portal-table-th-pb: map-get($spacers, 2) !default; // bts4 pb-2
+$o-portal-table-td-pt: map-get($spacers, 1) !default; // bts4 pt-1
+$o-portal-table-td-pb: map-get($spacers, 1) !default; // bts4 pb-1
+
+
// Resize and vertically align navbar’s items relative to navbar
@mixin o-w-fill-navbar($ratio: 1) {
height: round($-navbar-height * $ratio * 100) / 100;
@@ -349,11 +356,19 @@ img.o_we_custom_image {
}
.o_portal_my_doc_table {
- td, th {
- text-align: right;
+ th {
+ padding-top: $o-portal-table-th-pt;
+ padding-bottom: $o-portal-table-th-pb;
}
- tr > :first-child {
- text-align: left;
+
+ td {
+ padding-top: $o-portal-table-td-pt;
+ padding-bottom: $o-portal-table-td-pb;
+ }
+
+ td, th {
+ vertical-align: middle;
+ white-space: nowrap;
}
}
diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml
index f5ce0b78964..81d5d10918b 100644
--- a/addons/portal/views/portal_templates.xml
+++ b/addons/portal/views/portal_templates.xml
@@ -146,6 +146,17 @@
+
+
+
+
+