Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6304 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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."),
    }
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 22
2930
11
thg 1 24
17717
0
thg 3 15
3982
1
thg 12 23
25515
1
thg 3 15
5306