تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5968 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 19
3596
1
يوليو 24
11645
8
نوفمبر 20
17615
1
مارس 15
4699
0
أبريل 15
4045