摘要: cd /tmp -- 进入临时目录 wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb -- 下载程序(注:https://githu 阅读全文
posted @ 2022-07-08 12:44 Bruce_pt 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 安装sudo apt updatesudo apt install postgresql postgresql-contrib查看运行状态sudo service postgresql status 进入 sql 命令行sudo su - postgresqlpsql创建用户和授权postgres= 阅读全文
posted @ 2022-05-05 17:36 Bruce_pt 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 一、第一种方法(可略过,直接看第二种方法)这是我第一次配置成功的参考的方法,说实话和我后面的第二种方法比过于麻烦了 https://www.bilibili.com/video/BV1f7411v7xG?from=search&seid=8681440500936089984 在使用该教程时,如果l 阅读全文
posted @ 2021-12-24 18:17 Bruce_pt 阅读(1591) 评论(0) 推荐(0) 编辑
摘要: 1.PostgreSQL的安装 1.1 下载并安装PostgreSQL官方yum源配置文件 dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.n 阅读全文
posted @ 2021-12-21 10:31 Bruce_pt 阅读(210) 评论(0) 推荐(0) 编辑
摘要: odoo12 pycharm 可以正常run 但无法Debug启动: Process finished with exit code -1073740940 (0xC0000374) 解决方式: 修改/odoo/tools/translate.py def resetlocale(): # loca 阅读全文
posted @ 2020-12-10 15:58 Bruce_pt 阅读(181) 评论(0) 推荐(0) 编辑
摘要: import reline = 'booooooobrucebbbaaaacaby123'# regex_str = '^B.*3$' # B开头的任意字符串 ^(以什么开头 符号后面写什么就是以什么开头) .(任意字符) *(重复无限次)$(以什么结尾 符号前是什么就是以什么结尾)# regex_ 阅读全文
posted @ 2019-08-29 23:57 Bruce_pt 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 通过location获取warehouse 阅读全文
posted @ 2019-08-28 18:05 Bruce_pt 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 首先查看npm版本 npm 是node的命令 没有的先安装node 然后执行 npm install -g vue-cli 如果执行这句命令有问题,则需要将npm的仓库地址改为淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taoba 阅读全文
posted @ 2019-06-13 23:35 Bruce_pt 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Odoo中many2one字段类型指定不同的form view,实现也非常简单,只需要在context中指定form_view_ref 1 <field name="invoice_id" context="{'form_view_ref': 'account.invoice_form'}"/> 阅读全文
posted @ 2018-12-24 17:04 Bruce_pt 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: 因为时间在数据库中是以utc时间存在的,所以导出的Excel中时间也是utc的,这就不方便我们进行时间的筛选和统计了,因为和本地(北京)时间差了8个小时。 这样,我们就拿到了当前用户所在的时区与UTC时间的偏移值。 阅读全文
posted @ 2018-10-25 08:59 Bruce_pt 阅读(1922) 评论(0) 推荐(0) 编辑