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
5560 Widoki

Hi,

how can I modify the 'duplicate' function for invoices in a custom module ? in some case, I don't want to duplicate the field 'origin', I want to make it empty.

eg :  when I duplicate an invoice generated from a sale order, I don't want to duplicate the field 'Origin' which contains the sale order number.

thank for help,


Laurent33

Awatar
Odrzuć
Najlepsza odpowiedź

Hello, 
First you need to inherit the field and after add copy=False in the field.
In that case you're field will be empty in case of duplicate.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 16
7544
3
gru 22
5852
2
cze 20
3940
5
sty 20
8246
1
lis 17
3843