Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6639 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvn 22
3395
11
led 24
18184
0
bře 15
4361
1
pro 23
25849
1
bře 15
5642