跳至內容
選單
此問題已被標幟
1 回覆
5549 瀏覽次數

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
7542
3
12月 22
5844
2
6月 20
3937
5
1月 20
8244
1
11月 17
3841