会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
北方男孩
博客园
首页
新随笔
联系
订阅
管理
06 2020 档案
odoo api装饰器 one、model和multi区别
摘要:## @api.one 新api定义: 1 qty = fields.Integer(string="qty", compute="_get_qty") 2 3 @api.one 4 def _get_qty(self): 5 self.qty = random.randint(1, 10) one
阅读全文
posted @
2020-06-04 15:00
北方男孩
阅读(1290)
评论(0)
推荐(0)
公告