跳至內容
選單
此問題已被標幟
1 回覆
3902 瀏覽次數

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'

 

 

頭像
捨棄
作者 最佳答案

Sorry, this is the correct sentence i tried:

 

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 15
7100
2
1月 24
3385
0
1月 24
1630
2
9月 23
7782
2
3月 23
46874