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

Can someone tell me how to change the default field size of the Journal codes?

الصورة الرمزية
إهمال
أفضل إجابة

You need to create your own module which inherits, then changes the python class definition for the account.journal model.

This example changes the size from 5 (what is in in the core codebase) to 9.

class account_journal(osv.osv):
    _inherit = "account.journal"

    _columns = {
        'code': fields.char('Code', size=9, required=True, help="The code will be displayed on reports."),
    }
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يونيو 22
3397
11
يناير 24
18193
0
مارس 15
4363
1
ديسمبر 23
25854
1
مارس 15
5652