Skip to Content
Menu
This question has been flagged
1 Atsakyti
4867 Rodiniai

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? 

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
liep. 21
2382
3
rugp. 24
7564
0
kov. 25
1195
1
rugs. 24
4392
2
gruod. 23
14753