Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3389 Widoki

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...

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 23
2090
2
wrz 23
15008
1
mar 15
8499
2
mar 15
31047
1
mar 15
12114