Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
6021 Näkymät

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
Hylkää
Tekijä Paras vastaus

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 19
3640
1
heinäk. 24
11731
8
marrask. 20
17717
1
maalisk. 15
4782
0
huhtik. 15
4075