Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2282 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
лист. 23
17619
3
лист. 24
25344
1
квіт. 23
6268
2
груд. 22
7031
1
лист. 22
4182