Skip to Content
Menu
This question has been flagged
2387 Zobrazenia
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')
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
apr 23
11966
0
dec 22
2839
1
sep 22
3881
0
apr 22
2759
0
nov 23
280