跳至內容
選單
此問題已被標幟
3526 瀏覽次數

I'm trying to get a list of Customers and the price lists that they are linked to.  The field reference is property_product_pricelist.  I've tried the SQL below but without success.  If anyone can help I'd be very grateful.


select res_partner.id, res_partner.name, product_pricelist.name from res_partner,ir_property,product_pricelist

where

res_partner.id = right(ir_property.res_id,length(res_id)-12)::integer

and

right(ir_property.value_reference,length(value_reference)-21)::integer = product_pricelist.id

and

left(ir_property.value_reference,20) = 'product_pricelist'

and

res_partner.is_company = TRUE

and

res_partner.customer = TRUE

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
12月 24
1274
2
2月 20
12742
0
3月 15
3746
3
7月 25
1957
4
12月 24
13287