mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[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:
@@ -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",
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user