Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
6026 Ansichten

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
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 19
3646
1
Juli 24
11738
8
Nov. 20
17723
1
März 15
4786
0
Apr. 15
4079