Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2274 Представления

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
17616
3
нояб. 24
25333
1
апр. 23
6266
2
дек. 22
7031
1
нояб. 22
4181