Skip to Content
Menú
This question has been flagged
1 Respondre
4825 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
0
de jul. 21
2347
3
d’ag. 24
7498
0
de març 25
1172
1
de set. 24
4340
2
de des. 23
14693