Odoo Help

1

Security (6,0) and (4) in openerp

By
Karthik Arumugam
on 8/17/15, 12:10 PM 2,217 views

I have seen this eval="[(6, 0, [ref('test_security.base_security_access)])]" and eval="[(4, [ref('test_security.base_security_access')])]" in openerp 7.0 code, what is the use of 6,0 and 4 in security and is there any other combination like this, please explain me.

3
Axel Mendoza
On 8/17/15, 6:34 PM

Yes there are more about this syntax. Please take as a reference a docstring located in the source code of the odoo orm write method for explanation

Thank you so much for helping me and I got this.

Karthik Arumugam
on 8/17/15, 10:40 PM
1
dirtyHandsPHP
On 6/15/16, 3:46 PM

From openerp/osv/fields.py

# Values: (0, 0, { fields }) create

# (1, ID, { fields }) update (write fields to ID)

# (2, ID) remove (calls unlink on ID, that will also delete the relationship because of the ondelete)

# (3, ID) unlink (delete the relationship between the two objects but does not delete ID)

# (4, ID) link (add a relationship)

# (5, ID) unlink all

# (6, ?, ids) set a list of links


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 8/17/15, 12:10 PM
Seen: 2217 times
Last updated: 7/22/16, 3:55 AM