Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4089 Tampilan

Hello Dears,.


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

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
Sales quotation Diselesaikan
2
Mar 24
1777
5
Mei 20
3784
1
Mar 15
4959
1
Mar 15
4065
2
Jul 25
1351