Odoo 8.0 新API指南
latest
记录/记录集(Record/Recordset) 与 模型(Model)
环境(Environment)
一般动作(Common Actions)
使用记录指针
使用线程
新 ids
字段
方法与装饰器
自省(Introspection)
约定
兼容性
单元测试
YAML
Odoo 8.0 新API指南
Docs
»
欢迎阅读Odoo 8.0新API指南
Edit on GitHub
欢迎阅读Odoo 8.0新API指南
¶
概览
记录/记录集(Record/Recordset) 与 模型(Model)
模型(Model)
继承(Inheritance)
记录集(Recordset)
支持的操作
有用的辅助方法
ids 属性
记录(Record)
记录的显示名称(display name)
Active Record 模式
Active Record模式 注意事项
空查询(Browse_null)链
环境(Environment)
修改环境
改变用户
访问当前用户
使用XML id 获取记录
清理环境缓存
一般动作(Common Actions)
搜索
search
search_read
search_count
检索
写入
使用 Active Record 模式
从记录写入
从记录集写入
多对多(Many2many) 一对多(One2many) 写入行为
拷贝
从记录拷贝
从记录集拷贝
创建
演习(Dry run)
使用记录指针
使用线程
新 ids
字段
字段继承
字段类型
布尔型(Boolean)
字符型(Char)
文本型(Text)
HTML
整型(Integer)
浮点型(Float)
日期型(Date)
日期和时间型(DateTime)
二进制型(Binary)
可选型(Selection)
引用型(Reference)
多对一型(Many2one)
一对多型(One2many)
多对多型(Many2many)
名称冲突
字段缺省值
计算字段(Computed Fields)
翻转(Inverse)
多字段(Multi Fields)
关联字段(Related Field)
属性字段(Property Field)
半成品可拷贝选项(WIP copyable option)
方法与装饰器
@api.returns
@api.one
@api.multi
@api.model
@api.constrains
@api.depends
视图管理
@api.onchange
视图管理
警告和域(Warning and Domain)
@api.noguess
自省(Introspection)
约定与代码升级
约定
下划线(Snake_casing)还是 驼峰(CamelCasing)
导入(Imports)
模型(Model)
字段(Fields)
翻译(Translation)
开发接口(API)
例外(Exceptions)
类(Classes)
新的例外类
重定向警告(RedirectWarning)
禁止访问(AccessDenied)
访问错误(AccessError)
缺失错误(MissingError)
推迟例外(DeferredException)
兼容性(Compatibility)
字段(Fields)
缺省 或 计算
在方法内修改自身
在演习(dry run)中执行
使用记录指针(Cursor)
显示名称
约束
Qweb视图 或 非Qweb视图
Javascript 和 网站(Website)相关代码
兼容性
访问旧 API
如何优雅的对待旧的基础代码
单元测试
YAML
目录与附表
¶
索引
模块索引
搜索页面
Read the Docs
v: latest
Versions
latest
Downloads
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.