跳至內容
選單
此問題已被標幟
1 回覆
3192 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
2
12月 19
6029
2
12月 22
23958
0
10月 21
2339
1
1月 20
4968
0
12月 19
2597