İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6693 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Haz 22
3440
11
Oca 24
18243
0
Mar 15
4385
1
Ara 23
25898
1
Mar 15
5683