Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6318 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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."),
    }
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
iun. 22
2934
11
ian. 24
17727
0
mar. 15
3986
1
dec. 23
25520
1
mar. 15
5314