当前位置:网站首页>The odoo15 page jumps directly to the editing status
The odoo15 page jumps directly to the editing status
2022-06-30 02:06:00 【Informatization future】
action = {
'name': _('Survey'),
'view_mode': 'form,tree',
'res_model': 'survey.survey',
'type': 'ir.actions.act_window',
'context': {'form_view_initial_mode': 'edit'},
'res_id': survey.id,
}
return action
open Direct editing
<record id="project_task_action_form_edit" model="ir.actions.act_window">
<field name="name">Task: redirect to form in edit mode</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">project.task</field>
<field name="view_mode">form</field>
<field name="view_id" ref="project.view_task_form2"/>
<field name="context">{'form_view_initial_mode': 'edit'}</field>
</record>
边栏推荐
- Leetcode 46 Full arrangement (February 15, 2022)
- Spark 离线开发框架设计与实现
- DTW learning (dynamic time warping) -- Thought and code implementation
- 002_ container
- JS reverse case -rus5 logic learning
- What problems can cloud storage architecture solve for Devops?
- 一种跳板机的实现思路
- Varnish foundation overview 4
- What are the payment and distribution systems?
- 一次 Keepalived 高可用的事故,让我重学了一遍它!
猜你喜欢
006_ radio
一种跳板机的实现思路
Jenkins continuous integration environment construction VII (Jenkins parametric construction)
搞透AQS原理(流程圖及同步隊列圖解)
What should I do when I feel confused after graduation from university?
The first technology podcast month will begin soon
AI落地制造业:智能机器人应具备这4种能力
Design and implementation of spark offline development framework
After the blueprint node of ue5 is copied to UE4, all connections and attribute values are lost
005_ button
随机推荐
[MRCTF2020]Ezpop-1|php序列化
Conjecture of prime pairs in C language
Conversion between opencv and image (valid for pro test)
8 — router
What are the payment and distribution systems?
Varnish foundation overview 3
7 — filter
[MySQL 06] backup and restore MySQL database in Linux + docker container environment
Matlab 2012a drawing line segment with arrow
【MySQL 05】SUSE 12 SP5 安装MySQL后第一次修改mysql密码
Jenkins continuous integration environment build 8 (configure mailbox server to send build results)
图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?
013_ slider
Leetcode 46 Full arrangement (February 15, 2022)
MySQL monitoring 5
Add a second network card (network interface NIC) for the virtual machine in azure portal in 2 minutes
Share the source code of the website of graduation student record
当大学毕业感到迷茫怎么办?
widget使用setImageViewBitmap方法设置bug分析
Embedded test template