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

Hello
I need help to enable create and import buttons in survey_user_input_view_tree 

when i try to inherit the tree view the external id is not recognized:

and here is the code i've used to inherit the view and enable the create:

\https://www.linkpicture.com/q/Screenshot-from-2021-07-28-18-27-40.png


also i've called the survey module in the manifest
any body plz can give me a solution .

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,
The external id 'survey.survey_user_input_view_tree' is not present in Odoo 12 , but it is in Odoo 14.
You have to replace the inherit id with correct external id. You can see the required external id by going to developer tools an Edit list view.

Regards.

อวตาร
ละทิ้ง
ผู้เขียน

Thank you, this was the problem

but I still can't update the tree view, I've tried to set attribute create=true using position="attributes" and even by replacing the whole tree with a copy having create=true and nothing changed

i still can't find the "Import" and "Create" buttons

can you plz help me with that

Hi,
The case sensitivity of the 'true' value may be the issue. ,Give the expression as:
< xpath expr="//tree" position="attributes">
< attribute name="create">true</attribute>
< /xpath>
And the import option you can find under favorites menu in odoo 14

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 19
6029
2
ธ.ค. 22
23957
0
ต.ค. 21
2335
Creating custom log file and .txt file? แก้ไขแล้ว
1
ม.ค. 20
4967
0
ธ.ค. 19
2592