Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5606 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
nov. 16
7568
3
dec. 22
5885
2
jun. 20
3979
5
jan. 20
8307
1
nov. 17
3868