[ADD] module account_advanced_protection_features from version 16.0

This commit is contained in:
2025-10-07 16:47:34 +02:00
parent 9cd897fb0c
commit 5195e93038
12 changed files with 960 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from odoo import models, fields
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")
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."
)