Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4266 Näkymät

Hi everyone,

I'm wondering about a Group has multiple record rules that effect the same object. Then which rule will be applied.

Example:

I created 2 record rules on Message with domain filter:
first rule: [('subtype_id.name', '!=', 'A')]
2nd rule: ['|',('create_uid', '=', user.id),('subtype_id.name', 'not like', 'B')]


I added these rules to group "Recruitment/Officer". And my purpose is don't want to show the message with subtype named 'A' or 'B' to this Group.

But, it seems that only the 1st rule was applied. The message with subtype 'B' still shown.

So, how can I applied both 2 rules to this Group.

Thank you.


Avatar
Hylkää
Paras vastaus

Dear Vu Huynh,

Try just to modify the first rule, like This 

first rule: [('subtype_id.name', 'not in', ['A','B'])]
and then remove the 2nd rule

I hope I helped you..
Avatar
Hylkää
Tekijä

Hi Ayman,

I know fix this is easy, but why Odoo not combine the rules?