Can someone tell me how to change the default field size of the Journal codes?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
6299
Visualizações
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."),
}
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
2
jun. 22
|
2930 | ||
|
11
jan. 24
|
17717 | ||
|
0
mar. 15
|
3982 | ||
|
1
dez. 23
|
25514 | ||
|
1
mar. 15
|
5306 |