Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6652 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
giu 22
3400
11
gen 24
18193
0
mar 15
4364
1
dic 23
25854
1
mar 15
5652