跳至内容
菜单
此问题已终结
1 回复
2266 查看

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
17611
3
11月 24
25326
1
4月 23
6264
2
12月 22
7029
1
11月 22
4180