diff --git a/rma_sale/README.rst b/rma_sale/README.rst
index 992936bb..65178c1c 100644
--- a/rma_sale/README.rst
+++ b/rma_sale/README.rst
@@ -7,20 +7,20 @@ Return Merchandise Authorization Management - Link with Sales
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
+.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
- :alt: Beta
+ :alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github
- :target: https://github.com/OCA/rma/tree/12.0/rma_sale
+ :target: https://github.com/OCA/rma/tree/13.0/rma_sale
:alt: OCA/rma
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-rma_sale
+ :target: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-rma_sale
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/145/12.0
+ :target: https://runbot.odoo-community.org/runbot/145/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -79,7 +79,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -121,6 +121,6 @@ Current `maintainer `__:
|maintainer-ernestotejeda|
-This module is part of the `OCA/rma `_ project on GitHub.
+This module is part of the `OCA/rma `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/rma_sale/__manifest__.py b/rma_sale/__manifest__.py
index e39a5e20..c63d3bdb 100644
--- a/rma_sale/__manifest__.py
+++ b/rma_sale/__manifest__.py
@@ -3,14 +3,14 @@
{
"name": "Return Merchandise Authorization Management - Link with Sales",
"summary": "Sale Order - Return Merchandise Authorization (RMA)",
- "version": "12.0.1.5.2",
- "development_status": "Beta",
+ "version": "13.0.1.0.0",
+ "development_status": "Production/Stable",
"category": "RMA",
"website": "https://github.com/OCA/rma",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["ernestotejeda"],
"license": "AGPL-3",
- "depends": ["rma", "sale_stock",],
+ "depends": ["rma", "sale_stock"],
"data": [
"views/assets.xml",
"views/report_rma.xml",
diff --git a/rma_sale/i18n/es.po b/rma_sale/i18n/es.po
index 53f318d3..f599abd7 100644
--- a/rma_sale/i18n/es.po
+++ b/rma_sale/i18n/es.po
@@ -18,19 +18,19 @@ msgstr ""
"X-Generator: Weblate 3.10\n"
#. module: rma_sale
-#: code:addons/rma_sale/controllers/sale_portal.py:39
+#: code:addons/rma_sale/controllers/sale_portal.py:0
#, python-format
msgid " (Portal)"
msgstr " (Portal)"
#. module: rma_sale
-#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:42
+#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:0
#, python-format
msgid " has been created."
msgstr " ha sido creado."
#. module: rma_sale
-#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:44
+#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:0
#, python-format
msgid " have been created."
msgstr " han sido creados."
@@ -144,7 +144,7 @@ msgstr ""
"establecidos."
#. module: rma_sale
-#: code:addons/rma_sale/models/sale.py:48
+#: code:addons/rma_sale/models/sale.py:0
#: model_terms:ir.ui.view,arch_db:rma_sale.view_order_form
#, python-format
msgid "Create RMA"
@@ -290,7 +290,6 @@ msgid "Requested operation"
msgstr "Operación solicitada"
#. module: rma_sale
-#: model:ir.model,name:rma_sale.model_sale_order
#: model:ir.model.fields,field_description:rma_sale.field_rma__order_id
msgid "Sale Order"
msgstr "Pedido de venta"
@@ -305,6 +304,11 @@ msgstr "Linea de Asistente de Orden de Venta - RMA "
msgid "Sale Order Rma Wizard"
msgstr "Asistente de Orden de Venta - RMA"
+#. module: rma_sale
+#: model:ir.model,name:rma_sale.model_sale_order
+msgid "Sales Order"
+msgstr ""
+
#. module: rma_sale
#: model:ir.model,name:rma_sale.model_sale_order_line
msgid "Sales Order Line"
@@ -323,7 +327,8 @@ msgstr "Movimiento de existencias"
#. module: rma_sale
#: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_template
msgid "The limit will decrease when the units in other RMAs are confirmed"
-msgstr "El límite disminuirá cuando las unidades de otros RMAs sean confirmadas"
+msgstr ""
+"El límite disminuirá cuando las unidades de otros RMAs sean confirmadas"
#. module: rma_sale
#: model:ir.model.fields,field_description:rma_sale.field_sale_order_line_rma_wizard__uom_id
@@ -359,7 +364,7 @@ msgid "You can send a message in every RMA sent"
msgstr "Puede mandar un mensaje en cada RMA enviado"
#. module: rma_sale
-#: code:addons/rma_sale/models/sale.py:34
+#: code:addons/rma_sale/models/sale.py:0
#, python-format
msgid "You may only create RMAs from a confirmed or done sale order."
msgstr "Solo puedes crear RMAs desde una orden de venta confirmada o hecha."
diff --git a/rma_sale/i18n/pt_BR.po b/rma_sale/i18n/pt_BR.po
index 948a49bd..9e259eb1 100644
--- a/rma_sale/i18n/pt_BR.po
+++ b/rma_sale/i18n/pt_BR.po
@@ -17,19 +17,19 @@ msgstr ""
"X-Generator: Weblate 3.10\n"
#. module: rma_sale
-#: code:addons/rma_sale/controllers/sale_portal.py:39
+#: code:addons/rma_sale/controllers/sale_portal.py:0
#, python-format
msgid " (Portal)"
msgstr " (Portal)"
#. module: rma_sale
-#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:42
+#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:0
#, python-format
msgid " has been created."
msgstr " foi criado(a)."
#. module: rma_sale
-#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:44
+#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:0
#, python-format
msgid " have been created."
msgstr " foi criado(a)."
@@ -140,7 +140,7 @@ msgstr ""
"mesma categoria. A conversão será feita com base nas proporções."
#. module: rma_sale
-#: code:addons/rma_sale/models/sale.py:48
+#: code:addons/rma_sale/models/sale.py:0
#: model_terms:ir.ui.view,arch_db:rma_sale.view_order_form
#, python-format
msgid "Create RMA"
@@ -285,7 +285,6 @@ msgid "Requested operation"
msgstr "Operação Requisitada"
#. module: rma_sale
-#: model:ir.model,name:rma_sale.model_sale_order
#: model:ir.model.fields,field_description:rma_sale.field_rma__order_id
msgid "Sale Order"
msgstr "Pedido de Venda"
@@ -300,6 +299,11 @@ msgstr "Assistente da Linha do Pedido de Venda RMA"
msgid "Sale Order Rma Wizard"
msgstr "Assistente do Pedido de Venda RMA"
+#. module: rma_sale
+#: model:ir.model,name:rma_sale.model_sale_order
+msgid "Sales Order"
+msgstr ""
+
#. module: rma_sale
#: model:ir.model,name:rma_sale.model_sale_order_line
msgid "Sales Order Line"
@@ -349,7 +353,7 @@ msgid "You can send a message in every RMA sent"
msgstr ""
#. module: rma_sale
-#: code:addons/rma_sale/models/sale.py:34
+#: code:addons/rma_sale/models/sale.py:0
#, python-format
msgid "You may only create RMAs from a confirmed or done sale order."
msgstr ""
diff --git a/rma_sale/i18n/rma_sale.pot b/rma_sale/i18n/rma_sale.pot
index 66212562..24e9f61e 100644
--- a/rma_sale/i18n/rma_sale.pot
+++ b/rma_sale/i18n/rma_sale.pot
@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * rma_sale
+# * rma_sale
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\n"
+"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -14,19 +14,19 @@ msgstr ""
"Plural-Forms: \n"
#. module: rma_sale
-#: code:addons/rma_sale/controllers/sale_portal.py:39
+#: code:addons/rma_sale/controllers/sale_portal.py:0
#, python-format
msgid " (Portal)"
msgstr ""
#. module: rma_sale
-#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:42
+#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:0
#, python-format
msgid " has been created."
msgstr ""
#. module: rma_sale
-#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:44
+#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:0
#, python-format
msgid " have been created."
msgstr ""
@@ -120,16 +120,20 @@ msgstr ""
#. module: rma_sale
#: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_template
-msgid "Comment anything relevant to the return, like serial numbers, a description of the issue, etc"
+msgid ""
+"Comment anything relevant to the return, like serial numbers, a description "
+"of the issue, etc"
msgstr ""
#. module: rma_sale
#: model:ir.model.fields,help:rma_sale.field_sale_order_line_rma_wizard__uom_category_id
-msgid "Conversion between Units of Measure can only occur if they belong to the same category. The conversion will be made based on the ratios."
+msgid ""
+"Conversion between Units of Measure can only occur if they belong to the "
+"same category. The conversion will be made based on the ratios."
msgstr ""
#. module: rma_sale
-#: code:addons/rma_sale/models/sale.py:48
+#: code:addons/rma_sale/models/sale.py:0
#: model_terms:ir.ui.view,arch_db:rma_sale.view_order_form
#, python-format
msgid "Create RMA"
@@ -274,7 +278,6 @@ msgid "Requested operation"
msgstr ""
#. module: rma_sale
-#: model:ir.model,name:rma_sale.model_sale_order
#: model:ir.model.fields,field_description:rma_sale.field_rma__order_id
msgid "Sale Order"
msgstr ""
@@ -289,6 +292,11 @@ msgstr ""
msgid "Sale Order Rma Wizard"
msgstr ""
+#. module: rma_sale
+#: model:ir.model,name:rma_sale.model_sale_order
+msgid "Sales Order"
+msgstr ""
+
#. module: rma_sale
#: model:ir.model,name:rma_sale.model_sale_order_line
msgid "Sales Order Line"
@@ -316,7 +324,9 @@ msgstr ""
#. module: rma_sale
#: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_template
-msgid "Use the comment button to add relevant information regarding the RMA, like returned serial numbers or a description of the issue"
+msgid ""
+"Use the comment button to add relevant information regarding the RMA, like "
+"returned serial numbers or a description of the issue"
msgstr ""
#. module: rma_sale
@@ -326,7 +336,8 @@ msgstr ""
#. module: rma_sale
#: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_template
-msgid "You can only return as much product units as you received for this order"
+msgid ""
+"You can only return as much product units as you received for this order"
msgstr ""
#. module: rma_sale
@@ -335,13 +346,14 @@ msgid "You can send a message in every RMA sent"
msgstr ""
#. module: rma_sale
-#: code:addons/rma_sale/models/sale.py:34
+#: code:addons/rma_sale/models/sale.py:0
#, python-format
msgid "You may only create RMAs from a confirmed or done sale order."
msgstr ""
#. module: rma_sale
#: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_template
-msgid "You're about to perform an RMA request. Our team will process it an will reach you once it's validated. Keep in mind that:"
+msgid ""
+"You're about to perform an RMA request. Our team will process it an will "
+"reach you once it's validated. Keep in mind that:"
msgstr ""
-
diff --git a/rma_sale/models/rma.py b/rma_sale/models/rma.py
index e4b87f2f..4fc540c1 100644
--- a/rma_sale/models/rma.py
+++ b/rma_sale/models/rma.py
@@ -20,15 +20,15 @@ class Rma(models.Model):
allowed_picking_ids = fields.Many2many(
comodel_name="stock.picking", compute="_compute_allowed_picking_ids",
)
- picking_id = fields.Many2one(domain="[('id', 'in', allowed_picking_ids)]",)
+ picking_id = fields.Many2one(domain="[('id', 'in', allowed_picking_ids)]")
allowed_move_ids = fields.Many2many(
comodel_name="sale.order.line", compute="_compute_allowed_move_ids",
)
- move_id = fields.Many2one(domain="[('id', 'in', allowed_move_ids)]",)
+ move_id = fields.Many2one(domain="[('id', 'in', allowed_move_ids)]")
allowed_product_ids = fields.Many2many(
comodel_name="product.product", compute="_compute_allowed_product_ids",
)
- product_id = fields.Many2one(domain="[('id', 'in', allowed_product_ids)]",)
+ product_id = fields.Many2one(domain="[('id', 'in', allowed_product_ids)]")
@api.depends("partner_id", "order_id")
def _compute_allowed_picking_ids(self):
@@ -81,5 +81,5 @@ class Rma(models.Model):
"""Inject salesman from sales order (if any)"""
res = super()._prepare_refund(invoice_form, origin)
if self.order_id:
- invoice_form.user_id = self.order_id.user_id
+ invoice_form.invoice_user_id = self.order_id.user_id
return res
diff --git a/rma_sale/models/sale.py b/rma_sale/models/sale.py
index 4346b501..d2b58601 100644
--- a/rma_sale/models/sale.py
+++ b/rma_sale/models/sale.py
@@ -12,7 +12,7 @@ class SaleOrder(models.Model):
rma_ids = fields.One2many(
comodel_name="rma", inverse_name="order_id", string="RMAs", copy=False,
)
- rma_count = fields.Integer(string="RMA count", compute="_compute_rma_count",)
+ rma_count = fields.Integer(string="RMA count", compute="_compute_rma_count")
def _compute_rma_count(self):
rma_data = self.env["rma"].read_group(
@@ -48,7 +48,6 @@ class SaleOrder(models.Model):
return {
"name": _("Create RMA"),
"type": "ir.actions.act_window",
- "view_type": "form",
"view_mode": "form",
"res_model": "sale.order.rma.wizard",
"res_id": wizard.id,
diff --git a/rma_sale/static/description/index.html b/rma_sale/static/description/index.html
index 1f416779..6b4d553a 100644
--- a/rma_sale/static/description/index.html
+++ b/rma_sale/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module allows you to link a sales order to an RMA.
This can be done by creating an RMA from scratch and selecting the sales
order, creating one or more RMAs from a sales order form view or from a sales
@@ -430,7 +430,7 @@ number greater than the order line product quantity.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.