Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5936 Vistas

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 Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 19
3577
1
jul 24
11604
8
nov 20
17557
1
mar 15
4683
0
abr 15
3993