跳至内容
菜单
此问题已终结
1 回复
5515 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
1
11月 16
7523
3
12月 22
5815
2
6月 20
3886
5
1月 20
8225
1
11月 17
3787