From 7a5ff390949f8a461212c00e50b0fdbae5bca7d6 Mon Sep 17 00:00:00 2001 From: Antoni Marroig Campomar Date: Tue, 12 Nov 2024 11:39:48 +0100 Subject: [PATCH] [IMP] rma: pre-commit auto fixes --- rma/data/mail_data.xml | 25 +++++++++-------- rma/models/rma.py | 2 +- rma/views/res_config_settings_views.xml | 36 +++++++++++-------------- rma/views/rma_portal_templates.xml | 12 ++++----- rma/views/rma_team_views.xml | 14 +++++----- rma/views/rma_views.xml | 6 ++--- 6 files changed, 43 insertions(+), 52 deletions(-) diff --git a/rma/data/mail_data.xml b/rma/data/mail_data.xml index 79d0d22f4..a4ac58a8e 100644 --- a/rma/data/mail_data.xml +++ b/rma/data/mail_data.xml @@ -31,7 +31,6 @@ team_id - RMA Notification @@ -50,14 +49,14 @@ Dear - - + +

Here is the RMA - - + + from . @@ -86,14 +85,14 @@ Dear - - + +

The products for your RMA - - + + from have been received in our warehouse. @@ -121,14 +120,14 @@ Dear - - + +

You've succesfully placed your RMA - - + + on . Our team will check it and will validate it as soon as possible. diff --git a/rma/models/rma.py b/rma/models/rma.py index 124f2c2ad..42fca5eb2 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -1303,7 +1303,7 @@ def _message_get_suggested_recipients(self): # Reporting business methods def _get_report_base_filename(self): self.ensure_one() - return "RMA Report - %s" % self.name + return f"RMA Report - {self.name}" # Other business methods diff --git a/rma/views/res_config_settings_views.xml b/rma/views/res_config_settings_views.xml index a887024d1..6944e6e65 100644 --- a/rma/views/res_config_settings_views.xml +++ b/rma/views/res_config_settings_views.xml @@ -12,42 +12,39 @@ title="Finish RMAs manually" help=" When the RMA is receive, allow to finsish it manually choosing a finalization reason." > - + - + - -
-
- -
+ +
+
- -
-
diff --git a/rma/views/rma_portal_templates.xml b/rma/views/rma_portal_templates.xml index 7c56d9425..ed82652e3 100644 --- a/rma/views/rma_portal_templates.xml +++ b/rma/views/rma_portal_templates.xml @@ -414,9 +414,9 @@
Date: + class="text-muted" + t-field="refund.invoice_date" + />
Date: + class="text-muted" + t-field="picking.date" + /> diff --git a/rma/views/rma_team_views.xml b/rma/views/rma_team_views.xml index 0ae66c788..49a1c76e3 100644 --- a/rma/views/rma_team_views.xml +++ b/rma/views/rma_team_views.xml @@ -97,13 +97,13 @@ style="display: inline;" > @ + name="alias_name" + class="oe_inline" + />@ - + /> + />