Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6292 Представления

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

Аватар
Отменить
Лучший ответ

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."),
    }
Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
июн. 22
2928
11
янв. 24
17716
0
мар. 15
3980
1
дек. 23
25512
1
мар. 15
5302