版本:odoo8.0
mail模块可以对字段更改进行追踪,需要继承mail模块,并向需要追踪的字段添加track_visibility
属性:
- 首先,定义模型时需要继承mail模块
class libraryBook(models.Model):
_name = 'library.book'
_inherit = ['mail.thread']
- 向字段添加追踪属性
name = fields.Char<
版本:odoo8.0
mail模块可以对字段更改进行追踪,需要继承mail模块,并向需要追踪的字段添加track_visibility
属性:
class libraryBook(models.Model):
_name = 'library.book'
_inherit = ['mail.thread']
name = fields.Char<