summaryrefslogtreecommitdiff
path: root/addons/website_payment/models/payment_acquirer.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_payment/models/payment_acquirer.py')
-rw-r--r--addons/website_payment/models/payment_acquirer.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/website_payment/models/payment_acquirer.py b/addons/website_payment/models/payment_acquirer.py
index 6702aad9115..5f7c31542a4 100644
--- a/addons/website_payment/models/payment_acquirer.py
+++ b/addons/website_payment/models/payment_acquirer.py
@@ -4,6 +4,10 @@ from odoo import fields, models
class PaymentAcquirer(models.Model):
- _inherit = 'payment.acquirer'
+ _inherit = "payment.acquirer"
- website_id = fields.Many2one('website', domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]")
+ website_id = fields.Many2one(
+ "website",
+ domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
+ ondelete="restrict",
+ )