Skip to Content
Menu
This question has been flagged
1 Atsakyti
5581 Rodiniai

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

Portretas
Atmesti
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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
lapkr. 16
7559
3
gruod. 22
5868
2
birž. 20
3957
5
saus. 20
8278
1
lapkr. 17
3859