Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple @Odoo.domain in one OModel #377

Open
ikerfah opened this issue Jun 24, 2018 · 0 comments
Open

Multiple @Odoo.domain in one OModel #377

ikerfah opened this issue Jun 24, 2018 · 0 comments

Comments

@ikerfah
Copy link

ikerfah commented Jun 24, 2018

Hello , i'm having a problem when i try to use two @Odoo.domain() in the same OModel

example :

@Odoo.Domain("[['wilaya_id', '=', @wilaya_id]]")
OColumn market = new OColumn("Nom Marché", Market.class, OColumn.RelationType.ManyToOne).setRequired();
@Odoo.Domain("[['wilaya', '=', @wilaya_id]]")
OColumn commune = new OColumn("Commune", Commune.class,OColumn.RelationType.ManyToOne).setRequired();

OColumn wilaya_id = new OColumn("Wilaya", Wilaya.class,OColumn.RelationType.ManyToOne).setRequired();

if i keep only one of @Odoo.Domain it's works perfectly , when i keep them both only the second get affected by the filter and not both

any help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant