Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
5559 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
marrask. 16
7543
3
jouluk. 22
5852
2
kesäk. 20
3938
5
tammik. 20
8246
1
marrask. 17
3843