-
-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
Description
Module
account_banking_ach_base
Describe the bug
Incorrect syntax when calling UserError
: TypeError: UserError.__init__() got an unexpected keyword argument 'name'
To Reproduce
Affected versions:
Steps to reproduce the behavior:
- Create a new customer: Customer 1.
- Create a new banking mandate for Customer 1.
- Create new customer invoice for Customer 1. Choose the invoice date which does not satisfy the mandate's delay days.
- Click on "Add to Debit Order": error
File "/home/chien/code/odoo/odoo/master/odoo/addons/base/models/ir_http.py", line 333, in _dispatch
result = endpoint(**request.params)
File "/home/chien/code/odoo/odoo/master/odoo/http.py", line 740, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/chien/code/odoo/odoo/master/addons/web/controllers/dataset.py", line 42, in call_button
action = call_kw(request.env[model], method, args, kwargs)
File "/home/chien/code/odoo/odoo/master/odoo/api.py", line 533, in call_kw
result = getattr(recs, name)(*args, **kwargs)
File "/home/chien/code/oca/l10n-usa/18.0/account_banking_ach_base/models/account_move.py", line 19, in create_account_payment_line
raise UserError(
TypeError: UserError.__init__() got an unexpected keyword argument 'name`
Expected behavior
There should be an error message, for example: To satisfy payment mandate, cannot add invoice INV/2025/00006 to Debit Order until 2025-06-06!