Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3385 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 23
2087
2
sep. 23
15007
1
mrt. 15
8494
2
mrt. 15
31044
1
mrt. 15
12113