Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4823 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
juil. 21
2340
3
août 24
7497
0
mars 25
1172
1
sept. 24
4340
2
déc. 23
14687