コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2289 ビュー

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".

アバター
破棄
関連投稿 返信 ビュー 活動
3
11月 23
17637
3
11月 24
25396
1
4月 23
6278
2
12月 22
7048
1
11月 22
4188