21 lines
801 B
Python
21 lines
801 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2021 Joan Marín <Github@JoanMarin>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models, api
|
|
|
|
|
|
class IrSequenceDateRange(models.Model):
|
|
_inherit = 'ir.sequence.date_range'
|
|
|
|
use_dian_control = fields.Boolean(
|
|
related='sequence_id.use_dian_control',
|
|
string='Use DIAN Resolutions Control?',
|
|
store=False)
|
|
prefix = fields.Char(string='Prefix')
|
|
resolution_number = fields.Char(string='Resolution Number')
|
|
date_to_resolution = fields.Date(string='Final Date - Resolution')
|
|
number_from = fields.Integer(string='Initial Number', default=False)
|
|
number_to = fields.Integer(string='Final Number', default=False)
|
|
active_resolution = fields.Boolean(string='Active Resolution?')
|