06 2020 档案
摘要:分享两种报表创建方式: 使用view 方式创建报表,即在数据库中创建view视图,非实体表,odoo中需要设置_auto=False create view view_table as ...; 使用实体表的方式,创建报表 然后再实体表查询时,即调用read_search方法时,重新往实体表填充数据
阅读全文
摘要:select * from stock_move_line where id = any('{5447,5448}'); any 这种写法一般多用于函数中,比如将某个字段的值拆分为列表 感觉这种语法完全可以用in来代替.
阅读全文
摘要:使用镜像共享的的方式迁移数据: 在原账号下创建镜像并共享: 输入对方的账号ID: 在新的账号下重装系统,并选择原账号共享的镜像,
阅读全文
摘要:# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scra
阅读全文
摘要:apt install lrzsz rz # 该命令会打开文件选择窗口 sz # 下载文件 rz中的r意为received(接收),输入rz时、意为服务器接收文件,既将文件从本地上传到服务器。 sz中的s意为send(发送),输入sz时、意为服务器要发送文件,既从服务器发送文件到本地,或是说本地从服
阅读全文
摘要:https://www.cnblogs.com/additwujiahua/p/11317818.html
阅读全文
摘要:https://blog.csdn.net/xueba8/article/details/81843534 说明:图片的下载,交给管道去处理了
阅读全文
摘要:Scrapy 框架学习笔记及截图 多个页面的请求之下一个页面 ● 获取当前链接内容及下一个链接的内容方式: ○ 使用yield 返回当前页面的数据,当前页面的数据返回完成后(for 循环完成后) 再处理下一个链接的地址,使用 yield 返回下一个链接的请求结果. ● 设置请求头: ○ ● 设置管道
阅读全文
摘要:重点: 以partner 的api接口为例: # Copyright 2018 ACSONE SA/NV # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo.addons.base_rest.compon
阅读全文
摘要:按照模块的说明来配置,可以得到如下的效果: 模块会自动生成几个路由: 优点: 自动生成交互式界面,避免开发接口文档. 功能升级: 可以研究下怎讲将该两个模块的功能合并:
阅读全文
摘要:https://blog.csdn.net/JSWANGCHANG/article/details/90739161 需要在类中重新定义几个方法: # 重载加法 def __add__(self, other): print("__add__ are called") obj = Mynum(sel
阅读全文
摘要:点击保存即可, redmine 设置markdown 格式
阅读全文
摘要:https://blog.csdn.net/encircles/article/details/70175558?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&d
阅读全文
摘要:https://blog.csdn.net/tsoteo/article/details/104916911
阅读全文
摘要:<field name="date_order" string="开始时间" filter_domain="[('date_order','>',self)]"/> <field name="date_order" string="结束时间" filter_domain="[('date_order
阅读全文
摘要:git remote set-url origin
阅读全文
摘要:删除某个文件夹后commit 不会成功, 使用git commit -am 'test' 就能将所有的文件提交
阅读全文
摘要:https://blog.csdn.net/weixin_44783961/article/details/89892969 将py文件的后缀更改为.pyw
阅读全文
摘要:Python 标准库的 ConfigParser 模块提供一套 API 来读取和操作配置文件。 https://blog.csdn.net/shuzishij/article/details/81915149
阅读全文
摘要:https://www.odoo.com/zh_CN/forum/help-1/question/odoo-9-src-variable-for-iframe-in-ir-ui-view-112584 https://www.odoo.com/zh_CN/forum/help-1/question/
阅读全文
摘要:以python代码为例: import requests def func(): session = requests.session() url = 'http://IP:8069/web?db=temp' # 指定数据库名称 url2 = 'http://IP:8069/stock_ex/sto
阅读全文
摘要:https://blog.csdn.net/guge907/article/details/18003081 https://community.jaspersoft.com/wiki/allow-anonymous-access-reports
阅读全文
摘要:https://blog.csdn.net/qq_41204464/article/details/86707216
阅读全文
摘要:https://www.jb51.net/article/135153.htm In [19]: '123456789'[-3:0:-1] Out[19]: '765432' 其中-3 表示开始位置,0 表示结束位置, -1 表示步长,若步长为负数,则表示读取的数据从后往前进行.
阅读全文
摘要:https://blog.csdn.net/zzq900503/article/details/78913228
阅读全文
摘要:https://github.com/PyReportJasper/pyreportjasper 从说明上来看,目前还只能支持将报表导出到指定的格式,还不能支持在线预览的功能.
阅读全文
摘要:https://www.cnblogs.com/kerwincui/p/9122055.html https://blog.csdn.net/qq_31156277/article/details/90598311
阅读全文
摘要:https://blog.csdn.net/u011944141/article/details/78902678
阅读全文
摘要:https://stackoverflow.com/questions/18887689/print-report-directly-on-jasperreports-server var url=document.location.href+'&output=pdf'; var printWind
阅读全文