diff --git a/partner_financial_risk/README.rst b/partner_financial_risk/README.rst index 0eeb63425..66c01fb7f 100644 --- a/partner_financial_risk/README.rst +++ b/partner_financial_risk/README.rst @@ -62,6 +62,8 @@ Contributors * Carlos Dauden * Pedro M. Baeza +* Jairo Llopis +* David Vidal * Agathe Mollé Do not contact contributors directly about support or help with technical issues. diff --git a/partner_financial_risk/__manifest__.py b/partner_financial_risk/__manifest__.py index e59bdd2cd..1c36c326d 100644 --- a/partner_financial_risk/__manifest__.py +++ b/partner_financial_risk/__manifest__.py @@ -18,6 +18,7 @@ 'views/res_config_view.xml', 'views/res_partner_view.xml', 'wizard/partner_risk_exceeded_view.xml', + 'templates/assets.xml', ], 'installable': True, } diff --git a/partner_financial_risk/static/src/less/partner_financial_risk_table.less b/partner_financial_risk/static/src/less/partner_financial_risk_table.less new file mode 100644 index 000000000..5e6690856 --- /dev/null +++ b/partner_financial_risk/static/src/less/partner_financial_risk_table.less @@ -0,0 +1,8 @@ +.oe_left_padding_15 { + padding-left: 15px; +} + +label.oe_label_to_left { + float: left; + text-align: left !important; +} diff --git a/partner_financial_risk/templates/assets.xml b/partner_financial_risk/templates/assets.xml new file mode 100644 index 000000000..db3c2bec4 --- /dev/null +++ b/partner_financial_risk/templates/assets.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/partner_financial_risk/tests/test_partner_financial_risk.py b/partner_financial_risk/tests/test_partner_financial_risk.py index bba50dd1f..4673dda74 100644 --- a/partner_financial_risk/tests/test_partner_financial_risk.py +++ b/partner_financial_risk/tests/test_partner_financial_risk.py @@ -146,5 +146,5 @@ class TestPartnerFinancialRisk(SavepointCase): def test_recompute_newid(self): """Computing risk shouldn't fail if record is a NewId.""" - new = self.env['res.partner'].new({'customer': True}) + new = self.env["res.partner"].new({"customer": True}) new._compute_risk_invoice() diff --git a/partner_financial_risk/views/res_partner_view.xml b/partner_financial_risk/views/res_partner_view.xml index 7326cac06..972a6fc10 100644 --- a/partner_financial_risk/views/res_partner_view.xml +++ b/partner_financial_risk/views/res_partner_view.xml @@ -14,38 +14,38 @@ - - + + - + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + - + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + - + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + - + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + - - + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + + - - + + + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/> + attrs="{'readonly': [('risk_allow_edit', '=', False)]}" class="oe_label_to_left"/>