[IMP] account_advanced_protection_features : apply changes proposed by pre-commit

This commit is contained in:
2025-10-07 17:19:57 +02:00
parent 95dc32803f
commit e45ad867c0
9 changed files with 72 additions and 52 deletions

View File

@@ -1,12 +1,18 @@
from odoo import models, fields
from odoo import fields, models
class AccountJournal(models.Model):
_inherit = "account.journal"
prevent_reset_to_draft_sent_invoice = fields.Boolean("Prevent to reset to draft a sent invoice")
prevent_deletion_of_posted_account_move = fields.Boolean("Prevent to delete an already posted account move")
prevent_reset_to_draft_sent_invoice = fields.Boolean(
"Prevent to reset to draft a sent invoice"
)
prevent_deletion_of_posted_account_move = fields.Boolean(
"Prevent to delete an already posted account move"
)
allow_bank_statement_deletion = fields.Boolean(
"Allow bank statements deletion",
help="Users with group Show Full Accounting Features (id: group_account_user) will be allowed to delete account bank statements "
"and bank statement lines."
help="Users with group Show Full Accounting Features (id: group_account_user) "
"will be allowed to delete account bank statements "
"and bank statement lines.",
)