İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3438 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eki 23
2169
2
Eyl 23
15058
1
Mar 15
8531
2
Mar 15
31221
1
Mar 15
12157