Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2270 Weergaven

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
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
nov. 23
17612
3
nov. 24
25328
1
apr. 23
6265
2
dec. 22
7029
1
nov. 22
4180