Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
6618 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jun. 22
3392
11
jan. 24
18182
0
mar. 15
4360
1
dec. 23
25848
1
mar. 15
5640