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):
|
|
|
|
|
|
|
|
_inherit = 'account.journal'
|
|
|
|
|
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 "
|
|
|
|
"to and inclusive of this date for this journal. Use it "
|
|
|
|
"for fiscal year locking for this journal, for example."
|
|
|
|
)
|
|
|
|
period_lock_date = fields.Date(
|
|
|
|
string="Lock Date for Non-Advisers",
|
|
|
|
help="Only users with the 'Adviser' role can edit accounts "
|
|
|
|
"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
|
|
|
)
|