Skip to Content
Menu
This question has been flagged
2554 Rodiniai
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')
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
bal. 23
12561
0
gruod. 22
3060
1
rugs. 22
4169
0
bal. 22
2942
0
lapkr. 23
280