summaryrefslogtreecommitdiff
path: root/addons/website_payment/models/payment_acquirer.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-08-21 10:10:11 +0200
committerChristophe Simonis <chs@odoo.com>2019-08-21 10:10:11 +0200
commit3faea8fbf810224ad4e03cfa1dc36f186800c501 (patch)
tree5e05c40d62dacc5951c70b3686f30a7bbb86f399 /addons/website_payment/models/payment_acquirer.py
parentcc2d78beeaf61fa0b8c9543196d1b4fce5cd5da6 (diff)
parentf26de445e5579913e27ea6a630bcee6d40eefc7d (diff)
[MERGE] forward port branch saas-12.4 up to f26de445e55
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",
+ )