当前位置:网站首页>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 actionopen 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>边栏推荐
- Unity2d-- add keys to animation and bind events
- 9 - regular check set
- 013_ slider
- 26.算法常用面试题
- [MRCTF2020]Ezpop-1|php序列化
- 8 — router
- 如何制作CSR(Certificate Signing Request)文件?
- 【MySQL 04】使用MySQL Workbench 8.0 CE 備份及恢複Linux中的MySQL數據庫
- Circular right shift of array elements in C language
- 209. minimum length subarray - sliding window
猜你喜欢

C language output integer in another format

什么是幂等性?四种接口幂等性方案详解!

018_ rate

Widget uses setimageviewbitmap method to set bug analysis

After the blueprint node of ue5 is copied to UE4, all connections and attribute values are lost

Jenkins continuous integration environment construction VII (Jenkins parametric construction)

003_ color

Using face_ Recognition library reports an error reason: cudnn_ STATUS_ NOT_ SUPPORTED

一次 Keepalived 高可用的事故,让我重学了一遍它!

想转行,但不知道自己要做什么工作比较好?
随机推荐
(1) Basic learning - figure out the difference between pin, pad, port, IO and net
UE5的蓝图节点拷贝到UE4后连线和属性值全部丢失了
[pytorch actual combat] generate confrontation network Gan: generate cartoon character avatars
Geotools: common tools for mutual conversion of wkt, geojason, feature and featurecollection
Some practical knowledge about PR
Varnish foundation overview 8
Varnish foundation overview 4
Cookie encryption 13
Conversion between opencv and image (valid for pro test)
C语言 数素数
Configure cross domain requests
What are the payment and distribution systems?
A keepalived high availability accident made me learn it again!
DMX的配置
Summary of DOM
widget使用setImageViewBitmap方法设置bug分析
Illustration Google V8 19: asynchronous programming (II): how does V8 implement async/await?
Let‘sPlayCurling
封装一个完整版的uniapp图片和视频上传组件,拿来即用,可进行图片视频切换,可自定义上传按钮样式,删除按钮样式,可单独上传图片或者视频,可限制上传数量
Scala basics [introduction and installation]