Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3868 Tampilan

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
Buang
Penulis Jawaban Terbai

Sorry, this is the correct sentence i tried:

 

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 15
7073
2
Jan 24
3367
0
Jan 24
1610
2
Sep 23
7750
2
Mar 23
46851