Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3528 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
4792
2
thg 8 24
1443
0
thg 1 25
1325
1
thg 10 23
3628
2
thg 6 23
1742