随笔分类 - odoo
摘要:many2many_tags one2many_list selection progressbar selection statusbar handle monetary mail_thread statinfo contact html mail_followers url radio emai
阅读全文
摘要:一、首先我们要分析影响odoo 服务器 性能的因素 CPU 目前大部分CPU在同一时间只能运行一个线程,超线程的处理器可以在同一时间处理多个线程,因此可以利用超线程特性提高系统性能。 在linux系统下只有运行SMP内核才能支持超线程,但是安装的CPu数量越多,从超线程获得的性能提升越少。odoo单
阅读全文
摘要:1. 更新Ubuntu服务器软件源 sudo apt-get update #更新软件源 sudo apt-get dist-upgrade #更新软件包,自动查找依赖关系 sudo shutdown -r now #重启服务器,以更新改变的内容 2. 新建系统用户用于运行Odoo程序 运行如下命令
阅读全文
摘要:[options] ; addons模块的查找路径 addons_path = E:\GreenOdoo8.0\source\openerp\addons ; 管理员主控密码(用于创建、还原和备份数据库等操作) admin_passwd = admin ; 自动重载? auto_reload = None ; 用于导入导出的csv文件的默认分隔符 csv_inte...
阅读全文
摘要:Fields Basic fields The field descriptor contains the field definition, and manages accesses and assignments of the corresponding field on records. Th
阅读全文
摘要:class BaseModel(object): """ Base class for OpenERP models. OpenERP models are created by inheriting from this class' subclasses: * :class:`Model` for regular database-persisted model...
阅读全文
摘要:Environment The Environment stores various contextual data(上下文数据 ) used by the ORM: the database cursor (for database queries), the current user (for
阅读全文
摘要:Other recordset operations Recordsets are iterable(可迭代的) so the usual Python tools are available for transformation (map(), sorted(), ifilter(), ...)
阅读全文
摘要:res_users 用户res_groups 用户组(角色)res_lang 语言res_partner 供应商/客户/联系人res_font 字体res_company 公司res_bank 银行res_country 国家res_country_state 州/省res_currency 货币r
阅读全文
摘要:openerp-server是启动Odoo服务器的第一步,其代码如下。 调用了openerp.cli.main() openerp.cli.main openerp.cli.main() 通过tools.config._parse_config([args[0]])设计模块路径,通过最后一行o.ru
阅读全文
摘要:Odoo的启动通过openerp-server脚本完成,它是系统的入口。 然后加载配置文件openerp-server.conf 或者 openerp_serverrc; openerp-server.conf的主要内容: 这个文件缺省是没有的,Odoo系统会有一个默认值,但是一般情况我们都需配置这
阅读全文
摘要:Odoo的权限的核心是权限组(res_groups)。对每个权限组,可以设置权限组的菜单表示,对象表示,记录规则表示,字段表示。 1.菜单/对象级别 设置哪些人可以访问哪些菜单/对象,对象的访问权限包括创建、读、写、删除。 2.记录级别 设置哪些人可以访问哪些记录,也就是设置表的查询条件。 3.字段
阅读全文
摘要:在controller添加一个test方法, 不需参数 @http.route('/test', type = 'json', auth = 'public') def test(self): phases = http.request.env['project.task.type'].search
阅读全文
摘要:在xml中对one2many 字段(mrp_workorder_variation_line_ids) 设置 只有在草稿状态下才能编辑 <field name="mrp_workorder_variation_line_ids" nolabel="1" attrs="{'readonly':[('s
阅读全文
摘要:""" An environment wraps data for ORM records: - :attr:`cr`, the current database cursor; - :attr:`uid`, the current user id; - :attr:`context`, the c
阅读全文
摘要:Environment:ORM记录的包装类,封装了cr,uid,context等属性,同时提供了注册访问,记录缓存,管理重新计算的数据结构 Meta:自动装饰traditional style的装饰类,同时实现了对returns装饰的继承 guess:该装饰标识方法既可以被traditional s
阅读全文
摘要:Odoo8中,API接口分为traditaional style和record style两种类型: traditional style指的就是我们在7.0中使用的类型,def(self,cr,uid,ids,context)式的语法. record style 8.0及以后版本精简化参数后的风格,
阅读全文
摘要:http://127.0.0.1:8369/web/database/managerhttp://127.0.0.1:8369/web/database/selectorhttp://127.0.0.1:8369/web/login?db=odoo odoo忘记密码 from passlib.con
阅读全文
摘要:今年 <filter string="This Year" name="year" domain="[('date','<=', time.strftime('%%Y-12-31')),('date','>=',time.strftime('%%Y-01-01'))]"/> 今天 <fi
阅读全文
摘要:更新Ubuntu服务器软件源 运行以下代码: sudo apt-get update #更新软件源 sudo apt-get dist-upgrade #更新软件包,自动查找依赖关系 sudo shutdown -r now #重启服务器,以更新改变的内容 更新Ubuntu服务器软件源 运行以下代码
阅读全文

浙公网安备 33010602011771号