How to combine the following security rules in V6

Asked by Bushair

Hi
I have created two Record Rule on the Object Document directory in OpenERP V5.

The Record rules are

1)| [(u'group_ids', u'in', [2, 1, 29, 30, 33, 34, 37, 19, 3, 14, 13, 15, 12, 28, 10, 11, 7, 24, 25, 40, 6, 9, 39, 16, 17, 18, 22, 23, 26, 27, 20, 21, 4, 5, 8])]

2) [(u'user_id', u'=', u'admin')]

How can i combine these 2 rules in V6 using OR Operator?

The "Simple domain setup" part is missing in the V6.

Do we have to manually create Record rules in v6 ?

Thanks
Bushair

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
fooflare (fooflare) said :
#1

hello,

I think the combination would be:

['|',('group_ids', 'in', [2, 1, 29, 30, 33, 34, 37, 19, 3, 14, 13, 15, 12, 28, 10, 11, 7, 24, 25, 40, 6, 9, 39, 16, 17, 18, 22, 23, 26, 27, 20, 21, 4, 5, 8]),('user_id', '=', 'admin')]

Regards

Revision history for this message
fooflare (fooflare) said :
#2

One more thing, I see you use ('user_id', '=', 'admin'), but instead of admin, wouldn't be the integer id of admin?

Can you help with this problem?

Provide an answer of your own, or ask Bushair for more information if necessary.

To post a message you must log in.