Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6307 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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."),
    }
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
cze 22
2931
11
sty 24
17718
0
mar 15
3982
1
gru 23
25516
1
mar 15
5307