تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2287 أدوات العرض

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
نوفمبر 23
17624
3
نوفمبر 24
25348
1
أبريل 23
6269
2
ديسمبر 22
7034
1
نوفمبر 22
4183