[IMP] account: restrict deletion of payment methods

This commit is contained in:
Victor Feyens
2020-11-27 16:10:01 +00:00
parent 550a47c1f8
commit 048927f845
+2
View File
@@ -133,6 +133,7 @@ class AccountJournal(models.Model):
domain=[('payment_type', '=', 'inbound')],
string='Inbound Payment Methods',
compute='_compute_inbound_payment_method_ids',
ondelete="restrict",
store=True,
readonly=False,
help="Manual: Get paid by cash, check or any other method outside of Odoo.\n"
@@ -150,6 +151,7 @@ class AccountJournal(models.Model):
domain=[('payment_type', '=', 'outbound')],
string='Outbound Payment Methods',
compute='_compute_outbound_payment_method_ids',
ondelete="restrict",
store=True,
readonly=False,
help="Manual:Pay bill by cash or any other method outside of Odoo.\n"