2017-03-31 19:00:59 +02:00
|
|
|
# Copyright 2017 ACSONE SA/NV
|
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
|
2020-08-20 15:22:40 +02:00
|
|
|
from odoo import fields, models
|
2017-03-31 19:00:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
class AccountJournal(models.Model):
|
|
|
|
|
2020-10-08 00:28:42 +02:00
|
|
|
_inherit = "account.journal"
|
2017-03-31 19:00:59 +02:00
|
|
|
|
2020-08-20 15:22:40 +02:00
|
|
|
fiscalyear_lock_date = fields.Date(
|
|
|
|
string="Lock Date",
|
|
|
|
help="No users, including Advisers, can edit accounts prior "
|
2020-10-08 00:28:42 +02:00
|
|
|
"to and inclusive of this date for this journal. Use it "
|
|
|
|
"for fiscal year locking for this journal, for example.",
|
2020-08-20 15:22:40 +02:00
|
|
|
)
|
|
|
|
period_lock_date = fields.Date(
|
|
|
|
string="Lock Date for Non-Advisers",
|
|
|
|
help="Only users with the 'Adviser' role can edit accounts "
|
2020-10-08 00:28:42 +02:00
|
|
|
"prior to and inclusive of this date for this journal. "
|
|
|
|
"Use it for period locking inside an open fiscal year "
|
|
|
|
"for this journal, for example.",
|
2017-03-31 19:00:59 +02:00
|
|
|
)
|