From 2bc98bfdd1741c95e90be915299b4e507f8e919b Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 20 Oct 2020 20:21:10 +0200 Subject: [PATCH] [FIX] rma_sale: Show directly form on 1 RMA Fine-tune of 9a25d6, as for one record, the domain is not applied, but the list is shown. --- rma_sale/__manifest__.py | 2 +- rma_sale/models/sale.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rma_sale/__manifest__.py b/rma_sale/__manifest__.py index ff5d8e58..cc08a170 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.5.1", + "version": "12.0.1.5.2", "development_status": "Beta", "category": "RMA", "website": "https://github.com/OCA/rma", diff --git a/rma_sale/models/sale.py b/rma_sale/models/sale.py index 09ca0661..54f59860 100644 --- a/rma_sale/models/sale.py +++ b/rma_sale/models/sale.py @@ -62,6 +62,7 @@ class SaleOrder(models.Model): action.update( res_id=rma.id, view_mode="form", + views=[], ) else: action['domain'] = [('id', 'in', rma.ids)]