Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2278 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lis 23
17616
3
lis 24
25339
1
kwi 23
6267
2
gru 22
7031
1
lis 22
4182