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

The code below is a server action working to remove supplier info from a list of products

if context and context['active_ids']:

    pid = self.pool('product.supplierinfo').search(cr, uid, [('product_tmpl_id','in',context['active_ids'])])

    self.pool('product.supplierinfo').unlink(cr, uid, pid)


I would like to do the same for removing partner categories; How would you change the code? (I am not a developper and I am using a Saas V11 

Thanks for your help

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 15
4795
2
8月 24
1450
0
1月 25
1334
1
10月 23
3634
2
6月 23
1745