customaddons-kedaikipas58/extend_journal_code/models/account_journal.py

14 lines
449 B
Python

from odoo import fields, models
class AccountJournal(models.Model):
_inherit = "account.journal"
code = fields.Char(
string="Short Code",
size=15, # ubah dari 5 → 15
compute="_compute_code", readonly=False, store=True,
required=True, precompute=True,
help="Shorter name used for display. "
"The journal entries of this journal will also be named using this prefix by default."
)