Skip to Content
Menú
This question has been flagged
2 Respostes
5939 Vistes

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
Descartar
Autor 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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 19
3578
1
de jul. 24
11605
8
de nov. 20
17560
1
de març 15
4685
0
d’abr. 15
3997