Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4211 Vizualizări

Hello Dears,.


I want when quotation status be Cancel the Customer i select in the quotation will be deactivate automatically 

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can make the customer inactive by super the function of the cancel button.

class SaleOrderInherit(models.Model):
_inherit = 'sale.order'

@api.multi
def action_cancel(self, vals):
self.partner_id.active = False
res = super(SaleOrderInherit, self).action_cancel()
return res


Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mar. 24
3390
5
mai 20
3908
1
mar. 15
5103
1
mar. 15
4231
2
iul. 25
1500