跳至內容
選單
此問題已被標幟
1 回覆
6663 瀏覽次數

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
3406
11
1月 24
18198
0
3月 15
4368
1
12月 23
25861
1
3月 15
5653