Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
6253 Weergaven

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
Annuleer
Auteur Beste antwoord

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 19
3806
1
jul. 24
12041
8
nov. 20
17989
1
mrt. 15
4947
0
apr. 15
4290