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
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
Sales quotation
Ratkaistu
|
|
2
maalisk. 24
|
2943 | |
Duplicate Rule on Customer
Ratkaistu
|
|
5
toukok. 20
|
3879 | |
|
1
maalisk. 15
|
5036 | ||
|
1
maalisk. 15
|
4147 | ||
|
2
heinäk. 25
|
1470 |