Skip to Content
Menu
This question has been flagged
1 Reply
2261 Views

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 .

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

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 Replies Views Activity
2
Dec 19
5163
2
Dec 22
22461
0
Oct 21
1274
1
Jan 20
3708
0
Dec 19
1700