首页 > TAG信息列表 > 使字段
odoo根据条件,使字段只读,隐藏
class test_readonly(models.Model): _name = 'test_readonly' name = fields.Char(string='姓名') age = fields.Integer(string='年龄') marital_status = fields.Boolean(string='婚否', attrs="{'invisibleodoo根据条件,使字段只读,隐藏
class test_readonly(models.Model): _name = 'test_readonly' name = fields.Char(string='姓名') age = fields.Integer(string='年龄') marital_status = fields.Boolean(string='婚否', attrs="{'invisible