From 805178f6713a02ca709a7ff0e24793b569fe98d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 22 Jun 2022 17:06:05 +0200 Subject: [PATCH] [FIX] rma: Avoid set invoice_payment_term_id from partner default value in refund. TT37690 --- rma/__manifest__.py | 2 +- rma/i18n/rma.pot | 14 ++++++++++++-- rma/models/rma.py | 2 ++ rma/static/description/index.html | 2 +- rma/tests/test_rma.py | 4 ++++ 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/rma/__manifest__.py b/rma/__manifest__.py index 640768ae..2d195ec5 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Return Merchandise Authorization Management", "summary": "Return Merchandise Authorization (RMA)", - "version": "14.0.2.3.1", + "version": "14.0.3.0.0", "development_status": "Production/Stable", "category": "RMA", "website": "https://github.com/OCA/rma", diff --git a/rma/i18n/rma.pot b/rma/i18n/rma.pot index 9b814b67..83aa4dbf 100644 --- a/rma/i18n/rma.pot +++ b/rma/i18n/rma.pot @@ -6,8 +6,6 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-03-07 16:33+0000\n" -"PO-Revision-Date: 2022-03-07 16:33+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -818,6 +816,18 @@ msgstr "" msgid "Group By" msgstr "" +#. module: rma +#: model:ir.model.fields,field_description:rma.field_res_company__rma_return_grouping +#: model:ir.model.fields,field_description:rma.field_res_config_settings__rma_return_grouping +#: model:ir.model.fields,field_description:rma.field_rma_delivery_wizard__rma_return_grouping +msgid "Group RMA returns by customer address and warehouse" +msgstr "" + +#. module: rma +#: model_terms:ir.ui.view,arch_db:rma.res_config_settings_view_form +msgid "Group RMA returns by customer and warehouse." +msgstr "" + #. module: rma #: model:ir.model.fields,field_description:rma.field_account_move__id #: model:ir.model.fields,field_description:rma.field_account_move_line__id diff --git a/rma/models/rma.py b/rma/models/rma.py index 4b8c4eba..29d59104 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -1048,6 +1048,8 @@ class Rma(models.Model): """ self.ensure_one() invoice_form.partner_id = self.partner_invoice_id + # Avoid set partner default value + invoice_form.invoice_payment_term_id = self.env["account.payment.term"] def _prepare_refund_line(self, line_form): """Hook method for preparing a refund line Form. diff --git a/rma/static/description/index.html b/rma/static/description/index.html index 7787916a..7ebc384b 100644 --- a/rma/static/description/index.html +++ b/rma/static/description/index.html @@ -3,7 +3,7 @@ - + Return Merchandise Authorization Management