Odoo Help

Welcome!

This community 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.

1

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

By
Karthik Arumugam
on 8/17/15, 12:10 PM 1,127 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

--Axel Mendoza--
10228
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

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
0
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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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