Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6303 มุมมอง

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."),
    }
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 22
2930
11
ม.ค. 24
17717
0
มี.ค. 15
3982
1
ธ.ค. 23
25514
1
มี.ค. 15
5306