Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
How to change the default field size of the Journal codes?
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."),
}
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 4/13/13, 2:09 PM |
Seen: 1744 times |
Last updated: 3/16/15, 8:10 AM |