What I want to do is show filtered One2many fields using tree view.
I have One2many fields like below
subscription_line_ids = fields.One2many('subscription.subscription.line', 'subscription_id')
And subscription.subscription.line model has stage field
stage = fields.Selection(
('in progress', 'In Progress'),
so I tried using domain on xml like below
domain="[('subscription_line_ids.stage', '=', 'in progress')]"
<field name="stage" />
But the domain not working
How can I solve this problem?
I know I can do on *.py but I don't want to make fields for every stage.