Odoo Help

0

How to remove default journal in invoice ?

By
Laetitia Gangloff (Acsone)
on 4/10/15, 10:14 AM 630 views

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.

0

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

0

Zbik

--Zbik--
6253
| 6 4 7
Lodz, Poland
--Zbik--


Zbik
On 4/10/15, 11:55 AM

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/10/15, 10:14 AM
Seen: 630 times
Last updated: 4/13/15, 6:18 AM