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

Hello,

when I create invoice a default journal is set.
How can I remove this value to force user to set the right value ?


I tried to add a default value, with no value (In Settings > Technical > Actions > User-defined Defaults), but with no success. I make a similar test on another filed (Communication type) and it works.

頭像
捨棄
作者 最佳答案

Thank you for your response, but I think my problem comes from the onchange on company or from the fields view get.

頭像
捨棄
最佳答案

You must inherit class account_invoice and replace method _default_journal(). Field journal_id set default=_default_journal. Or you redefine this field in your module without default value.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 19
3594
1
7月 24
11644
8
11月 20
17611
1
3月 15
4698
0
4月 15
4045