Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 15
4793
2
elok. 24
1446
0
tammik. 25
1331
1
lokak. 23
3631
2
kesäk. 23
1742