上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: Odoo Shell 浅尝-CSDN博客 1.启动命令 python3 odoo-bin shell -c odoo.conf -d db001 2.内置变量 变量 类型 env odoo.api.Environment 对象 odoo odoo 模块 openerp odoo 模块 self re 阅读全文
posted @ 2023-11-29 13:37 手可摘星辰。 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.配置发送邮件服务器 开启邮箱的服务 配置Odoo发送邮件服务器(用户名为邮箱、密码为授权码) 2.开发过程中如果想使用odoo自带的发送邮件功能,可以在后端创建mail.mail这个模型的记录然后调用send方法。或者有标准模板的邮件内容可以使用mail.template模型中的 send_ma 阅读全文
posted @ 2023-11-28 00:32 手可摘星辰。 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.安装第三方模块queue_job queue/queue_job at 16.0 · OCA/queue · GitHub 2.odoo配置文件,启动多workers workers = 3 proxy_mode = True server_wide_modules = web,queue_jo 阅读全文
posted @ 2023-11-22 17:14 手可摘星辰。 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1.odoo配置文件 limit_memory_hard = 1677721600 limit_memory_soft = 629145600 limit_request = 8192 limit_time_cpu = 600 limit_time_real = 1200 max_cron_thre 阅读全文
posted @ 2023-11-22 16:23 手可摘星辰。 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.安装 apt install redis 2.启动、停止、重启 service redis start service redis stop service redis restart redis-server /etc/redis/redis.conf 也可以启动 kill -9 进程号 停止 阅读全文
posted @ 2023-11-21 23:00 手可摘星辰。 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1.查询去重 SELECT DISTINCT department_id FROM employees; 2.排序 SELECT column1, column2, ... FROM table ORDER BY column1 [ASC | DESC]; SELECT column1, colum 阅读全文
posted @ 2023-11-15 22:43 手可摘星辰。 阅读(7) 评论(0) 推荐(0) 编辑
摘要: res.partner(联系人) 联系人包括客户的公司以公司的员工、供应商的公司以及公司的员工。 res.partner.category(联系人标签) 用于给联系的人打标签,也是树形结构,可以设置上级标签,类似产品中的产品类。 res.partner.title(联系人称谓) 当联系人为个人或者是 阅读全文
posted @ 2023-11-12 23:22 手可摘星辰。 阅读(46) 评论(0) 推荐(0) 编辑
摘要: product.template(产品模板) product.product(产品变体) product.attribute(产品属性) 预设产品变体的属性,包括尺码、颜色等。 product.template.attribute.line(产品属性明细) 产品属性明细就是产品属性的值可以预设几种, 阅读全文
posted @ 2023-11-12 22:43 手可摘星辰。 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.首先按钮或者菜单触发一个后端方法返回url动作 def download_xxx_excel(self): url = '/export_xxx_excel?id={self.id} return { 'type': 'ir.actions.act_url', 'url': url, 'targ 阅读全文
posted @ 2023-08-12 19:25 手可摘星辰。 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1.被测试文件 def is_prime(number): if number >= 10: return False return True 2.测试代码 import unittest import mymath class TestMyMath(unittest.TestCase): def 阅读全文
posted @ 2023-08-02 00:29 手可摘星辰。 阅读(52) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页