İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4793 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 21
2305
3
Ağu 24
7474
0
Mar 25
1163
1
Eyl 24
4321
2
Ara 23
14658