Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3422 Prikazi

Is it possible to enable duplication in a tree view? The documentation currently says 'duplicate="1"' only works on form views... Is this possible for tree views as well?

If yes, how?

If no, why isn't this possible? This is such a basic, and in my opinion common, operation...

Avatar
Opusti
Best Answer

Hi,

BY default this is not possible in tree view, but you can achieve it using the help of a server action, which calls the copy function.

Create a server action named Copy for your model and that executes python code, add the below code into it and create a contextual action using it.

for record in records:
     record.copy()

Thanks

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
okt. 23
2143
2
sep. 23
15043
1
mar. 15
8512
2
mar. 15
31153
1
mar. 15
12139