Hilfe

0

Odoo12 Import button in survey user imput

Avatar
Sadok Abouda

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
Verwerfen
1 Antwort
0
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.

2 Kommentare
Avatar
Verwerfen
Avatar
Sadok Abouda
-

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