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.

0

record rule object access

By
Erhuvwu Akpobaro
on 6/17/15, 7:53 AM 397 views

Hello all ,


Is it possible to do record rule like this : 


['|',('company_id','=',False),('company_id','=',[product.company_id.id])]


As i keep getting an error :

Can i say in a record rule i want the company id to equal the product.product company_id ?


0
Virali
On 6/17/15, 8:04 AM

Hii,

Check By putting this.

['|',('company_id','=',False),('company_id','child_of',[product.company_id.id])]

could explain the reason behind product instead product.product ?

Erhuvwu Akpobaro
on 6/17/15, 8:08 AM

product.product is a model and product is variable that will have to store product and product.product have company id in this model.

Virali
on 6/17/15, 8:16 AM

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

1 follower(s)

Stats

Asked: 6/17/15, 7:53 AM
Seen: 397 times
Last updated: 6/17/15, 8:04 AM