寰智博客

  1. 首页
  2. 技术教程
  3. odoo 开发学习笔记
  4. 正文

字段 Selection

2022年5月7日 683点热度 0人点赞 0条评论

selection 指定该字段的值,可能是列表,值,字符串,模块的办法或者方法名称
selection_add 是对selection 的延伸,它是(值、字符串)列表
在继承和延伸中,selection 是一个必备的属性

sex = fields.Selection([(1,'男'),(2,'女')],string = '性别',defaults = 1)

标签: 暂无
最后更新:2022年5月7日

SudemQaQ

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 blog.szhcloud.cn 寰智博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

苏ICP备16064625号-1

本站使用 又拍云 Logo 提供CDN加速/云存储服务