[IMP] account_advanced_protection_features : apply changes proposed by pre-commit
This commit is contained in:
@@ -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.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user