Return Merchandise Authorization
diff --git a/rma_sale/README.rst b/rma_sale/README.rst
index 526a9e7c5..5207bf914 100644
--- a/rma_sale/README.rst
+++ b/rma_sale/README.rst
@@ -11,7 +11,7 @@ Return Merchandise Authorization Management - Link with Sales
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:d6b1fa6b32cd70af3f184e15523665b6c4a0ed698ff894ea34ca0ef8f006a4f4
+ !! source digest: sha256:d242f1d5851f4a6664481283eeda2cadbb498a0af28d19c739910faaceb15ba0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
diff --git a/rma_sale/__manifest__.py b/rma_sale/__manifest__.py
index 76937488d..e5fd26468 100644
--- a/rma_sale/__manifest__.py
+++ b/rma_sale/__manifest__.py
@@ -6,7 +6,7 @@
{
"name": "Return Merchandise Authorization Management - Link with Sales",
"summary": "Sale Order - Return Merchandise Authorization (RMA)",
- "version": "18.0.2.2.0",
+ "version": "18.0.2.2.1",
"development_status": "Production/Stable",
"category": "RMA",
"website": "https://github.com/OCA/rma",
diff --git a/rma_sale/models/rma.py b/rma_sale/models/rma.py
index fdd2542a7..3d544dae4 100644
--- a/rma_sale/models/rma.py
+++ b/rma_sale/models/rma.py
@@ -134,11 +134,19 @@ def action_refund(self):
return res
def _prepare_refund_vals(self, origin=False):
- """Inject salesman from sales order (if any)"""
+ """Inject fiscal_position_id + salesman from sales order (if any)"""
vals = super()._prepare_refund_vals(origin=origin)
order = self.sudo().order_id
if order:
vals["invoice_user_id"] = order.user_id.id
+ # It is important to set the correct fiscal position for the sales order
+ # when creating the invoice, just as it is done in sale
+ vals["fiscal_position_id"] = (
+ order.fiscal_position_id
+ or order.fiscal_position_id._get_fiscal_position(
+ self.partner_invoice_id
+ )
+ ).id
return vals
def _prepare_refund_line_vals(self):
diff --git a/rma_sale/static/description/index.html b/rma_sale/static/description/index.html
index de31a0bdb..f81e84db3 100644
--- a/rma_sale/static/description/index.html
+++ b/rma_sale/static/description/index.html
@@ -372,7 +372,7 @@ Return Merchandise Authorization Management - Link with Sales
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:d6b1fa6b32cd70af3f184e15523665b6c4a0ed698ff894ea34ca0ef8f006a4f4
+!! source digest: sha256:d242f1d5851f4a6664481283eeda2cadbb498a0af28d19c739910faaceb15ba0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

This module allows you to link a sales order to an RMA. This can be done
diff --git a/rma_sale_auto_detect/i18n/it.po b/rma_sale_auto_detect/i18n/it.po
new file mode 100644
index 000000000..86dc7f17c
--- /dev/null
+++ b/rma_sale_auto_detect/i18n/it.po
@@ -0,0 +1,115 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * rma_sale_auto_detect
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 18.0\n"
+"Report-Msgid-Bugs-To: \n"
+"PO-Revision-Date: 2026-05-29 13:46+0000\n"
+"Last-Translator: mymage \n"
+"Language-Team: none\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Weblate 5.15.2\n"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,help:rma_sale_auto_detect.field_rma__return_eligibility_days
+#: model:ir.model.fields,help:rma_sale_auto_detect.field_rma_operation__return_eligibility_days
+msgid ""
+"Defines the time window in which sales can be linked automatically to RMA "
+"lines. Example: 30 days (change of mind), 730 days (warranty), 0 to disable,"
+" or a large number for lifetime warranty."
+msgstr ""
+"Definisce l'intervallo di tempo in cui le vendite possono essere collegate "
+"automaticamente alle righe RMA. Esempio: 30 giorni (ripensamento), 730 "
+"giorni (garanzia), 0 per disabilitare o un numero elevato per la garanzia a "
+"vita."
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_rma__has_sale_auto_detect_issue
+msgid "Has Sale Auto Detect Issue"
+msgstr "Ha un problema auto rileva vendita"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_rma__ignore_sale_auto_detect
+msgid "Ignore Sale Auto Detect"
+msgstr "Ignora auto rileva vendita"
+
+#. module: rma_sale_auto_detect
+#: model_terms:ir.ui.view,arch_db:rma_sale_auto_detect.rma_form_view
+msgid "Link to sale line"
+msgstr "Collegamento a riga di vendita"
+
+#. module: rma_sale_auto_detect
+#. odoo-python
+#: code:addons/rma_sale_auto_detect/models/rma.py:0
+msgid "No delivery move found or insufficient delivered quantity."
+msgstr ""
+"Nessun movimento di vendita trovato o quantità consegnata insufficiente."
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,help:rma_sale_auto_detect.field_stock_move__rma_returnable_uom_qty
+msgid ""
+"Quantity of this delivery move still eligible to be returned through RMA"
+msgstr ""
+"La quantità di questo movimento di consegna è ancora disponibile per il "
+"rimborso tramite RMA"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model,name:rma_sale_auto_detect.model_rma
+msgid "RMA"
+msgstr "RMA"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_stock_move__rma_returnable_uom_qty
+msgid "RMA Returnable Quantity"
+msgstr "Quantità restituibile RMA"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model,name:rma_sale_auto_detect.model_rma_operation
+msgid "RMA requested operation"
+msgstr "Operazione richiesta RMA"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_rma__return_eligibility_period_exceeded
+msgid "Return Eligibility Period Exceeded"
+msgstr "Periodo disponibilità reso superato"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_rma__return_eligibility_days
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_rma_operation__return_eligibility_days
+msgid "Return eligibility duration (days)"
+msgstr "Durata periodo disponibilità reso (giorni)"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model.fields,field_description:rma_sale_auto_detect.field_rma__sale_auto_detect_note
+msgid "Sale Auto Detect Note"
+msgstr "Nota auto rilevamento vendita"
+
+#. module: rma_sale_auto_detect
+#: model:ir.model,name:rma_sale_auto_detect.model_stock_move
+msgid "Stock Move"
+msgstr "Movimento di magazzino"
+
+#. module: rma_sale_auto_detect
+#. odoo-python
+#: code:addons/rma_sale_auto_detect/models/rma.py:0
+msgid ""
+"The quantity to return exceeds the remaining returnable quantity for this "
+"delivery."
+msgstr ""
+"La quantità del reso supera la quantità residua disponibile al reso per "
+"questa consegna."
+
+#. module: rma_sale_auto_detect
+#: model_terms:ir.ui.view,arch_db:rma_sale_auto_detect.rma_form_view
+msgid ""
+"This return may no longer be eligible; the return eligibility period has "
+"been exceeded"
+msgstr ""
+"Questo reso non è più disponibile; il periodo di disponibilità del reso è "
+"scaduto"