Skip to Content
Menu
This question has been flagged
1 Atsakyti
2280 Rodiniai

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.

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
lapkr. 23
17618
3
lapkr. 24
25342
1
bal. 23
6268
2
gruod. 22
7031
1
lapkr. 22
4182