Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5973 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 19
3603
1
lug 24
11661
8
nov 20
17648
1
mar 15
4716
0
apr 15
4054