Skip to Content
Menú
This question has been flagged
1 Respondre
6327 Vistes

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

Avatar
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 22
2945
11
de gen. 24
17732
0
de març 15
3987
1
de des. 23
25523
1
de març 15
5336