Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4791 Tampilan

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? 

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 21
2304
3
Agu 24
7456
0
Mar 25
1163
1
Sep 24
4319
2
Des 23
14657