上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页
摘要: https://blog.csdn.net/web22050702/article/details/129667358 https://www.bilibili.com/read/cv22572083/ 阅读全文
posted @ 2023-09-09 11:32 CrossPython 阅读(15) 评论(0) 推荐(0) 编辑
摘要: ENV PATH里设置好, SDK MANAGER路径要保持一致。 这个是常规操作。 还有个隐藏操作: SDK MANGER TOOLS里, 点取消 hide obse.... 然后安装 Android SDK tools 添加path: sdk 里的 D:\android_sdk\tools D: 阅读全文
posted @ 2023-09-09 10:02 CrossPython 阅读(78) 评论(0) 推荐(0) 编辑
摘要: self.env.user.notify_success(message='查询成功!') 阅读全文
posted @ 2023-09-08 18:47 CrossPython 阅读(12) 评论(0) 推荐(0) 编辑
摘要: odoo原生有一个扫码枪的模块叫做“barcodes”,这个模块中定义了一个类“'barcodes.barcode_events_mixin”,简单的处理扫码事件使用起来还是很方便的。 简单说一下使用过程:首先安装“barcodes”这个模块,在自己的模型中继承“'barcodes.barcode_ 阅读全文
posted @ 2023-09-08 18:38 CrossPython 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 其实要实现这个功能很简单,只要在前端js里监控扫码字段的change事件。 当满足要求,调用保存按钮的click方法,自动保存。这样扫码工人就不需要操作电脑了,可是由于对odoo前段代码不熟悉,这么个小功能花了我一周左右的时间,虽然问题解决了,但是实现的方式很暴力。不管怎么样,先解决问题再说吧。 a 阅读全文
posted @ 2023-09-08 18:37 CrossPython 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 可以再次下载 :Odoo 销售扫码 https://apps.odoo.com/apps/modules/11.0/sale_barcodes/ 很多人都说从9.0 之后,很多社区版功能被阉割了,比如大家常说的仓库条码扫码模块就没有了。 但是却为我们留下了bcarcode模块,方便我们进行扩展。由于 阅读全文
posted @ 2023-09-08 18:36 CrossPython 阅读(283) 评论(0) 推荐(0) 编辑
摘要: odoo扫码功能 https://www.zodioo.com/zh_TW/slides/slide/odoo-barcode-odoo14-228 https://odoo.net.cn/topic/4853/odoo-%E5%AE%9E%E6%96%BD-%E5%BC%80%E7%AE%B1%E 阅读全文
posted @ 2023-09-08 18:25 CrossPython 阅读(145) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/nhdlb/p/14960000.html 阅读全文
posted @ 2023-09-08 17:39 CrossPython 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 按结构复制 CREATE TABLE testdb (like testdb_old) partition by range(vdate) 增加附属表 CREATE TABLE cbd_cbdmodeldetails_1_2 PARTITION OF cbd_cbdmodeldetails FOR 阅读全文
posted @ 2023-09-06 17:10 CrossPython 阅读(880) 评论(0) 推荐(0) 编辑
摘要: # coding=utf8 import warnings warnings.filterwarnings('ignore') 阅读全文
posted @ 2023-09-05 13:37 CrossPython 阅读(33) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/CBGCampus/article/details/125366246 https://blog.csdn.net/weixin_43674606/article/details/129193832 https://apps.odoo.com/apps/m 阅读全文
posted @ 2023-09-03 06:42 CrossPython 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 2. 销售出库的成本项冗余删除 == DONE 3.报废单需要输入日期. cancel 4. 增加一个成本调整单, 针对物料 == 不需要了 5.凭证编号要改成 记-XXX ==自定义一下即可.. 8.凭证的归属日期必须依据原始单据, 而不是按当前时间 -- 末..... 1. 盘点科目设置 6.价 阅读全文
posted @ 2023-09-02 22:07 CrossPython 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Rc::borrow()、 Rc::as_ref()、 Rc::deref(), Rc::borrow_mut()、 Rc::as_mut()、 Rc::deref_mut() Box::borrow()、 Box::as_ref()、 Box::deref() Box::borrow_mut()、 阅读全文
posted @ 2023-09-01 09:35 CrossPython 阅读(28) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/m0_67394360/article/details/123251807 阅读全文
posted @ 2023-08-31 10:09 CrossPython 阅读(878) 评论(0) 推荐(0) 编辑
摘要: **** https://blog.csdn.net/sr50611/article/details/103269668 **** https://blog.csdn.net/venfKong/article/details/121659611 https://odoo.net.cn/topic/4 阅读全文
posted @ 2023-08-30 23:26 CrossPython 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 对老表改名 ALTER TABLE ins_txn_attachment_live RENAME TO ins_txn_attachment_live_old ALTER INDEX PK_Ins_TXN_Attachment_ID_ArchiveDataRENAME TO PK_Ins_TXN_A 阅读全文
posted @ 2023-08-30 21:23 CrossPython 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 创建子表 CREATE TABLE testdb_2022 ( CHECK ( createtime >= DATE '2022-01-01' AND createtime < DATE '2023-01-01' ) ) INHERITS (testdb); CREATE TABLE testdb_ 阅读全文
posted @ 2023-08-30 21:07 CrossPython 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 在Odoo的report报表里: 只显示日期: <t t-esc="deposit.create_date" t-options='{"widget": "date"}'/> 显示日期和时间:<t t-esc="deposit.create_date" t-options='{"widget": " 阅读全文
posted @ 2023-08-30 19:32 CrossPython 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1. anyhow + trivival 2. 直接? 然后返回 box dyn error; ok_or_?(box dyn error) 3. unstable rust有 try block 阅读全文
posted @ 2023-08-29 23:17 CrossPython 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 查所有表 SELECT tablename FROM pg_tables WHERE tablename NOT LIKE'pg%' AND tablename NOT LIKE'sql_%' ORDER BY tablename; 查看当前表的所有字段 SELECT C.relname, A.at 阅读全文
posted @ 2023-08-28 14:39 CrossPython 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 问: 我有一个函数: fn foo<i32>(x: i32) -> Result<i32, i32> { ... } 我想把结果的值提取到一个变量中,不管它是Ok还是Err。我可以这样做: let val = match foo(10) { Ok(i) => i, Err(i) => i, } 想知 阅读全文
posted @ 2023-08-28 12:45 CrossPython 阅读(69) 评论(0) 推荐(0) 编辑
摘要: postgres = "0.19.2" use postgres::{Client, NoTls}; fn main() -> Result<(), postgres::Error> { let mut client = Client::connect("host=localhost dbname= 阅读全文
posted @ 2023-08-27 16:49 CrossPython 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 不正确: schtasks /create /tn "MySQL Automatic Backup" /tr "d:\path with spaces to my script\my script.bat" /sc daily ... 正确: schtasks /create /tn "MySQL 阅读全文
posted @ 2023-08-27 16:09 CrossPython 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 解决方案:1.创建bat文件,任务命令如下 schtasks /create /TN 名称 /TR 运行程序路径 /SC 指定计划频率 设为用户登入时运行 schtasks /create /TN update /TR D:\Dir\bz2.exe /SC ONLOGON12.立刻执行 schtas 阅读全文
posted @ 2023-08-27 15:53 CrossPython 阅读(133) 评论(0) 推荐(0) 编辑
摘要: https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/System/TaskScheduler/index.html https://github.com/ShaoDaTao/windows-taskscheduler-api-r 阅读全文
posted @ 2023-08-27 14:44 CrossPython 阅读(134) 评论(0) 推荐(0) 编辑
摘要: nginx的 代码: # set $flag 0; # if ($http_user_agent ~* "360Spider|Baiduspider|Baiduspider-render|Googlebot-Mobile|Googlebot-Image|Mediapartners-Google|Ad 阅读全文
posted @ 2023-08-26 23:29 CrossPython 阅读(78) 评论(0) 推荐(0) 编辑
摘要: use std::process::Command; fn is_program_running(program: &str) ->bool { let cmdstr = format!("IMAGENAME eq {}", program); let output = Command::new(" 阅读全文
posted @ 2023-08-26 19:12 CrossPython 阅读(210) 评论(0) 推荐(0) 编辑
摘要: '-Begin Option Explicit Dim gColl() As String Dim j As Integer Sub GetAll(Obj As Object) ' '- '- Recursively called sub routine to get the IDs of all 阅读全文
posted @ 2023-08-25 09:32 CrossPython 阅读(14) 评论(0) 推荐(0) 编辑
摘要: def test(session): door(session) tabs = session.findById("/app/con[0]/ses[0]/wnd[0]/usr/tabsTABSPR1") a = tabs.FindById(r'/app/con[0]/ses[0]/wnd[0]/us 阅读全文
posted @ 2023-08-25 09:25 CrossPython 阅读(7) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/column/c_1468529809685307392 阅读全文
posted @ 2023-08-24 22:11 CrossPython 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 业务场景 使用了外部工作流系统管理固定资产申请,转移(负责人变更), 盘点,报废等涉及固定资产的业务,而固定资产采购,折旧等仍在SAP中进行,所以需要定时从SAP中下载包括固定资产账面值的固定资产清单,以作为工作流审批节点流转的依据 主要功能说明 定时运行 自动登录SAP 下载SAP固定资产报表 S 阅读全文
posted @ 2023-08-24 22:09 CrossPython 阅读(110) 评论(0) 推荐(0) 编辑
摘要: import math import os,sys, win32com.client import clipboard from pprint import pprint import csv def get_mb52(session, args = {}, plant = '0001'): res 阅读全文
posted @ 2023-08-24 22:06 CrossPython 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. 获取session(窗口) Set SapGuiAuto = GetObject("SAPGUI") 'Get the SAP GUI Scripting object Set SAPApp = SapGuiAuto.GetScriptingEngine 'Get the currently 阅读全文
posted @ 2023-08-24 22:04 CrossPython 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 代码实现: class SapMessageType(enum.Enum): SUCCESS = "S" WARNING = "W" ERROR = "E" ABORT = "A" INFORMATION = "I" class SapStatusMessage: def __init__(self 阅读全文
posted @ 2023-08-24 21:51 CrossPython 阅读(14) 评论(0) 推荐(0) 编辑
摘要: class SapGuiGridView: """ SAP中GridView组件数据的表示对象类。 用于从SAP的GridView中读取指定的数据。 """ @staticmethod def get_data(session, _id, columns, handler=None): """ 读取 阅读全文
posted @ 2023-08-24 21:50 CrossPython 阅读(94) 评论(0) 推荐(0) 编辑
摘要: class SapGuiTableControl: """ 读取GuiTableControl对象的数据。 """ @staticmethod def get_data(session, _id, columns=None): """ 获取指定列的数据,索引从0开始。 :param session: 阅读全文
posted @ 2023-08-24 21:49 CrossPython 阅读(14) 评论(0) 推荐(0) 编辑
摘要: class SapGuiTree: class TreeType(enum.Enum): SIMPLE = 0 LIST = 1 COLUMN = 2 @classmethod def show(cls, tree, node, indention): print(indention, node, 阅读全文
posted @ 2023-08-24 21:44 CrossPython 阅读(27) 评论(0) 推荐(0) 编辑
摘要: import sys import win32com.client import win32api import win32gui import win32con # import win32ui import time import os import subprocess def Login() 阅读全文
posted @ 2023-08-24 11:46 CrossPython 阅读(23) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/new-june/p/11151458.html https://www.cnblogs.com/new-june/p/11356719.html https://www.cnblogs.com/new-june/tag/SAP%20script/ 阅读全文
posted @ 2023-08-24 11:25 CrossPython 阅读(12) 评论(0) 推荐(0) 编辑
摘要: import subprocess #'-system = PRD' 请把PRD换成指定SAP系统的SID # '-client=110' 请把Client修改为正确的Client, 输入用户名和密码的上方有的Client, 3位数字的 #'-l=ZH' ZH中文,EN英文, def login() 阅读全文
posted @ 2023-08-24 09:14 CrossPython 阅读(41) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页