Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5714 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 16
7713
3
pro 22
5963
2
čvn 20
4064
5
led 20
8433
1
lis 17
3996