Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6310 Tampilan

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

Avatar
Buang
Jawaban Terbai

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."),
    }
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jun 22
2932
11
Jan 24
17719
0
Mar 15
3985
1
Des 23
25518
1
Mar 15
5309