Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3855 Prikazi

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'

 

 

Avatar
Opusti
Avtor Best Answer

Sorry, this is the correct sentence i tried:

 

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
mar. 15
7049
2
jan. 24
3358
0
jan. 24
1605
2
sep. 23
7742
2
mar. 23
46837