diff --git a/rma_sale/__manifest__.py b/rma_sale/__manifest__.py index ab2f78d6..ab2d7a4a 100644 --- a/rma_sale/__manifest__.py +++ b/rma_sale/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Return Merchandise Authorization Management - Link with Sales", "summary": "Sale Order - Return Merchandise Authorization (RMA)", - "version": "12.0.1.0.1", + "version": "12.0.1.2.0", "development_status": "Beta", "category": "RMA", "website": "https://github.com/OCA/rma", diff --git a/rma_sale/controllers/sale_portal.py b/rma_sale/controllers/sale_portal.py index 1ce25893..51dd8a7b 100644 --- a/rma_sale/controllers/sale_portal.py +++ b/rma_sale/controllers/sale_portal.py @@ -25,12 +25,13 @@ class CustomerPortal(CustomerPortal): mapped_vals.setdefault(row, {}).update({field_name: value}) line_vals = [(0, 0, vals) for vals in mapped_vals.values()] # Create wizard an generate rmas - location_id = order_obj.browse(order_id).warehouse_id.rma_loc_id.id + order = order_obj.browse(order_id).sudo() + location_id = order.warehouse_id.rma_loc_id.id wizard = wizard_obj.with_context(active_id=order_id).create({ 'line_ids': line_vals, 'location_id': location_id }) - rma = wizard.create_rma(from_portal=True) + rma = wizard.sudo().create_rma(from_portal=True) for rec in rma: rec.origin += _(' (Portal)') if len(rma) == 0: diff --git a/rma_sale/i18n/es.po b/rma_sale/i18n/es.po index bdc9fbbb..57fe29c1 100644 --- a/rma_sale/i18n/es.po +++ b/rma_sale/i18n/es.po @@ -18,19 +18,19 @@ msgstr "" "X-Generator: Poedit 2.0.6\n" #. module: rma_sale -#: code:addons/rma_sale/controllers/sale_portal.py:35 +#: code:addons/rma_sale/controllers/sale_portal.py:36 #, python-format msgid " (Portal)" msgstr "" #. module: rma_sale -#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:48 +#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:45 #, python-format msgid " has been created." msgstr " ha sido creado." #. module: rma_sale -#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:50 +#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:47 #, python-format msgid " have been created." msgstr " han sido creados." @@ -116,7 +116,6 @@ msgstr "" #: model:ir.model.fields,field_description:rma_sale.field_rma__allowed_picking_ids #: model:ir.model.fields,field_description:rma_sale.field_sale_order_line_rma_wizard__allowed_picking_ids #, fuzzy -#| msgid "Picking" msgid "Allowed Picking" msgstr "Dominio de órdenes de entrega" @@ -124,7 +123,6 @@ msgstr "Dominio de órdenes de entrega" #: model:ir.model.fields,field_description:rma_sale.field_rma__allowed_product_ids #: model:ir.model.fields,field_description:rma_sale.field_sale_order_line_rma_wizard__allowed_product_ids #, fuzzy -#| msgid "Product" msgid "Allowed Product" msgstr "Producto" diff --git a/rma_sale/i18n/pt_BR.po b/rma_sale/i18n/pt_BR.po index 2b6be19e..525d0fd1 100644 --- a/rma_sale/i18n/pt_BR.po +++ b/rma_sale/i18n/pt_BR.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * rma_sale +# * rma_sale # msgid "" msgstr "" @@ -17,19 +17,19 @@ msgstr "" "X-Generator: Weblate 3.10\n" #. module: rma_sale -#: code:addons/rma_sale/controllers/sale_portal.py:35 +#: code:addons/rma_sale/controllers/sale_portal.py:36 #, python-format msgid " (Portal)" msgstr " (Portal)" #. module: rma_sale -#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:48 +#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:45 #, python-format msgid " has been created." msgstr " foi criado(a)." #. module: rma_sale -#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:50 +#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:47 #, python-format msgid " have been created." msgstr " foi criado(a)." @@ -56,15 +56,19 @@ msgstr " Cancelar" #. module: rma_sale #: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_content -msgid "" +msgid "" +"" msgstr "" "" #. module: rma_sale #: model_terms:ir.ui.view,arch_db:rma_sale.sale_order_portal_template -msgid "\n" -" If an RMA has already been created for a product in this sales order, it will not\n" -" be possible to create another one from the web portal.\n" +msgid "" +"\n" +" If an RMA has already been created for a " +"product in this sales order, it will not\n" +" be possible to create another one from the " +"web portal.\n" " " msgstr "" "\n" @@ -138,7 +142,9 @@ msgstr "Encerrar" #. 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 "" "Uma conversão entre unidades de medida só poderá ocorrer se pertencer à " "mesma categoria. A conversão será feita com base nas proporções." diff --git a/rma_sale/i18n/rma_sale.pot b/rma_sale/i18n/rma_sale.pot index 3de688c5..e2e0a181 100644 --- a/rma_sale/i18n/rma_sale.pot +++ b/rma_sale/i18n/rma_sale.pot @@ -14,19 +14,19 @@ msgstr "" "Plural-Forms: \n" #. module: rma_sale -#: code:addons/rma_sale/controllers/sale_portal.py:35 +#: code:addons/rma_sale/controllers/sale_portal.py:36 #, python-format msgid " (Portal)" msgstr "" #. module: rma_sale -#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:48 +#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:45 #, python-format msgid " has been created." msgstr "" #. module: rma_sale -#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:50 +#: code:addons/rma_sale/wizard/sale_order_rma_wizard.py:47 #, python-format msgid " have been created." msgstr "" diff --git a/rma_sale/views/sale_views.xml b/rma_sale/views/sale_views.xml index 7ef9a4b5..879040b2 100644 --- a/rma_sale/views/sale_views.xml +++ b/rma_sale/views/sale_views.xml @@ -4,6 +4,7 @@ sale.order.form.inherit sale.order +