Odoo18-Base/addons/l10n_vn_edi_viettel/models/res_company.py

27 lines
719 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
l10n_vn_edi_username = fields.Char(
string='SInvoice Username',
groups='base.group_system',
)
l10n_vn_edi_password = fields.Char(
string='Sinvoice Password',
groups='base.group_system',
)
l10n_vn_edi_token = fields.Char(
string='Sinvoice Access Token',
groups='base.group_system',
readonly=True,
)
l10n_vn_edi_token_expiry = fields.Datetime(
string='Sinvoice Access Token Expiration Date',
groups='base.group_system',
readonly=True,
)