You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
891 B

# Copyright 2022 Therp BV <https://therp.nl>.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
"""Define model to hold transactions retrieved from Ponto."""
from odoo import fields, models
class PontoBuffer(models.Model):
"""Define model to hold transactions retrieved from Ponto."""
_name = "ponto.buffer.line"
_description = "Hold transactions retrieved from Ponto."
_order = "effective_date_time desc"
_rec_name = "effective_date_time"
buffer_id = fields.Many2one(
comodel_name="ponto.buffer",
required=True,
readonly=True,
ondelete="cascade",
)
ponto_id = fields.Char(
required=True,
readonly=True,
)
effective_date_time = fields.Datetime(
required=True,
readonly=True,
)
transaction_data = fields.Char(
required=True,
readonly=True,
)