[FIX] payment: crash when using payment page
- The PR https://github.com/odoo/odoo/pull/55122 introduced a typo, that breaks the payment page. opw-2322033 closes odoo/odoo#56204 X-original-commit: 125683bbbb7b1f43bec29bdd07e81886c4e6e139 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
This commit is contained in:
@@ -246,7 +246,7 @@ class WebsitePayment(http.Controller):
|
||||
if partner_id:
|
||||
values['pms'] = request.env['payment.token'].search([
|
||||
('acquirer_id', 'in', acquirers.ids),
|
||||
('partner_id', '=', partner_id)
|
||||
('partner_id', 'child_of', partner.commercial_partner_id.id)
|
||||
])
|
||||
else:
|
||||
values['pms'] = []
|
||||
|
||||
Reference in New Issue
Block a user