Skip to Content
Menu
This question has been flagged
1 Reply
5723 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
Nov 16
7728
3
Dec 22
5981
2
Jun 20
4068
5
Jan 20
8447
1
Nov 17
4007