当前位置:网站首页>odoo action分析(action.client,action.act_window,action.server)
odoo action分析(action.client,action.act_window,action.server)
2022-07-13 19:18:00 【姜振建 15954039008】
有些内容引用自:https://zhuanlan.zhihu.com/p/149864247
Action 是动作,就是通过用户交互操作导致 Odoo 产生的反应。
Odoo 通过 Client Action创建定制化前端界面。比如用户点击了一个菜单,Odoo 要执行菜单对应的 Action,点击一个 Button,Odoo 要执行一个这个 Button 对应的 Action,点击一个上下文菜单(在显示表单信息时候,在控制栏中间显示的菜单),Odoo 要执行一个对应的 Action。所有 Action 必须提前在数据库中提前描述,就是 ir.actions.act_window,ir.actions.client 和 ir.actions.server,这三个 actions 的表的记录都是描述 Action 的,ir_act_window 表中的记录是指那些使用了 Odoo View 的 Action,ir.actions.client 表中的记录是指在客户端(Javascript)中创建的 Action,ir.actions.server 表中的记录是指在服务器端执行的 Action (Python),Server Action 可以返回一个 windows 或者 client Action。
1、 ir.actions.act_windowc对应的表截屏:
2、ir.actions.client 对应的表截屏
3、ir.actions.server 对应的表截屏
边栏推荐
- 不刷新页面内容,改变浏览器访问地址url
- Hcip day 5 notes
- A brief introduction to shell syntax
- dtcloud的消息机制(三)
- LeetCode 2155. 分组得分最高的所有下标
- How to manage win11 local users and groups? Win11 method of creating user administrator
- Hj3 explicit random number hj03
- 先序和中序遍历序列确定一颗二叉树(还原二叉树)
- [server data recovery] a data recovery case in which a brand of MSA SAN storage RAID5 is paralyzed and the upper Lun cannot be used
- Shell script learning record
猜你喜欢

dtcloud的消息机制(三)

QT+VS 工程在 Release/Debug 文件夹下导入相关 DLL (非常实用)

【canvas】canvas和svg基本使用

判断两棵二叉树是否同构,三种实现方式(递归、队列、堆栈)

05.01 字符串

用 AnimatedBuilder 分离组件和动画,实现动效复用

How to apply for PMP project management certification examination?

Memory mapping principle and detailed explanation (very practical)

Hcip first day notes
![[Go]二、RESTful API介紹和API流程和代碼結構](/img/fd/8ae3d6a4c0d0c973ce81672c1c529c.png)
[Go]二、RESTful API介紹和API流程和代碼結構
随机推荐
Flutter RenderFlex overflowed by pixels on the bottom键盘弹出警告异常
密码密钥硬编码检查
有没有完全自主的国产化数据库技术
Hj9 extract non duplicate integer hj09
js中树形结构的深度遍历与广度遍历
HCIP第二天笔记
shell语法简单介绍
红柳林,煤矿里挖出了数据金矿!
音视频学习(六)——PCM音频基础
vscode 输入 !不提示,没法自动补全的解决方法(最新)
LeetCode 2155. 分组得分最高的所有下标
Hj8 consolidated statement record hj08
Response.Write具体介绍
scala快速入门
第三讲:最短距离
Is there a completely independent localization database technology
Qstring regular expression of QT
HCIP第四天笔记
Is it safe to open an account for stock speculation through the online account manager?
Common mailbox access protocols