[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.
This commit is contained in:
Pedro M. Baeza
2020-10-20 20:21:10 +02:00
parent dc8d5c5232
commit ffd77e41e4
2 changed files with 2 additions and 1 deletions

View File

@@ -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",

View File

@@ -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)]