Odoo Help

0

record rule object access

By
Erhuvwu Akpobaro
on 6/17/15, 7:53 AM 482 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

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

1 follower(s)

Stats

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