Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4281 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

Hi Ayman,

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