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

Openerp Record Rule

By
Juan Sebastián Ocampo Ospina
on 5/14/14, 5:43 PM 920 views

I would like to show records only for certain users what belong to group logged with same state of user_id. Also, if user is not supplier would show all records.

This is the sentence, but don´t work. Thanks in advance.

['|',(user.partner_id,'=', False),('delphos_poblacion_usuario_id.city_id.id','=', user.partner_id.city_id.id)]

Error:

File "/opt/openerp/server/openerp/osv/expression.py", line 757, in parse field_path = left.split('.', 1) AttributeError: 'bool' object has no attribute 'split'

 

 

0

Sorry, this is the correct sentence i tried:

 

['|',(user.partner_id.supplier,'=', False),('state_id.id','=', user.partner_id.state_id.id)]

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: 5/14/14, 5:43 PM
Seen: 920 times
Last updated: 3/16/15, 8:10 AM