Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
5980 Vues

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
Ignorer
Auteur Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
août 19
3606
1
juil. 24
11663
8
nov. 20
17654
1
mars 15
4719
0
avr. 15
4057