Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2399 มุมมอง
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')
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
เม.ย. 23
11977
0
ธ.ค. 22
2844
1
ก.ย. 22
3890
0
เม.ย. 22
2769
0
พ.ย. 23
280