Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6040 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 19
3660
How to change invoice default journal? แก้ไขแล้ว
1
ก.ค. 24
11760
8
พ.ย. 20
17752
1
มี.ค. 15
4796
0
เม.ย. 15
4115