Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4835 Widoki

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? 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 21
2359
3
sie 24
7515
0
mar 25
1175
1
wrz 24
4350
2
gru 23
14718