Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5829 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 16
7839
3
dic 22
6056
2
giu 20
4148
5
gen 20
8524
1
dic 17
4060