Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5544 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лист. 16
7539
3
груд. 22
5841
2
черв. 20
3932
5
січ. 20
8240
1
лист. 17
3838