Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
5992 Prikazi

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.

Avatar
Opusti
Avtor Best Answer

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

Avatar
Opusti
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.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 19
3616
1
jul. 24
11678
8
nov. 20
17667
1
mar. 15
4731
0
apr. 15
4063