上一页 1 2 3 4 5 6 7 8 9 10 ··· 46 下一页
摘要: 在进行调拨时遇到错误, stock.quant(12345,).product_uom_id 然后没有其他任何提示, 这种错误就比较难定位,到处打断点才定位到错误的位置, odoo针对计算字段compute,related,为了提高读取速度,有做预处理,但是不知道为什么就这一条记录做了预处理就报错了 阅读全文
posted @ 2022-12-31 01:36 那时一个人 阅读(168) 评论(0) 推荐(0)
摘要: 频繁的更新会影响服务的性能 发生该事件的核心代码 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)
摘要: # 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)
摘要: 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)
摘要: 默认是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)
摘要: 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)
摘要: #!/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)
摘要: 备份 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)
摘要: 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)
摘要: 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 下一页