Odoo Xml Datetime 类型显示为 Date类型 <field name='date_order' widget='date'/> 利用date widget即可使dateime类型的显示为date。 <field name='date_order' widget='date'/> 利用 ...
分类:
编程语言 时间:
2017-06-21 13:59:33
阅读次数:
194
这是追踪信息用的查询语句,__init__方法初始化作用_order ="hpartner_id desc"def init(self,cr): tools.sql.drop_view_if_exists(cr, 'cust_product_info_report') cr.execute(""" ...
分类:
其他好文 时间:
2017-06-20 23:27:16
阅读次数:
348
一:新建一个模块 一个模块放在一个文件夹中,我们在odoo项目源码中新建一个文件夹 car,用于存放模块car。(一般用一个文件夹专门用来管理我们自定义的模块) 然后在car目录下新建两个文件:__init__.py和__openerp__.py 编辑__openerp__.py: 主要包括:模块名 ...
分类:
其他好文 时间:
2017-06-17 21:34:07
阅读次数:
166
Odoo主要布局控件有: 1:菜单 包括顶层的一级菜单,左侧的多级展开菜单(最多支持5级菜单)。 2:信息查询控件 除了简单的检索功能外,还可以展开筛选器。 3:消息模块 4:个人资料编辑窗口 5:五种视图样式 主要有:列表窗口、图表窗口、透视窗口、日历窗口、表单窗口。 (其实,界面是可以自己定义的 ...
分类:
其他好文 时间:
2017-06-17 20:37:26
阅读次数:
147
Odoo的启动通过openerp-server脚本完成,它是系统的入口。 然后加载配置文件openerp-server.conf 或者 openerp_serverrc; openerp-server.conf的主要内容: 这个文件缺省是没有的,Odoo系统会有一个默认值,但是一般情况我们都需配置这 ...
分类:
其他好文 时间:
2017-06-14 16:32:21
阅读次数:
122
def create(self,cr,uid,vals,context=None): if context is None: context ={} print 111111 print vals[] if vals.get('lx_origin', '/') == '/' : vals['lx_o ...
分类:
其他好文 时间:
2017-06-09 11:10:39
阅读次数:
123
在controller添加一个test方法, 不需参数 @http.route('/test', type = 'json', auth = 'public') def test(self): phases = http.request.env['project.task.type'].search ...
分类:
Web程序 时间:
2017-06-08 13:07:41
阅读次数:
450
单独的seq。xml文件<?xml version="1.0" encoding="utf-8"?><openerp> <data noupdate="1"><!-- Sequences for demo_contract_lx --> <record id="seq_type_demo_contr ...
分类:
其他好文 时间:
2017-06-04 19:55:27
阅读次数:
257
<div class="oe_right oe_button_box" name="buttons"> <button class="oe_inline oe_stat_button" icon="fa-list" name="action_open_jiesuan_order" type="obj ...
分类:
其他好文 时间:
2017-06-04 18:19:51
阅读次数:
756
Odoo8中,API接口分为traditaional style和record style两种类型: traditional style指的就是我们在7.0中使用的类型,def(self,cr,uid,ids,context)式的语法. record style 8.0及以后版本精简化参数后的风格, ...