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

I want to track changes on my html fields. It doesn't work with the usual code.

class ProductTemplateInherited(models.Model):    
_name = "product.template"    
_inherit = ['product.template', 'mail.thread']   
test_html = fields.Html(string="test", translate=True, sanitize=False, track_visibility='always')

For selections or checkboxes etc. it works as usual. Is there a way to make it work for html fields aswell? 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Html field doesn't support track visibility 
ref: https://github.com/odoo/odoo/blob/12.0/addons/mail/models/mail_tracking_value.py#L43
you may try text field with widget html

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 21
2377
Tracking Html field แก้ไขแล้ว
3
ส.ค. 24
7550
0
มี.ค. 25
1193
1
ก.ย. 24
4381
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14739