Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5572 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
nov. 16
7552
3
dec. 22
5858
2
iun. 20
3942
5
ian. 20
8250
1
nov. 17
3849