Skip to Content
Menu
This question has been flagged
1 Reply
3533 Views

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
Discard
Best Answer

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
Discard
Author

Hi Ayman,

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