由于目前openerp 的时区,读取的是UTC 时间,而我国本地时间比UTC 快8小时,这个问题就导致:写入数据库的时候时间相差8小时,以及Openerp日志输出时间格式也相差8小时和 前端显示时间的问题1、更改openerp日志输出时间,如:修改文件:oe_dev/openerp/__init__...
分类:
其他好文 时间:
2014-09-11 17:12:52
阅读次数:
167
内容摘自:http://blog.csdn.net/sz_bdqn/article/details/8785483 _constraints _constraints可以灵活定义OpenERP对象的约束条件,当创建或更新记录时,会触发该条件,如果条件不符合,则弹出错误信息,拒绝修改。 _constr...
分类:
其他好文 时间:
2014-08-27 14:41:17
阅读次数:
189
在openerp安装过程中报错:psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain so...
分类:
数据库 时间:
2014-08-19 12:26:05
阅读次数:
154
Write a short python script which loops over the image files, encode with base64 and write to OpenERP with XMLRPC1 产品图片是需要转为 base64编码的2:如果需要批量导入,可以吧图片...
分类:
其他好文 时间:
2014-08-18 21:44:42
阅读次数:
282
From: http://openerpbay.blogspot.jp/2013/02/javascript-css-and-jquery-in-openerp-70.html Hi fellows, Here i'm showing how can you use JavaScript ,Css ...
分类:
编程语言 时间:
2014-08-13 18:06:06
阅读次数:
362
In OpenERP 7.0. the form view of each object has been redesigned so that the object the user is working on resembles a real document. So, now when a u...
分类:
其他好文 时间:
2014-08-11 14:55:52
阅读次数:
493
因为高级搜索包含对象的所有字段,默认没有做限制。有时候不希望暴露太多字段给用户,所以可以使用如下方法,使高级搜索与普通搜索的字段范围相同。
By default, the advanced search function can search by all of the object's fields. But sometimes, we don't want the user to know...
分类:
其他好文 时间:
2014-08-06 19:04:11
阅读次数:
215
隐藏多对多域的弹出列表视图中的“新建”按钮,如例:
Hiding the "Create" button from the popup list view of a many2many field. Example shown as below:
1. 在.py文件中定义many2many的field:
1. Define a many2many field in the pytho...
分类:
其他好文 时间:
2014-08-06 01:59:20
阅读次数:
273
child_of此操作符,从代码来看,等价于:[('x','child_of',id)] ==> x.prarent_left >=id.parent_left && x.parent_left categ_id.prarent_left >=id.parent_left && categ_id.....
分类:
其他好文 时间:
2014-08-05 22:07:40
阅读次数:
377
在OpenERP中,通过QWeb来对模板进行渲染后加载到浏览器中,而模板中有许多的标签来定制各种需求变化,在这里记录学习过程中碰到的标签定义,以方便查询。 模板中的标签统一都是以"t-"开始的。 t-name 用于指明模板的名称 t-extend 用于指明该模板是继承自另外哪一个模板,后面会带父模板...
分类:
Web程序 时间:
2014-08-05 18:18:19
阅读次数:
226