Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] Generate ACH File Alphanumeric Error #86

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

murtuzasaleh
Copy link
Member

Generate ACH File Alphanumeric Error

Steps to Reproduce:-

  1. Create a Vendor Bill, Choose Vendor with proper Bank Account for ACH set
  2. In the Payment Reference field enter +12345
  3. Confirm Vendor Bill for Payment
  4. Use Add to Pay Order function to add to Pay Order
  5. Open the Payment Order, Confirm Payment Order, Generate File

See blocking error.

File "/home/workspace/odoo/src/l10n-usa/account_banking_ach_base/models/account_payment_order.py", line 176, in generate_ach_file
ach_file.add_batch(
File "/usr/local/lib/python3.8/site-packages/ach/builder.py", line 99, in add_batch
self.batches.append(FileBatch(batch_header, entries))
File "/usr/local/lib/python3.8/site-packages/ach/builder.py", line 240, in init
self.entries.append(FileEntry(entry, addenda))
File "/usr/local/lib/python3.8/site-packages/ach/builder.py", line 327, in init
AddendaRecord(
File "/usr/local/lib/python3.8/site-packages/ach/data_types.py", line 763, in init
self.setattr(key, fields[key])
File "/usr/local/lib/python3.8/site-packages/ach/data_types.py", line 774, in setattr
value = self.validate_alpha_numeric_field(
File "/usr/local/lib/python3.8/site-packages/ach/data_types.py", line 74, in validate_alpha_numeric_field
raise AchError("field does not match alpha numeric criteria")
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/workspace/14.0/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/workspace/14.0/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ach.data_types.AchError: field does not match alpha numeric criteria

@murtuzasaleh murtuzasaleh force-pushed the 14.0-FIX-account_banking_ach_base branch from ccc31ac to 941ad74 Compare August 16, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant