Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5954 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 19
3588
1
iul. 24
11634
8
nov. 20
17595
1
mar. 15
4696
0
apr. 15
4026