Hello Dears,.
I want when quotation status be Cancel the Customer i select in the quotation will be deactivate automatically
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Dears,.
I want when quotation status be Cancel the Customer i select in the quotation will be deactivate automatically
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
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
Sales quotation
Rozwiązane
|
2
mar 24
|
8781 | ||
|
Duplicate Rule on Customer
Rozwiązane
|
5
maj 20
|
4726 | ||
|
1
mar 15
|
5767 | |||
|
1
mar 15
|
4940 | |||
|
2
lip 25
|
2239 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.