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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Sales quotation
Đã xử lý
|
|
2
thg 3 24
|
2671 | |
Duplicate Rule on Customer
Đã xử lý
|
|
5
thg 5 20
|
3864 | |
|
1
thg 3 15
|
5016 | ||
|
1
thg 3 15
|
4110 | ||
|
2
thg 7 25
|
1453 |