İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4102 Görünümler

Hello Dears,.


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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
Sales quotation Çözüldü
2
Mar 24
1823
5
May 20
3792
1
Mar 15
4971
1
Mar 15
4072
2
Tem 25
1365