diff --git a/rma/README.rst b/rma/README.rst index 708f0981..ac962781 100644 --- a/rma/README.rst +++ b/rma/README.rst @@ -7,7 +7,7 @@ Return Merchandise Authorization Management !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:61dcae986b704601fd48af9bba9cc2829a2a17721b9c4b183c817dc7336255ab + !! source digest: sha256:ed3081bf9b94660a0e6b35acbc7a874023c57e4bc3a87f3762eabbb1c75ce2f4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/rma/__manifest__.py b/rma/__manifest__.py index 2a4fae66..044f3d6f 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Return Merchandise Authorization Management", "summary": "Return Merchandise Authorization (RMA)", - "version": "17.0.1.1.0", + "version": "17.0.1.1.1", "development_status": "Production/Stable", "category": "RMA", "website": "https://github.com/OCA/rma", diff --git a/rma/models/stock_picking.py b/rma/models/stock_picking.py index edbc0300..070cdabd 100644 --- a/rma/models/stock_picking.py +++ b/rma/models/stock_picking.py @@ -30,8 +30,8 @@ class StockPicking(models.Model): def action_view_rma(self): self.ensure_one() - action = self.sudo().env.ref("rma.rma_action").read()[0] - rma = self.move_ids.mapped("rma_ids") + action = self.env["ir.actions.act_window"]._for_xml_id("rma.rma_action") + rma = self.move_ids.rma_ids if len(rma) == 1: action.update( res_id=rma.id, diff --git a/rma/static/description/index.html b/rma/static/description/index.html index 8959a6e8..e59c143b 100644 --- a/rma/static/description/index.html +++ b/rma/static/description/index.html @@ -366,7 +366,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:61dcae986b704601fd48af9bba9cc2829a2a17721b9c4b183c817dc7336255ab +!! source digest: sha256:ed3081bf9b94660a0e6b35acbc7a874023c57e4bc3a87f3762eabbb1c75ce2f4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: AGPL-3 OCA/rma Translate me on Weblate Try me on Runboat

This module allows you to manage Return Merchandise Authorization