[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

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