Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4262 Widoki

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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..
Awatar
Odrzuć
Autor

Hi Ayman,

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