Hi,
Is there a way to see together the active and inactive records in a One2many of a view (and only in this view)
Hi,
Is there a way to see together the active and inactive records in a One2many of a view (and only in this view)
You can use a domain to include both of them:
[('active', 'in', [True, False])]
This will make the server skip the active domain and include in the results both kind of records.
I used this syntax in my domain, but it didn’t work. I must have made a mistake somewhere, I recheck.
Thank you.
by putting the suggested domain on the action, opening the view shows the active and inactive elements. However, I failed to do the same in the one2many field of a view (see active and inactive items only in the one2many list. I don’t want to modify the field domain itself). Is there an example somewhere?
No it is not possible because a field must always have the same value no matter the view.
If you want to display inactive records you should probably add a relate with the proper domain.
Or define a new One2Many field with a context active_test: False
.