Condition based domain on many to one relation

Is there any way to use condition based domain on the fields ,
for example if a=true the domain=« self.a=:a »
and if a=false then domain self.b=:b"

Through actions or on field ?

Did you try finder-method ?, it’s finder in the doc but you need to write finder-method in XML Repositories :: Axelor Documentation

Hello

This post might help you:

Regards

Thank You @PakMax ,
Here is the the solution :

<action-attrs name="action-set-specification-domain">
        <attribute if="__parent__.category?.name == 'IT' 
                   name="domain"
                   expr="eval: &quot;self.isTechnical IS TRUE &quot;" for="specName"/>
    </action-attrs>

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.