Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2271 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
3
nov. 23
17612
3
nov. 24
25328
1
avr. 23
6265
2
déc. 22
7029
1
nov. 22
4180