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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Sales quotation
Solved
|
|
2
मार्च 24
|
1890 | |
Duplicate Rule on Customer
Solved
|
|
5
मई 20
|
3804 | |
|
1
मार्च 15
|
4977 | ||
|
1
मार्च 15
|
4085 | ||
|
2
जुल॰ 25
|
1388 |