跳至内容
菜单
此问题已终结
1 回复
3176 查看

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
6016
2
12月 22
23944
0
10月 21
2326
1
1月 20
4959
0
12月 19
2582