_columns = {
'type': fields.selection([('new_type', 'New type'),('consu', 'Consumable'),('service','Service')], 'Product Type', required=True, help="Consumable are product where you don't manage stock, a service is a non-material product provided by a company or an individual."),
}
使用所选内容添加:
type = fields.Selection(selection_add=[('new_type', 'New type')])
有两种方法可以向现有选择字段添加值:
复制/粘贴现有字段并添加vlue:
使用所选内容添加:
相关问题 更多 >
编程相关推荐