Skip to Content
Menu
This question has been flagged
5 Replies
2758 Views

Hello,

When I click on my menuitem, I have a  treeview returned by a python function (https://www.hostingpics.net/viewer.php?id=651454Capturetreeview3.png).
I want to be able to modify some records directly in this treeview.

Is it possible ? And if yes, how can I do it ?

Thanks for answers

Avatar
Discard

Hi,

When clicking on the menu item you mentioned that you are getting a pop up . Is it a wizard or normal tree view ? Can you check and find the model name that is dispalying in the pop up.

Author

hi Niyas, as you can see on the picture that I give in the url, I think is a normal tree view.

The modele that is displaying the popup is my personal model (miadi.poidsconditionnement).

I want to be able to modify a record like this (https://www.hostingpics.net/viewer.php?id=575162Capturesaisie.png)

Author

PS : You have to copy/paste the link in the url search bar to work

Author

Hi Niyas,

I try to put in my XML : <tree editable="bottom">

It works on a tree view like this (https://www.hostingpics.net/viewer.php?id=947270Capturetreeview2.png) but not in the popup tree view as you can see in the link on the first post where I ask my problem.

So, can you tell me how can I do it because I see that is possible on another odoo module.

Author Best Answer

Solution not found :

I put in my XML, in the treeview : <tree editble="bottom"> and in my Python code in the return of the treeview I change "target: new" by "target: current" and I don't have popup but a normal treeview, but I can't edit some records...

So, someone can tell me how can I edit some records in a treeview returned by a python function ?


I edit my first post for a best understanding.

Avatar
Discard