mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 21:52:04 +00:00
20 lines
664 B
Python
20 lines
664 B
Python
|
# Copyright 2016-2022 Akretion France
|
||
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||
|
|
||
|
from flectra import fields, models
|
||
|
|
||
|
|
||
|
class AccountCutoffLine(models.Model):
|
||
|
_inherit = "account.cutoff.line"
|
||
|
|
||
|
start_date = fields.Date(readonly=True)
|
||
|
end_date = fields.Date(readonly=True)
|
||
|
total_days = fields.Integer(readonly=True)
|
||
|
cutoff_days = fields.Integer(
|
||
|
readonly=True,
|
||
|
help="In regular mode, this is the number of days after the "
|
||
|
"cut-off date. In forecast mode, this is the number of days "
|
||
|
"between the start date and the end date.",
|
||
|
)
|