Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2284 Prikazi

How can I disable subscriber subscriptions in the sales order, in the action of sending mail. I'm trying. but does not perform any action.
thanks.
from odoo import models, api

class SaleOrder(models.Model):
_inherit = "sale.order"

@api.multi
    def action_quatation_send(self,vals):
    res=super(SaleOrder,self.with_context({'mail_create_nosubscribe':True,'tracking_disable':True})).action_quation_send(vals)
    return res

Thank you for your answers.

Avatar
Opusti
Best Answer

You may want to watch for typos first, and the correct english term is "quotation", not "quatation" or "quation".

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
nov. 23
17622
3
nov. 24
25348
1
apr. 23
6269
2
dec. 22
7032
1
nov. 22
4183