Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

Multiple @Odoo.domain in one OModel #377

Open ikerfah opened 6 years ago

ikerfah commented 6 years ago

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 ?