Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5479 Представления

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
7489
3
дек. 22
5790
2
июн. 20
3849
5
янв. 20
8181
1
нояб. 17
3743