Skip to Content
Menu
This question has been flagged
1 Reply
1903 Views

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
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
3
Nov 23
15300
3
Nov 24
21042
1
Apr 23
4559
2
Dec 22
5494
1
Nov 22
2658