Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3545 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 15
4795
2
ago 24
1448
0
gen 25
1334
1
ott 23
3634
2
giu 23
1745