会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那人,那事,那代码
走走停停,终该是留点什么
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
46
下一页
2022年12月31日
odoo CacheMiss 错误
摘要: 在进行调拨时遇到错误, stock.quant(12345,).product_uom_id 然后没有其他任何提示, 这种错误就比较难定位,到处打断点才定位到错误的位置, odoo针对计算字段compute,related,为了提高读取速度,有做预处理,但是不知道为什么就这一条记录做了预处理就报错了
阅读全文
posted @ 2022-12-31 01:36 那时一个人
阅读(168)
评论(0)
推荐(0)
2022年12月28日
odoo 集群频繁更新静态资源包,并失效缓存
摘要: 频繁的更新会影响服务的性能 发生该事件的核心代码 def lookup(self, method, *args, **kwargs): d, key0, counter = self.lru(args[0]) key = key0 + self.key(*args, **kwargs) try: r
阅读全文
posted @ 2022-12-28 00:52 那时一个人
阅读(199)
评论(0)
推荐(2)
2022年11月15日
wkhtmltopdf 支持的纸张格式
摘要: # see http://doc.qt.io/archives/qt-4.8/qprinter.html#PaperSize-enum PAPER_SIZES = [ { 'description': 'A0 5 841 x 1189 mm', 'key': 'A0', 'height': 1189
阅读全文
posted @ 2022-11-15 16:58 那时一个人
阅读(154)
评论(0)
推荐(0)
2022年11月9日
linux python3 源码安装
摘要: https://www.jianshu.com/p/53285c211985 tar -xvf Python-3.6.1.tar.xz make make install
阅读全文
posted @ 2022-11-09 17:16 那时一个人
阅读(24)
评论(0)
推荐(0)
2022年11月8日
odoo 调整日志时间的时区
摘要: 默认是utc时区,需要调整源码 # netsevc.py class DBFormatter(logging.Formatter): def format(self, record): record.pid = os.getpid() record.dbname = getattr(threadin
阅读全文
posted @ 2022-11-08 15:43 那时一个人
阅读(391)
评论(0)
推荐(0)
pip error: Microsoft Visual C++ 14.0 or greater is required
摘要: https://zhuanlan.zhihu.com/p/471661231 去官网下载cpp编译工具: https://my.visualstudio.com/Downloads/Featured?mkt=zh-cn 下载后直接安装默认值 比起有的教程安装visualstudio编辑器好多了. m
阅读全文
posted @ 2022-11-08 11:42 那时一个人
阅读(4000)
评论(0)
推荐(0)
2022年10月13日
python IP段指定端口扫描
摘要: #!/usr/bin/python # -*- coding: utf-8 -*- # 查找哪台电脑开了远程端口 from socket import * # 3389 host = '192.168.11.' opened_ports = [] for ip in range(1, 254): s
阅读全文
posted @ 2022-10-13 14:44 那时一个人
阅读(75)
评论(0)
推荐(0)
2022年10月11日
postgresql 备份和恢复
摘要: 备份 pg_dump -d dbname --format=c -h 172.20.1.1 -p 5432 -U odoo >/tmp/bak.dump.$(date +'%Y%m%d') 恢复 指定参数-C,会自动帮你创建数据库,恢复的数据库名称没法指定,以前叫啥名恢复后就叫啥 pg_restor
阅读全文
posted @ 2022-10-11 10:37 那时一个人
阅读(60)
评论(0)
推荐(0)
2022年10月9日
ffmpeg 下载网络视频,m3u8,转换为指定视频格式
摘要: apt install ffmpeg ffmpeg -i 'https://ss.rongliren123.com/api/video/m3u8?id=16906&admin=1' out.mp4
阅读全文
posted @ 2022-10-09 14:37 那时一个人
阅读(421)
评论(0)
推荐(0)
2022年9月29日
python 查询字符串编码方式
摘要: https://github.com/jackzhenguo/python-small-examples/blob/master/md/170.md In [6]: chardet.detect(b'\xc8\xcb\xc9\xfa\xbf\xe0\xb6\xcc\xa3\xac\xce\xd2\x
阅读全文
posted @ 2022-09-29 16:00 那时一个人
阅读(83)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
46
下一页
公告