跳至内容
菜单
此问题已终结
2368 查看
I have to add Asset:Asset_name in _description.. Asset_name will come from the "name" field value


classAssetCategory(models.Model):
    """ This class used for the Asset Category data model. """
_name = 'asset.asset_category'
    _description = 'Asset Category'
    _inherit = ['portal.mixin', 'mail.thread', 'mail.activity.mixin']
description = fields.Text(string="Description", track_visibility='onchange')
    name = fields.Char(string="Name", required=True, track_visibility='onchange')
形象
丢弃
相关帖文 回复 查看 活动
3
4月 23
11945
0
12月 22
2831
1
9月 22
3872
0
4月 22
2752
0
11月 23
280