上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: <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 阅读(15) 评论(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 阅读(523) 评论(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 阅读(99) 评论(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 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: Bootstrap中使用以下样式的类名,指定元素的padding和margin样式: {property}{sides}-{size} 其中 property的值为: - m:用于设置margin样式; - p :用于设置padding样式; 其中sides值指定样式适用的边,可选值为: - t : 阅读全文
posted @ 2023-10-05 14:58 CrossPython 阅读(258) 评论(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 阅读(9) 评论(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 阅读(45) 评论(0) 推荐(0) 编辑
摘要: odoo中如果前端界面要调用后台model中写好的方法,很简单。使用 do_action 即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu', function (require) { "use 阅读全文
posted @ 2023-10-03 14:42 CrossPython 阅读(112) 评论(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 阅读(26) 评论(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 阅读(334) 评论(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 阅读(153) 评论(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 阅读(21) 评论(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 阅读(46) 评论(0) 推荐(0) 编辑
摘要: # settings.py STATIC_URL = '/static/' # 添加静态文件夹路径 STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) 可以直接访问即可: http://localhost:1000/static/css/ 阅读全文
posted @ 2023-09-30 18:22 CrossPython 阅读(65) 评论(0) 推荐(0) 编辑
摘要: ba bo be x bi bu ca x co x ce x ci x cu x da do x de di du fa fo x fe x fi x fu ga x go x ge gi x gu ha ho x he hi x hu ja x jo x je x ji ju ka ko x k 阅读全文
posted @ 2023-09-28 08:56 CrossPython 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 共享数据集 akshare https://akshare.akfamily.xyz/ 阅读全文
posted @ 2023-09-27 19:44 CrossPython 阅读(64) 评论(0) 推荐(0) 编辑
摘要: https://blog.51cto.com/melon0809/5389643 阅读全文
posted @ 2023-09-27 09:01 CrossPython 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 解决方式1: 将“&”改写为“&amp;” 解决方案2:使用CDATA区: 当大量的转义字符出现在xml文档中时,会使xml文档的可读性大幅度降低,这时应该使用CDATA段。在CDATA段中出现的“ < ”、“ > ”、“ " ”、“ ’ ”、“ & ”都无需使用转义字符,但CDATA段中不能包含“ 阅读全文
posted @ 2023-09-26 20:35 CrossPython 阅读(155) 评论(0) 推荐(0) 编辑
摘要: odoo跳转页面总结 odoo视图跳转我总结为一下几点:1. 默认的封装了两个数据,不需要人工维护 模型名称(封装到即将跳转的视图的context的active_model属性中)单据id(封装到即将跳转的视图的context的active_id属性中) 2. 返回了一个字典(两大作用) 第一个作用 阅读全文
posted @ 2023-09-26 17:35 CrossPython 阅读(241) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/tsoTeo/article/details/103905169 阅读全文
posted @ 2023-09-26 17:08 CrossPython 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 在Odoo框架中,可以找到各种各样的通知类型。用于在用户进行系统操作时,即时反馈相关的异常信息。常用的通知选项有如下几种: 1. Sticky Notification2. Rainbow Man Effect3. Alert4. Raise Exception/Validation 第一种显示通知 阅读全文
posted @ 2023-09-25 14:09 CrossPython 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 大家好, 在Odoo(原OpenERP 开源ERP)架构中,有自定义报表开发【Custom Report Engine】这一功能,但无论在海外还是国内的网站上很难找到相关的解释与介绍。所以,我们整理了相关开发介绍至本博文中。 首先,需要讲解的是 Custom Report Engine 的机制。Od 阅读全文
posted @ 2023-09-25 13:21 CrossPython 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 定义odoo中的报表,是创建一张数据库视图。 数据库视图和表的联系和区别联系:数据库中的数据都是存储在表中,视图(view)是在基本表之上建立的表,它的结构(即所定义的列)和内容(即所有数据行)都来自基本表,它依据基本表存在而存在。一个视图可以对应一个基本表,也可以对应多个基本表。 区别:1、视图是 阅读全文
posted @ 2023-09-25 13:18 CrossPython 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 在模块中新建名为report的python文件 创建__main.xml 文件 <report id = “account_invoices” model = “account.invoice” string = “Invoices” report_type = “qweb-pdf” name = 阅读全文
posted @ 2023-09-25 13:17 CrossPython 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1.定义PDF报表解析类. 模型类解析类代码 from odoo import api, models class ParticularReport(models.AbstractModel): _name = 'report.hr_teacher.teacher_info_report_pdf' 阅读全文
posted @ 2023-09-25 11:23 CrossPython 阅读(143) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_37583798/article/details/81201553 https://blog.csdn.net/wei18791957243/article/details/124253528?spm=1001.2101.3001.6650. 阅读全文
posted @ 2023-09-23 22:22 CrossPython 阅读(25) 评论(0) 推荐(0) 编辑
摘要: odoo中如果前端界面要调用后台model中写好的方法,很简单。使用 do_action 即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu', function (require) { "use 阅读全文
posted @ 2023-09-22 09:12 CrossPython 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 实践环境 Odoo 14.0-20221212 (Community Edition) 代码实现 在js脚本函数中调用模型中自定义方法: this._rpc({ model: 'demo.wizard', // 模型名称,即模型类定义中 _name 的值 method: 'action_select 阅读全文
posted @ 2023-09-22 09:11 CrossPython 阅读(126) 评论(0) 推荐(0) 编辑
摘要: this._rpc({ model: this.model, method: 'quick_publish_products', args: [this.res_id], }).then(function (result) { self.do_action(result); }); 阅读全文
posted @ 2023-09-21 18:58 CrossPython 阅读(9) 评论(0) 推荐(0) 编辑
摘要: request.make_response() # 仅返回包含 HTML 的字符串 request.render() # 返回一个模板 # 对于 json请求 。 只需要返回客户端想要的数据结构即可。 # odoo 会处理序列化。让其动作,限制数据为json可序列化的类型 # request.env 阅读全文
posted @ 2023-09-21 13:21 CrossPython 阅读(167) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/xiaoduu/article/details/112724947 阅读全文
posted @ 2023-09-21 10:53 CrossPython 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 看板视图是一个很常见的可视化解决方案了,例如:联系人卡片,任务卡片,还有二次元朋友们经常逛的哔站。 我个人也是非常喜欢看板视图,比起那些呆板的tree视图,看板视图给人的感觉的就是简洁直观又好看。 本人也是初学Odoo一个月,其中深意只知其一,但也想跟各位大佬分享交流,于是斗胆以拙见一篇讨教一二,文 阅读全文
posted @ 2023-09-21 10:19 CrossPython 阅读(215) 评论(0) 推荐(0) 编辑
摘要: all model: stock_valuation_layers._check_company()self._check_company() stock.valuation.layer => account.move stock_valuation_layers._validate_account 阅读全文
posted @ 2023-09-16 13:19 CrossPython 阅读(14) 评论(0) 推荐(0) 编辑
摘要: def action_validate(self): self.ensure_one() if float_is_zero(self.scrap_qty, precision_rounding=self.product_uom_id.rounding): raise UserError(_('You 阅读全文
posted @ 2023-09-16 11:47 CrossPython 阅读(11) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_44863237/article/details/124688226 阅读全文
posted @ 2023-09-15 22:12 CrossPython 阅读(13) 评论(0) 推荐(0) 编辑
摘要: https://www.odoo.com/zh_CN/forum/bang-zhu-1/how-to-insert-value-to-a-one2many-field-in-table-with-create-method-28714?forum=forum.forum%281%2C%29&ques 阅读全文
posted @ 2023-09-15 22:08 CrossPython 阅读(9) 评论(0) 推荐(0) 编辑
摘要: KEY: \addons\stock_account\models\account_move.py def _post(self, soft=True): # OVERRIDE # Don't change anything on moves used to cancel another ones. 阅读全文
posted @ 2023-09-12 19:36 CrossPython 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 优先考虑用 Freessl 技术方案: 问题原因 项目部署服务器的Https为私有SSL证书,目前确认不会提供共有SSL证书,导致WebView访问网页空白问题 官方设计WebView插件时,为了考虑安全性在访问https链接时,必须要求SSL证书有效,不支持自定义SSL错误的处理 解决方式 有三种 阅读全文
posted @ 2023-09-09 16:09 CrossPython 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 具体操作就是在flutter项目下创建/android/app/src/main/res/xml/network_security_config.xml文件,填上配置内容: <?xml version="1.0" encoding="utf-8"?> <network-security-config 阅读全文
posted @ 2023-09-09 15:29 CrossPython 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 下载 nginx.orgcd到目录, start nginx : 启动nginx -s stopnginx -s quit //可以修改hosts文件, 做域名指向 SSL:下载opensslopenssl genrsa -des3 -out myodoo.key 1024openssl req - 阅读全文
posted @ 2023-09-09 12:35 CrossPython 阅读(6) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页