跳至内容
菜单
此问题已终结
1 回复
4805 查看

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? 

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
7月 21
2309
3
8月 24
7480
0
3月 25
1163
1
9月 24
4322
2
12月 23
14665