One2Many domain restriction

Hi,

I’m wondering the best way to get a tab called “Fees” in the Purchase form with just a sub select of puchase.line with product.type = ‘service’. I’ve tried to add a One2Many field with domain Eval(product.type) == ‘service’ but it doesn’t work.
Any ideas ?

Tks,
Laurent

You can use a One2Many with a filter like [('product.type', '=', 'service')].

1 Like

Top !
So simple don’t know why I have tried only with domain attribut…
Tks a lot Cédric.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.