上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 48 下一页
摘要: 服务端接收参考: # 导包 from odoo import http class HttpRequest(http.Controller): @http.route('/url', type='json', auth='public', website=True) def server_metho 阅读全文
posted @ 2020-03-01 23:17 何双新 阅读(2052) 评论(0) 推荐(0)
摘要: 1、装载环境Docker刚创建的时候,里头什么也没有,如果我们需要运行一个应用程序,必然要有对应的环境,所以我们第一步是要在Docker中装一个环境。命令如下: #进入管理员模式su root#装载Ubuntu镜像到docker中docker pull ubuntu:16.0 常用命令: docke 阅读全文
posted @ 2020-02-26 23:13 何双新 阅读(193) 评论(0) 推荐(0)
摘要: Odoo中本日、本月、上月过滤器实现方法 Odoo中本日、本月、上月过滤器实现方法<filter string="今日订单" name="today" invisible="0" domain="[('date','=', current_date)]"/><filter string="本月订单" 阅读全文
posted @ 2020-02-15 23:23 何双新 阅读(532) 评论(0) 推荐(0)
摘要: odoo Controller接口开发 POST请求的跨域问题解决方法 1、odoo Controller接口开发,前端在请求的时候会发生跨域问题,报错信息如下:Function declared as capable of handling request of type 'json' but c 阅读全文
posted @ 2020-02-15 23:13 何双新 阅读(1665) 评论(0) 推荐(0)
摘要: 作为远程登陆工具,上传代码登陆服务器工具 1、XSHELL Xshell是远程连接Linux服务器的工具,基于SSH协议,使用它可以更加方便的操作Linux操作系统,在刚使用时可能需要提前简单的设置下 属性-终端 打开当前连接的属性→终端,选择终端类型为linux,缓冲区大小设置20480行,这样可 阅读全文
posted @ 2020-02-15 22:34 何双新 阅读(1694) 评论(0) 推荐(0)
摘要: python包安装: 一种是有网操作:pip install 包名:例子【pip install setuptools】 无网络服务器上操作: 先把包下载:传上去再安装【】 1、一种是 *.whl pip install *.whl 2、 一种是:*.egg .egg文件放到{python安装目录} 阅读全文
posted @ 2020-02-10 08:44 何双新 阅读(163) 评论(0) 推荐(0)
摘要: Python中的反射 反射定义: Python 中所谓的反射是指通过某个对象的方法或者属性字符串名称来调用该对象的方法或者属性 反射函数: 在Python中反射相关的函数有四个: 1、getattr(object, name[, default]) -> value Get a named attr 阅读全文
posted @ 2020-02-02 22:54 何双新 阅读(146) 评论(0) 推荐(0)
摘要: 1、python的GIL 【Global Interpreter Lock】 GIL是什么 首先需要明确的一点是GIL并不是Python的特性,它是在实现Python解析器(CPython)时所引入的一个概念。就好比C++是一套语言(语法)标准,但是可以用不同的编译器来编译成可执行代码。有名的编译器 阅读全文
posted @ 2020-01-31 23:12 何双新 阅读(313) 评论(0) 推荐(0)
摘要: @api.multidef button_cancel(self): for move in self: if not move.journal_id.update_posted: raise UserError(_('You cannot modify a posted entry of this 阅读全文
posted @ 2020-01-30 22:24 何双新 阅读(574) 评论(0) 推荐(0)
摘要: 本文来源:https://www.jianshu.com/p/e892bf01f036 Odoo开发规范 模块结构 文件夹列表及对应作用 data/:演示和数据文件 models/:模型定义 controllers/:控制器(包含HTTP路由) views/:视图和模版 static/:web资源, 阅读全文
posted @ 2020-01-11 18:06 何双新 阅读(469) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 48 下一页