Skip to content
Snippets Groups Projects
Commit 94a17f27 authored by niyasraphy's avatar niyasraphy
Browse files

[FIX] account: traceback on creating payment method


before this commit, on creating a new payment method
will show traceback.

* using studio add a menu for payment method
* create a payment method and hit on create
* traceback is shown

after this commit, no traceback wont be shown.

closes odoo/odoo#122129

X-original-commit: f8918c9e
Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
parent 3573fe07
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ class AccountPaymentMethod(models.Model):
payment_methods = super().create(vals_list)
methods_info = self._get_payment_method_information()
for method in payment_methods:
information = methods_info.get(method.code)
information = methods_info.get(method.code, {})
if information.get('mode') == 'multi':
method_domain = method._get_payment_method_domain(method.code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment