Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4265 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

Hi Ayman,

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