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

Hello,

I have one many2many field in my custom model. I want to add on button in many2many field. I don't want to use the create and edit option of many2many field, I want to add a button in many2many field available in one2many field. But the button is not displayed in many2many fields. For that I have written the following code:

<group> <field name="page_ids" mode="tree" context="{'default_survey_id': active_id}"> <tree editable="bottom"> <field name="title"/> <field name="questions_id" widget="many2many_kanban" options="'no_create_edit':True}"> <button type="object" name="create_question" string="test"/> </field> </tree> </field> </group>


อวตาร
ละทิ้ง

Hi!

I wonder if you already solved this problem?

If yes, can you share it to me?

Thanks and best regards,

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 23
1795
2
ก.พ. 23
2608
0
ม.ค. 20
3495
How to track One2many field in Odoo12? แก้ไขแล้ว
3
พ.ย. 23
17303
1
ก.พ. 24
2081