odoo8 or openerp 通过xml id获取数据库id
来源:互联网 发布:如何编写js插件 编辑:程序博客网 时间:2024/05/21 00:16
How to get the Database Id from an XML Id
The ir.model.data model also has a get_object() method returning a browsable record given a model name and an xml_id.
So, another solution could be:
m = self.pool.get('ir.model.data')id = m.get_object(cr, uid, 'base', 'user_root').id
get_object(cr, uid, module, xml_id)
module是路径名字,xml_id就是 xml文件中<record id='xxxx'/>中的id
阅读全文
0 0
- odoo8 or openerp 通过xml id获取数据库id
- 通过ID获取元素
- 通过ID获取元素
- 通过Id获取资源
- 通过字符串获取资源ID
- 11通过id获取元素
- 通过id获取元素坐标
- 通过getIdentifier获取资源id
- jQuery 如何通过 ID 选择器 获取动态ID
- 进程管理:通过父进程ID获取子进程ID
- odoo8 openerp 入门
- Odoo8.0(openerp)
- 如何通过进程ID获取进程名
- 通过进程ID获取基地址
- wordpress 通过页面ID 获取内容
- 通过进程名获取进程ID
- 通过进程ID获取执行文件路径
- 通过进程Id获取窗口句柄
- Servlet处理用户请求和响应(二)
- DBA_FREE_SPACE查询慢的原因及解决方法
- 保研的事终于结束了,接下来就安安心心沉下来做做东西,玩玩游戏吧。
- jstl标签库常见用法
- 开发系统关键字
- odoo8 or openerp 通过xml id获取数据库id
- python项目依赖生成requirements.txt
- 【数据挖掘笔记四】数据仓库和联机分析处理
- go语言的struct类型
- LINUX驱动之SPI子系统之二SPI的基本数据结构1
- ListView条目中有CheckBox点击事件失效问题
- POJ-1330 Nearest Common Ancestors(lca模板题)
- mysql-Can\'t connect to MySQL server on \'127.0.0.1\' (10061) (code 2003)"): error calling Python mo
- 对map集合进行排序