Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4095 Widoki

Hello Dears,.


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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
Sales quotation Rozwiązane
2
mar 24
1789
5
maj 20
3784
1
mar 15
4962
1
mar 15
4067
2
lip 25
1351