跳至內容
選單
此問題已被標幟
2403 瀏覽次數
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
11991
0
12月 22
2856
1
9月 22
3899
0
4月 22
2783
0
11月 23
280