Skip to Content
Menu
This question has been flagged
2 Replies
6226 Rodiniai

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.

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 19
3803
1
liep. 24
12024
8
lapkr. 20
17960
1
kov. 15
4929
0
bal. 15
4277