10 2023 档案

摘要:https://baijiahao.baidu.com/s?id=1749263985039398754&wfr=spider&for=pc 阅读全文
posted @ 2023-10-30 14:49 CrossPython 阅读(76) 评论(0) 推荐(0)
摘要:# pip install websockets from uvicorn import run from fastapi import FastAPI app = FastAPI(title="websocket") from typing import List from fastapi imp 阅读全文
posted @ 2023-10-30 13:20 CrossPython 阅读(65) 评论(0) 推荐(0)
摘要:ubuntu:22.04 sudo apt-get install python3.10 pip3 install virtualenv cd /data virtualenv new odooenv sudo apt-get install postgresql = 15.0 sudo apt-g 阅读全文
posted @ 2023-10-30 09:43 CrossPython 阅读(84) 评论(0) 推荐(0)
摘要:更新日期15:17 2016-02-16 星期二 * 用到的js库 我们可以打开 addons/web/views/webclient_template.xml 看到如下: <template id="web.assets_common"> <script type="text/javascript 阅读全文
posted @ 2023-10-29 12:01 CrossPython 阅读(121) 评论(0) 推荐(0)
摘要:widget="ace" widget="attachment_image" widget="boolean_button" widget="barcode_handler" widget="char_domain" widget="dummy" widget="char_domain" widge 阅读全文
posted @ 2023-10-29 09:16 CrossPython 阅读(242) 评论(0) 推荐(0)
摘要:项目所需 前端用vue的element组件 后端用odoo 1、为什么选用 element (饿了么) 源自vue vue国人开发 文档完善 便于自学 关键是我以前接触过 比react上手快 一开始的路线是想直接在template里面引入vue的js在xml混写,结果总是报错,这两天一直在想办法解决 阅读全文
posted @ 2023-10-28 23:50 CrossPython 阅读(631) 评论(0) 推荐(0)
摘要:https://wenku.csdn.net/answer/5e4825742ee04bb4ab88e41ec6c34df9 阅读全文
posted @ 2023-10-28 22:30 CrossPython 阅读(53) 评论(0) 推荐(0)
摘要:前言搜索栏组件是我们经常会使用到的,且大多数时候我们会默认它存在。然而Odoo的原生searchBar似乎有些不太符合国内的使用习惯的。 我们使用Odoo Widget可以创建一个公共的组件进行组件复用,本期就先尝试封装一个公共的搜索栏组件,来看看应该如何实现吧~ 本篇代码很硬核,强烈建议收藏反复观 阅读全文
posted @ 2023-10-28 21:38 CrossPython 阅读(279) 评论(1) 推荐(0)
摘要:resourcesaver 文件下载地址是https://www.crx4chrome.com/crx/75492/。下载后,将后缀crx 拖入chrome扩展即可. 阅读全文
posted @ 2023-10-28 14:50 CrossPython 阅读(28) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no 阅读全文
posted @ 2023-10-28 08:04 CrossPython 阅读(283) 评论(0) 推荐(0)
摘要:重启服务/etc/init.d/postgresql restart sudo service postgresql stopsudo service postgresql start sudo service odoo16 stopsudo service odoo16 start sudo sy 阅读全文
posted @ 2023-10-27 17:06 CrossPython 阅读(204) 评论(0) 推荐(0)
摘要:psycopg2sudo apt-get install postgresql python-ldapsudo apt-get install libsasl2-dev libldap2-dev libssl-dev 阅读全文
posted @ 2023-10-27 16:05 CrossPython 阅读(55) 评论(0) 推荐(0)
摘要:创建Dockerfile # 使用Python 3.9作为基础镜像 FROM python:3.9 # 设置工作目录 WORKDIR /app # 将当前目录中的代码复制到镜像中的/app目录 COPY . /app # 安装应用程序所需的依赖 RUN ["pip", "install", "-i" 阅读全文
posted @ 2023-10-26 22:36 CrossPython 阅读(249) 评论(0) 推荐(0)
摘要:No supported authentication methods available (server sent: publickey)错误解决Putty, WinScp或者Filezilla在远程登录的时候出现No supported authentication methods availa 阅读全文
posted @ 2023-10-26 20:30 CrossPython 阅读(3585) 评论(0) 推荐(0)
摘要:转换为 WSL2 输入命令并回车,列出已经安装的 WSL 以及对应的版本。 wsl -l -v 将对应的 WSL 发行版设为 WSL2,命令: wsl --set-version CentOS_A 2 如何在 Ubuntu WSL 中启用 systemd 要使用 systemd,首先需确保运行的是来 阅读全文
posted @ 2023-10-26 20:25 CrossPython 阅读(226) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/cloud1980_cn/article/details/130961229 https://blog.51cto.com/u_16099300/6685959 https://blog.csdn.net/weixin_45039855/article/d 阅读全文
posted @ 2023-10-26 17:14 CrossPython 阅读(22) 评论(0) 推荐(0)
摘要:this.actionService.doAction({ 'type': 'ir.actions.client', 'tag': 'reload', }); this.actionService.doAction({ type: 'ir.actions.client', tag: 'display 阅读全文
posted @ 2023-10-26 15:38 CrossPython 阅读(410) 评论(0) 推荐(0)
摘要:方法1:使用ajax,通过formdata传参 //注意:FormData只兼容到IE10 var formData = new FormData(); var file = $('.import-file-btn').get(0).files[0]; formData.append('file', 阅读全文
posted @ 2023-10-26 12:31 CrossPython 阅读(2954) 评论(0) 推荐(0)
摘要:在Odoo14中,如何在form表单中最上面插入一个Canvas的画布控件呢? 首先,我发现在Odoo中,form表单会在每次重置后只进入一次form视图的init和renderButtons等相关的初始化视图方法。但是在二次渲染视图时,会出现"不触发"和"找不到相关DOM元素"的问题。 为了解决这 阅读全文
posted @ 2023-10-26 09:07 CrossPython 阅读(135) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from collections import OrderedDict f 阅读全文
posted @ 2023-10-25 13:21 CrossPython 阅读(34) 评论(0) 推荐(0)
摘要:一:Controller 一般通过继承的形式来创建controller类,继承自odoo.http.Controller。 以route装饰器来装饰定义的方法,提供url路由访问路径: class MyController(odoo.http.Controller)://继承controller定义 阅读全文
posted @ 2023-10-25 11:01 CrossPython 阅读(74) 评论(0) 推荐(0)
摘要:1,Flutter Gallery Flutter Gallery 是一个由Flutter团队自己开发的开源应用,目的是为了帮助开发者学习Flutter的各种UI组件和设计模式。该应用程序提供了如何实现不同部件和功能的真实例子,使其成为初学者和经验丰富的Flutter开发人员的绝佳资源。Flutte 阅读全文
posted @ 2023-10-24 22:36 CrossPython 阅读(618) 评论(0) 推荐(0)
摘要:加用户 def trigger(self): sql = '''select b.USERNAME,b.LOGINID,a.email,b.PASSWORD,a.orgcode_show,a.dianhua from CP_yuangongdy a left join AU_USERINFO b o 阅读全文
posted @ 2023-10-24 16:15 CrossPython 阅读(52) 评论(0) 推荐(0)
摘要:新增、删除、查询任务计划 #wintask-query #根据任务名称关键词查询Windows计划任务 #wintask-del #根据任务名称关键词删除Windows计划任务,也可以传递计划任务完整路径 #wintask-run #根据任务名称关键词立即运行Windows计划任务 #wintask 阅读全文
posted @ 2023-10-23 14:14 CrossPython 阅读(77) 评论(0) 推荐(0)
摘要:一、背景 在Windows 10上可以使用WSL和新的Terminal直接运行Linux,同时,还可以通过Windows Store在线商店安装需要的Linux发行版。但在Windows Server上,没有在线商店可用。因此,安装方法可以参考如下。 首先检查确认版本高于 Windows Serve 阅读全文
posted @ 2023-10-23 10:12 CrossPython 阅读(1017) 评论(0) 推荐(0)
摘要:在Windows系统中的文件夹中找到WSL(Windows Subsystem for Linux)子系统的文件夹,并直接进行访问和操作。具体而言,你可以将代码文件从Windows复制到WSL子系统中,或者将代码文件从WSL子系统复制到Windows系统中。这样可以实现电脑本地Windows与WSL 阅读全文
posted @ 2023-10-23 09:31 CrossPython 阅读(5511) 评论(0) 推荐(0)
摘要:在网页设计中,我们常常需要让元素随着屏幕大小的变化而自适应。这样可以让网页在不同尺寸的设备上显示得更加美观和合理。CSS提供了很多的技巧来实现这一目的。 第一种方法是使用百分比来设置元素的大小。比如,可以将容器宽度设置为100%,这样容器就会随着屏幕大小的变化而自适应。同时,也可以使用百分比来设置字 阅读全文
posted @ 2023-10-21 23:27 CrossPython 阅读(3265) 评论(0) 推荐(0)
摘要:恭喜你,已经完成了本专题的学习。下面我们对本专题进行简要的总结。 不知道你通过本专题的学习有哪些收获,欢迎你跟我们或者身边的朋友分享。针对本专题开发的博客,我希望你要明确一点: 这个博客只是用来教学的,不要用于生产环境。 安全 本专题使用的是最简单的Cookie来鉴权,这是一种非常弱的保护机制。 性 阅读全文
posted @ 2023-10-21 20:24 CrossPython 阅读(106) 评论(0) 推荐(0)
摘要:本章将实现存档文章列表功能。注意,本章涉及较多PostgreSQL知识,如果你对相关知识不熟悉,可以先让代码跑起来,再去了解相关知识。 模板 本功能模板文件是templates/frontend/topic_arch.html。 视图类 本功能视图类定义在src/view/frontend/topi 阅读全文
posted @ 2023-10-21 20:23 CrossPython 阅读(39) 评论(0) 推荐(0)
摘要:本章将实现博客文章的详情显示功能。 数据库视图 CREATE VIEW v_topic_cat_detail AS SELECT t.id, title, html, hit, dateline,category_id,t.is_del, c.name AS category_name FROM t 阅读全文
posted @ 2023-10-21 20:22 CrossPython 阅读(53) 评论(0) 推荐(0)
摘要:本章将实现博客的分类文章列表功能。 模板 请参见代码仓库的templates/frontend/topic_list.html 视图类 请参见代码仓库的src/view/frontend/topic.rs handler // src/handler/frontend/topic.rs pub as 阅读全文
posted @ 2023-10-21 20:22 CrossPython 阅读(64) 评论(0) 推荐(0)
摘要:后台管理完成后,我们开始进入前台功能的开发。本章我们将完成博客首页的开发。 母模板 templates/frontend/base.html 是时候对前台母模板进行数据填充和块的定义了: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset 阅读全文
posted @ 2023-10-21 20:21 CrossPython 阅读(149) 评论(0) 推荐(0)
摘要:目前,后台管理功能基本完成,但还有两个工作没做:清理后台管理的导航菜单以及后台管理首页的模板。 后台管理菜单 <!-- templates/backend/base.html --> <!-- ... --> <div class="container-fluid"> <div class="row 阅读全文
posted @ 2023-10-21 20:20 CrossPython 阅读(115) 评论(0) 推荐(0)
摘要:本章实现后台管理的鉴权,以及管理员的登录、注销功能。涉及的知识点有:cookie及中间件等。 数据库结构 CREATE TABLE admins ( id SERIAL PRIMARY KEY, email VARCHAR(255) NOT NULL, password VARCHAR(255) N 阅读全文
posted @ 2023-10-21 20:19 CrossPython 阅读(658) 评论(0) 推荐(0)
摘要:本章我们将实现博客的文章管理功能。 数据库结构 CREATE TABLE topics ( id BIGSERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL, category_id INT NOT NULL, summary VARCHAR(255) NO 阅读全文
posted @ 2023-10-21 20:18 CrossPython 阅读(90) 评论(0) 推荐(0)
摘要:本章开始,我们将对博客的具体业务进行实现。首先,我们实现博客分类的管理功能。 数据库结构 CREATE TABLE categories ( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, is_del BOOLEAN NOT NULL DEFA 阅读全文
posted @ 2023-10-21 20:17 CrossPython 阅读(164) 评论(0) 推荐(0)
摘要:我们的博客分为“前台”和“后台”两部分。前台用于展示博客内容,后台用于管理博客。本章我们将编写前台和后台的基础模板以及对应的路由。 目录结构 前台模板位于 templates/frontend,后台模板位于templates/backend。 前台 我们的前台模板基于 Bootstrap的Blog  阅读全文
posted @ 2023-10-21 20:16 CrossPython 阅读(295) 评论(0) 推荐(0)
摘要:本章我们将开始搭建本应用的骨架,包括:依赖、Result 和 AppError 以及通用数据库操作等。 依赖 # Cargo.toml [dependencies] tokio = { version="1", features = ["full"] } serde = { version="1", 阅读全文
posted @ 2023-10-21 20:15 CrossPython 阅读(274) 评论(0) 推荐(0)
摘要:pycharm 主页 Help -> Find Action -> 输入 Registry -> 禁用ide.await.scope.completion 阅读全文
posted @ 2023-10-21 08:31 CrossPython 阅读(346) 评论(0) 推荐(0)
摘要:service_log_path = None 阅读全文
posted @ 2023-10-20 15:16 CrossPython 阅读(33) 评论(0) 推荐(0)
摘要:from selenium import webdriver from fake_useragent import UserAgent ua = UserAgent().random options = webdriver.ChromeOptions() options.add_argument(' 阅读全文
posted @ 2023-10-20 13:41 CrossPython 阅读(842) 评论(0) 推荐(0)
摘要:Python + Firefox + 插件(closeproxy.xpi) 其中,closeproxy.xpi文件,需要Google、Bing搜下都能搜到下载地址 完整的测试代码如下: from selenium import webdriver from selenium.webdriver.fi 阅读全文
posted @ 2023-10-20 13:38 CrossPython 阅读(537) 评论(0) 推荐(0)
摘要:设置Firefox headless模式 def setUp(self): # Firefox headless模式运行 options = webdriver.FirefoxOptions() options.add_argument('-headless') self.driver = webd 阅读全文
posted @ 2023-10-20 11:33 CrossPython 阅读(601) 评论(0) 推荐(0)
摘要:selenium已经停止了对PhantomJS的支持,只能调用Firefox或者Chrome浏览的无头模式(即没有浏览器界面)。使用步骤: 安装Firefox浏览器firefox历年版本安装包的官方镜像地址:https://download-installer.cdn.mozilla.net/pub 阅读全文
posted @ 2023-10-20 10:45 CrossPython 阅读(863) 评论(0) 推荐(0)
摘要:1. 修改用户postgres的密码PostgreSQL数据库默认创建管理员账号:postgres;修改其密码,仅需一下三步: 1、首先,登录PostgreSQL sudo -u postgres psql postgres -p 54322、然后,修改账号postgres的密码 ALTER USE 阅读全文
posted @ 2023-10-18 21:29 CrossPython 阅读(2026) 评论(0) 推荐(0)
摘要:修改配置文件:sudo vim /etc/postgresql/9.5/main/pg_hba.conf,在文件中添加 host all all 0.0.0.0/0 md5。 all :匹配任何IP地址。 0.0.0.0/0:对于所有IPv4地址,允许任何ip地址以任何用户身份连接任何数据;::0/ 阅读全文
posted @ 2023-10-17 19:28 CrossPython 阅读(494) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>html 表格导出道</title> <script language="JavaScript" type="text/javascript"> //第一种方法 阅读全文
posted @ 2023-10-16 16:04 CrossPython 阅读(13958) 评论(0) 推荐(0)
摘要:use rsautogui::mouse; use std::thread::sleep; use std::time::Duration; use anyhow::{self, Ok}; fn run(x: u16) ->Result<(), anyhow::Error>{ let timesec 阅读全文
posted @ 2023-10-16 10:47 CrossPython 阅读(66) 评论(0) 推荐(0)
摘要:server { server_name erp.shudou.cn listen 80; location / { proxy_pass http://127.0.0.1:8069; } } server { server_name shudou.cn www.shudou.cn listen 8 阅读全文
posted @ 2023-10-15 19:54 CrossPython 阅读(28) 评论(0) 推荐(0)
摘要:静态: STATIC_URL = 'static/'STATIC_ROOT = os.path.join(BASE_DIR, 'static')STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), # 上线部署后把这删除, 以免和上面的冲突.) 阅读全文
posted @ 2023-10-15 19:39 CrossPython 阅读(17) 评论(0) 推荐(0)
摘要:用户拓展 https://www.jb51.net/article/283886.htm https://www.jb51.net/article/167864.htm 阅读全文
posted @ 2023-10-15 11:38 CrossPython 阅读(19) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_38649779/article/details/131911893 sourcedefenderhttps://dev.to/richard_scott/encryption-for-protecting-python-source-cod 阅读全文
posted @ 2023-10-14 22:14 CrossPython 阅读(47) 评论(0) 推荐(0)
摘要:全新安装的odoo,但启动时出现relation "ir_module_module" does not exist,以为是数据库要手动初始化,所以也在启动时加入-i base -d odoo13的命令,但也无效,注释addons_path就ok,但路径检查过是没有问题的,待启动之后,再打开addo 阅读全文
posted @ 2023-10-14 20:21 CrossPython 阅读(417) 评论(0) 推荐(0)
摘要:重新复习一下,好多年没碰了.都快忘光了.. https://blog.csdn.net/weixin_51550438/article/details/124669218 from django.db import models #定义图书模型类Book class Book(models.Mode 阅读全文
posted @ 2023-10-14 09:15 CrossPython 阅读(47) 评论(0) 推荐(0)
摘要:django-vue-admin = django+vue+elementui, 没有适配小屏likeadmin(Python版) = fastapi, vue, elementuivue-elementUI后台管理系统vue-next-admin = 基于vue3.x 、Typescript、vi 阅读全文
posted @ 2023-10-13 21:10 CrossPython 阅读(28) 评论(0) 推荐(0)
摘要:exportToExcel() { var fileName = "最新质量等级成本"; const csv = this.convertToCSV(this.datas); // 将数据转换为CSV格式 const blob = new Blob([csv], { type: 'text/csv; 阅读全文
posted @ 2023-10-13 17:24 CrossPython 阅读(160) 评论(0) 推荐(0)
摘要:odoo字段定义的时候,可以使用同模型中其他值进行操作,下面列举常用的操作 用作related计算字段1 = fields.Char(related='字段2.字段xxx')字段2 = fields.Many2one('模型名')如果字段2是关系型字段many2one,引号中可以用点.引用该字段对应 阅读全文
posted @ 2023-10-12 18:52 CrossPython 阅读(111) 评论(0) 推荐(0)
摘要:cd e:\Programe Files\PostgreSQL\11\bin psql -d ethgateway -U ethgateway -f D:\Desktop\db.sql然后要求输入密码, 即可. 阅读全文
posted @ 2023-10-12 16:43 CrossPython 阅读(265) 评论(0) 推荐(0)
摘要:1 命令行方式启动odoopython odoo-bin shell -c odoo.conf 2 卸载出问题的模块>>> self.env['ir.module.module'].search([('name', 'like', '需要卸载的模块名')]).button_immediate_uni 阅读全文
posted @ 2023-10-11 20:59 CrossPython 阅读(105) 评论(0) 推荐(0)
摘要:def customize_create_user(self): a = self.env['res.partner'].create({'name': 'abcde'}) self.env['res.users'].create({'active': True, 'partner_id': a.i 阅读全文
posted @ 2023-10-11 11:06 CrossPython 阅读(105) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-10 16:52 CrossPython 阅读(18) 评论(0) 推荐(0)
摘要:https://github.com/vuejs-templates/webpack 下载之后,解压到本地用户目录下的.vue-templates目录下。 vue init webpack my-login-library 命令的时候,需要带上参数--offline表示离线初始化 阅读全文
posted @ 2023-10-10 16:06 CrossPython 阅读(242) 评论(0) 推荐(0)
摘要:安装 node.js npm install webpack webpack-cli webpack-dev-server -g npm i -g @vue/cli-init 项目阶段: vue init webpack sdt npm i element-ui -S cd sdt npm run 阅读全文
posted @ 2023-10-10 15:19 CrossPython 阅读(15) 评论(0) 推荐(0)
摘要:问题1:expected indentation of 0 spaces but found 2 . 解决方案:1.打开 /config/index.js文件 ,找到: // 将 true更改为false即可 useEslint: false, 2.打开根目录下的/.eslintrc.js文件,找到 阅读全文
posted @ 2023-10-10 14:36 CrossPython 阅读(40) 评论(0) 推荐(0)
摘要:看过作者的自述后, 再重新看一下这个框架, 感觉又有一些新的体会... 为什么要写这个框架 因为我笨,无法学会使用 actix-web 等现存的框架。当我想把以前的 go 的 web 服务使用 rust 实现时,一眼看去,似乎每个框架都比 go 里存在框架复杂, 本来 Rust 的学习曲线就够陡峭的 阅读全文
posted @ 2023-10-08 21:40 CrossPython 阅读(211) 评论(0) 推荐(0)
摘要:<record id="utm.menu_link_tracker_root" model="ir.ui.menu"> <field name="active" eval="False"/> </record> <record id="base.menu_management" model="ir. 阅读全文
posted @ 2023-10-08 11:49 CrossPython 阅读(36) 评论(0) 推荐(0)
摘要:请使用<input>标签以及<datalist>标签,轻松实现。<datalist>标签规定了<input>元素可能的选项列表。 <div class="col-sm-6"> <input id="type" type="text" list="list" placeholder="请选择"> <d 阅读全文
posted @ 2023-10-07 13:14 CrossPython 阅读(754) 评论(0) 推荐(0)
摘要:原文地址: https://www.odooai.cn/blog/odoo-install-deploy-6/odoo-gevent-web-socket-boost-setup-286odoo16有一个最大的性能提升,就是从longpolling改成了web socket的方式来推送消息。这个改进 阅读全文
posted @ 2023-10-06 21:47 CrossPython 阅读(225) 评论(0) 推荐(0)
摘要:一、最终效果图 二、关键代码 html 代码: <div class="table_info"> <table border="0" cellspacing="0" cellpadding="0" style="width: 100%;"> <thead> <tr> <th>项目账号</th> <t 阅读全文
posted @ 2023-10-05 20:39 CrossPython 阅读(2263) 评论(0) 推荐(0)
摘要:Bootstrap中使用以下样式的类名,指定元素的padding和margin样式: {property}{sides}-{size} 其中 property的值为: - m:用于设置margin样式; - p :用于设置padding样式; 其中sides值指定样式适用的边,可选值为: - t : 阅读全文
posted @ 2023-10-05 14:58 CrossPython 阅读(390) 评论(0) 推荐(0)
摘要:2021年8月10日 1.响应式所具有的特点 (1)网页的宽度自动调整 (2)尽量少用绝对宽度 (3)字体要使用rem、em做为单位 (4)布局要使用浮动、弹性布局 2.规则 @chartset 定义编码 @import 引入css文件(css模块化) @font-face 自定义字体 @keyfr 阅读全文
posted @ 2023-10-05 14:29 CrossPython 阅读(22) 评论(0) 推荐(0)
摘要:setup (){ this.action = useService("action"); } this.action.doAction({ type: 'ir.actions.client', tag: 'display_notification', params:{ 'title': "提醒", 阅读全文
posted @ 2023-10-03 15:06 CrossPython 阅读(77) 评论(0) 推荐(0)
摘要:odoo中如果前端界面要调用后台model中写好的方法,很简单。使用 do_action 即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu', function (require) { "use 阅读全文
posted @ 2023-10-03 14:42 CrossPython 阅读(211) 评论(0) 推荐(0)
摘要:https://www.cybrosys.com/blog/how-to-create-a-dynamic-report-in-odoo-16 https://www.cybrosys.com/blog/how-to-customize-existing-dynamic-reports-in-odo 阅读全文
posted @ 2023-10-02 21:09 CrossPython 阅读(48) 评论(0) 推荐(0)
摘要:模型层面 一:_table_exist 检查该模型对于的数据库表是否存在,是则返回1,否则返回0. @api.model_cr def _table_exist(self): pass 模型记录层面 二:create(self,vals) 记录的创建函数,一般情况下,是根据视图传过来的dict对象, 阅读全文
posted @ 2023-10-02 20:58 CrossPython 阅读(494) 评论(0) 推荐(0)
摘要:1、图示总概览-动作分类窗口动作(Window Actions) (ir.actions.act_window)网址URL动作(URL Actions) (ir.actions.act_url)服务器动作(Server Actions) (ir.actions.server)报告动作(Report 阅读全文
posted @ 2023-10-02 13:15 CrossPython 阅读(347) 评论(0) 推荐(0)
摘要:report = self.env['ir.actions.report']._get_report_from_name("lims_report.print_entrust_{}".format(type)) rendered_docx = report.render_doc_doc(self, 阅读全文
posted @ 2023-10-02 13:12 CrossPython 阅读(64) 评论(0) 推荐(0)
摘要:How RPC Works in Odoo Framework: *Odoo is an open-source ERP (Enterprise Resource Planning) framework that provides a vast range of business applicati 阅读全文
posted @ 2023-10-01 13:29 CrossPython 阅读(92) 评论(0) 推荐(0)