Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2286 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
How to track One2many field in Odoo12? แก้ไขแล้ว
3
พ.ย. 23
17624
Error: Couldn't load module web แก้ไขแล้ว
3
พ.ย. 24
25348
How I get the current ID of a record ? แก้ไขแล้ว
1
เม.ย. 23
6269
2
ธ.ค. 22
7034
1
พ.ย. 22
4183