Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5545 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
nov. 16
7541
3
dec. 22
5844
2
jun. 20
3934
5
jan. 20
8242
1
nov. 17
3839