上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: 1.进度百分比 <field name="workpiece_ratio" string="效率" widget="progressbar"/> <field name="workpiece_ratio" string="效率" widget="percentage"/> <field name=" 阅读全文
posted @ 2023-03-13 10:18 手可摘星辰。 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1.安装wkhtmltopdf sudo apt install wkhtmltopdf 2.安装pip包 pip3 install pdfkit 3.代码实现 # -*- coding: utf-8 -*- from odoo import http import pdfkit class Fsn 阅读全文
posted @ 2023-02-24 14:24 手可摘星辰。 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1.效果图 2.按钮Qweb模板 <?xml version="1.0" encoding="utf-8"?> <templates id="template" xml:space="preserve"> <t t-name="OwlDemoButtons" t-inherit="web.ListV 阅读全文
posted @ 2022-12-07 23:07 手可摘星辰。 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 1.url链接一般都采用https协议进行传输 http:数据明文传输 https:数据加密传输 http + ssl 2.用api关键字标识接口url: https://api.baidu.com https://www.baidu.com/api/ 3.在url链接中标识接口版本 https:/ 阅读全文
posted @ 2022-11-18 23:06 手可摘星辰。 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1.js odoo.define('fsn_base/static/src/js/fsn_month.js', function (require) { "use strict"; const AbstractField = require('web.AbstractField'); const f 阅读全文
posted @ 2022-10-14 13:48 手可摘星辰。 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1.安装 pip3 install gunicorn 2.配置文件 import multiprocessing # 并行工作进程数, int,cpu数量*2+1 推荐进程数 workers = multiprocessing.cpu_count() * 2 + 1 # 指定每个工作者的线程数 th 阅读全文
posted @ 2022-09-05 14:29 手可摘星辰。 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1.安装uwsgi pip3 install uwsgi 2.Flask项目目录 flask_demo:项目目录。 uwsgi:用来存放和uwsgi相关的配置文件和日志文件。 venv:虚拟环境目录 test.py:Flask项目启动文件。 3.uwsgi配置文件 [uwsgi] ; 项目名 pro 阅读全文
posted @ 2022-09-03 15:43 手可摘星辰。 阅读(1337) 评论(0) 推荐(0) 编辑
摘要: oe_inline:防止换行,防止它自动将之后的字段换行,使后面的内容自动在同一行显示。 oe_left, oe_right:相当于css的float浮动,向左浮动布局、向右浮动布局。 oe_read_only, oe_edit_only:只在相应的模式下显示,read_only的意思是只有在非编辑 阅读全文
posted @ 2022-08-22 17:16 手可摘星辰。 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1.js odoo.define('fsn_base/js/data_export.js', function (require) { "use strict"; var ListController = require('web.ListController'); var session = re 阅读全文
posted @ 2022-08-06 16:39 手可摘星辰。 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: from odoo.addons.web.controllers import main as web from odoo import http class GetImages(http.Controller): @http.route('/get_imgae/', methods= 阅读全文
posted @ 2022-06-05 09:59 手可摘星辰。 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页