Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
4191 มุมมอง

Hello,

In any x2many field there is create and edit option. After click on create and edit it will redirect to form view of that model. But my question is that after click on any x2many create and edit option it will redirect to the field of same form view where x2many field is available.

Is it possible? If yes how’s it possible or if not then any other alternative way is available?

If more explanation is required then please let me know.

อวตาร
ละทิ้ง

So here you want that user can not able to open form view of that x2many relational model but just list view showed up under that x2many field in which user give input. Right ?

ผู้เขียน

Yes. I dont want to open form view of x2many relation of model.but able to create record for that model. e.g. In my custom model there is one2many(for survey.page) field. In that one2many field there is many2many(for survey.question) field. From many2many field I don’t want to open form view of survey.question. But from that many2many field I am able to create record for survey.question.

ผู้เขียน

For many2many field I am trying to use of option={'no_open':True} but issue not solve.

คำตอบที่ดีที่สุด

use this on your many2many field

 option={'no_create_edit':True}

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 19
13709
2
พ.ย. 19
3312
How to track One2many field in Odoo12? แก้ไขแล้ว
3
พ.ย. 23
17330
Error: Couldn't load module web แก้ไขแล้ว
3
พ.ย. 24
24951
How I get the current ID of a record ? แก้ไขแล้ว
1
เม.ย. 23
6075