You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating the PAIN file, the second node AdrLine is generated as the join of zip and city. Both fields are limited to 70 char in the process, but then are joined, which can result in a >70 char AdrLine, and therefore in an error:
odoo.addons.account_banking_pain_base.models.account_payment_order: Element '{urn:iso:std:iso:20022:tech:xsd:pain.008.001.02}AdrLine': [facet 'maxLength'] The value has a length of '76'; this exceeds the allowed maximum length of '70'
To Reproduce:
Create a partner with zip and city, and length of the city field with a length of 70.
Create an invoice to that partner
Add the invoce to a payment order
Generate the file, which will turn into an error
Possible solution:
Modify line 550, slicing the result of the join to 70
Modify line 546, substracting to 70 the length of the first element in val (if it exists) + 1 (for the space of the join)
The text was updated successfully, but these errors were encountered:
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
I confirm this very stupid bug. It was introduced by @luc-demeyer in this commit 198fc3c
I fixed yesterday it in my v16 PR #1174 (I re-wrote the code for address block generation ; it implements both structured and unstructured and I found and fixed the bug in the unstructered code).
When generating the PAIN file, the second node AdrLine is generated as the join of zip and city. Both fields are limited to 70 char in the process, but then are joined, which can result in a >70 char AdrLine, and therefore in an error:
odoo.addons.account_banking_pain_base.models.account_payment_order: Element '{urn:iso:std:iso:20022:tech:xsd:pain.008.001.02}AdrLine': [facet 'maxLength'] The value has a length of '76'; this exceeds the allowed maximum length of '70'
To Reproduce:
Possible solution:
The text was updated successfully, but these errors were encountered: