From e3f4651c529a1ecd33354f68f8530cf3ce264feb Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Wed, 7 Jun 2023 12:20:36 +0000 Subject: [PATCH] [FIX] * : Display improvement This PR will introduce multiple display improvements. Here is the list: - In the accounting settings, the fiscal localization section has a button that was oddly placed. This PR solves that issue. - On the dashboard, when clicking the three dots on a card, the options "remove from favorites" and "configuration" were not aligned. - In ir_attachment, the label and field of "datas" will be aligned, and a gap will be added between the icons. - In the settings, the button links were inconsistent in terms of padding. This PR resolves that. - In the payment providers, two button links had text wrapping issues. By adding Bootstrap classes, this has been resolved. closes odoo/odoo#130522 Task-id: 3342969 X-original-commit: d4ba0c1f69212bfb0030036951c2888e935bbdf0 Related: odoo/enterprise#45060 Signed-off-by: Olivier Colson (oco) --- .../views/account_journal_dashboard_view.xml | 4 ++-- .../account/views/res_config_settings_views.xml | 14 +++++++++----- .../static/src/components/attachment_number.js | 15 +++++++++++++++ .../static/src/components/attachment_number.xml | 9 +++++++++ addons/hr_expense/views/hr_expense_views.xml | 2 +- .../action_buttons_widget.xml | 6 +++--- .../web/static/lib/bootstrap/scss/_buttons.scss | 1 + .../static/src/views/kanban/kanban_dashboard.scss | 1 - odoo/addons/base/views/ir_attachment_views.xml | 5 +++-- 9 files changed, 43 insertions(+), 14 deletions(-) create mode 100644 addons/hr_expense/static/src/components/attachment_number.js create mode 100644 addons/hr_expense/static/src/components/attachment_number.xml diff --git a/addons/account/views/account_journal_dashboard_view.xml b/addons/account/views/account_journal_dashboard_view.xml index 7d237093a9f..c0027892cbb 100644 --- a/addons/account/views/account_journal_dashboard_view.xml +++ b/addons/account/views/account_journal_dashboard_view.xml @@ -207,9 +207,9 @@
- +
- diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index f93e79dfe06..661a530d195 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -27,10 +27,14 @@
-
-
@@ -160,7 +164,7 @@ diff --git a/addons/hr_expense/static/src/components/attachment_number.js b/addons/hr_expense/static/src/components/attachment_number.js new file mode 100644 index 00000000000..96d0dd03a6d --- /dev/null +++ b/addons/hr_expense/static/src/components/attachment_number.js @@ -0,0 +1,15 @@ +/** @odoo-module **/ + +import { registry } from "@web/core/registry"; +import { Component } from "@odoo/owl"; + +class AttachmentNumber extends Component { + + setup() { + super.setup(); + this.attachment_number = this.props.record.data.attachment_number + } + static template = "hr_expense.AttachmentNumber" +} + +registry.category("fields").add("attachment_number", {component: AttachmentNumber}); diff --git a/addons/hr_expense/static/src/components/attachment_number.xml b/addons/hr_expense/static/src/components/attachment_number.xml new file mode 100644 index 00000000000..be34618c1b0 --- /dev/null +++ b/addons/hr_expense/static/src/components/attachment_number.xml @@ -0,0 +1,9 @@ + + + +
+ + +
+
+
diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index c44fc1b4730..7badba7fdcf 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -68,7 +68,7 @@ - + diff --git a/addons/iap/static/src/action_buttons_widget/action_buttons_widget.xml b/addons/iap/static/src/action_buttons_widget/action_buttons_widget.xml index 2b3a42759e9..671d5bccddb 100644 --- a/addons/iap/static/src/action_buttons_widget/action_buttons_widget.xml +++ b/addons/iap/static/src/action_buttons_widget/action_buttons_widget.xml @@ -2,10 +2,10 @@