- 博客(7)
- 资源 (3)
- 收藏
- 关注
翻译 Odoo的游标cr获取结果fetchall等分析
详解:cr.dictfetchall() will give you all the matching records in the form of the list of dictionary containing key, value [{'': ''}, {'': ''}, ...].cr.dictfetchone() works same as cr.dictfet
2017-09-18 15:29:36 3045
原创 Odoo | 基础 | 初识系统-config配置文件内容简介(持续维护)
Odoo配置文件odoo.conf源码中默认配置文件目录在 odoo/debian/odoo.conf; admin_passwd = admin此密码在账套管理,新建恢复删除等操作时需要次密码验证,防止恶意操作,默认admindb_host = 127.0.0.1数据库主机地址,默认为本机db_port = 5432数据库端口,默认5432db_user = odoo连接数据库的用...
2017-09-18 11:20:01 4389
原创 Odoo | 基础 | 初识系统-ORM之字段属性对象Field
字段属性对象FieldModel的字段属性对应数据表中的相应字段,pg表中不同的字段有不同类型,Odoo也为其封装了相应的类型对象Field类型的属性:type = None 字段类型 relational = False 是否是关联字段 translate = False 字段是否翻译 column_type = None 数据库字段类型 column_format = ...
2017-09-18 11:14:07 2906
原创 Odoo | 基础 | 初识系统-模块目录结构
Odoo模块目录分析以stock模块为例Stock模块目录结构图controllers自定义的控制器实现,具体用法参考website模块;自定义一些网页或功能可通过Controller实现data初始化数据文件目录初始化数据文件如图所示在安装模块时会在数据库表stock_location中添加一条记录,该记录的name字段值为Physical Locations...
2017-09-18 11:06:39 5108
转载 Odoo继承的model的含义
模型对象ModelOdoo的模型对象在odoo模块的models.py文件中,最基础的对象是BaseModel;Odoo的模型对象有三个:AbstractModel、Model、TransientModel BaseModelBaseModel是一切模型的基础_auto = False 是否在后台创建数据表 _register = False _abstract = Tru
2017-09-18 11:02:10 4372
原创 Odoo | 技巧 | 只读字段在onchange方法中被改变后不会保存到数据库
Readonly field in onchange methodIf you change the value of a readonly field in onchange method, on save it will not be stored in the database. In order to do that you would need to overridecreate/...
2017-09-18 10:54:06 3597
原创 Odoo | 技巧 | 字段显示-关系字段的显示值自定义
How to change displayed value for relational field in OdooIf you want to change the displayed value for a relational field in Odoo, the simplest way to do that is to define the“_rec_name”model’s a...
2017-09-18 10:46:09 3858
Odoo12翻译预检模块
2020-11-26
register.py
2016-12-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人