跳至内容
菜单
此问题已终结
1 回复
6351 查看

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."),
    }
形象
丢弃
相关帖文 回复 查看 活动
2
6月 22
2976
11
1月 24
17768
0
3月 15
3998
1
12月 23
25539
1
3月 15
5360