From 71876330903d92b6264a3ee13422b50307aff788 Mon Sep 17 00:00:00 2001 From: Graeme Gellatly Date: Tue, 21 Aug 2018 23:43:39 +1200 Subject: [PATCH] [IMP] customer_activity_statement: Cleanup (#453) --- customer_activity_statement/__manifest__.py | 2 +- .../static/src/less/layout_statement.less | 22 ++ .../views/statement.xml | 217 +++++++----------- 3 files changed, 111 insertions(+), 130 deletions(-) create mode 100644 customer_activity_statement/static/src/less/layout_statement.less diff --git a/customer_activity_statement/__manifest__.py b/customer_activity_statement/__manifest__.py index 31cd9f7c..f3170e53 100644 --- a/customer_activity_statement/__manifest__.py +++ b/customer_activity_statement/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Partner Activity Statement', - 'version': '11.0.2.0.0', + 'version': '11.0.2.1.0', 'category': 'Accounting & Finance', 'summary': 'OCA Financial Reports', 'author': "Eficent, Odoo Community Association (OCA)", diff --git a/customer_activity_statement/static/src/less/layout_statement.less b/customer_activity_statement/static/src/less/layout_statement.less new file mode 100644 index 00000000..4a600646 --- /dev/null +++ b/customer_activity_statement/static/src/less/layout_statement.less @@ -0,0 +1,22 @@ +.table-statement { + .amount { + text-align: right !important; + width: 14% //spread 7 columns evenly + } + thead { + border-bottom: solid; // required for clean layout + tr th:first-child { + width: auto !important; // required for clean layout + } + tr th:last-child { + width: 16% !important; // required for boxed layout + } + } +} + +.statement-blocked { + background-color: @gray-lighter-darker !important; + td:last-child { + background-color: @gray-lighter-darker !important; + } +} diff --git a/customer_activity_statement/views/statement.xml b/customer_activity_statement/views/statement.xml index c4878bc9..203014ac 100644 --- a/customer_activity_statement/views/statement.xml +++ b/customer_activity_statement/views/statement.xml @@ -2,6 +2,12 @@ + +