Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5962 Представления

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.

Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
авг. 19
3591
1
июл. 24
11637
8
нояб. 20
17603
1
мар. 15
4698
0
апр. 15
4045