Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5933 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 19
3576
1
lip 24
11604
8
lis 20
17556
1
mar 15
4683
0
kwi 15
3992