Skip to content

[14.0]account_banking_sepa_credit_transfer:SEPA account number verification is processed to late at the SEPA xml file validation not at the SEPA xml file generation #1398

@klodr

Description

@klodr

Module

account_banking_sepa_credit_transfer

Describe the bug

When you've archived a SEPA partner bank number the alert of archived number appears at the file validation
That not correct.
It must been tested at the file generation
Because the normal process is :

  • I create my SEPA order on Odoo
  • I generate the file on Odoo ( generate file)
  • I download the sepa sct____.xml File from Odoo
  • I upload the xml file to the bank and validate there
  • I validate on Odoo
  • ( I add the transfert report file on Odoo as attachement)

To Reproduce

Affected versions: probably all but 14.0

Steps to reproduce the behavior:

  1. Add an invoice to an account payment order with a valide SEPA account
  2. Add a new SEPA account to the partner
  3. Archive the old SEPA account in the partner ( for reference)
  4. Generate the SEPA Order file
  5. Download the SEPA Order file
  6. Try to validate the SEPA Order file ( got an error unable to validate archived account number)

Expected behavior
Validate SEPA number before file generation not at transfer completion validation

Additional context
Make an explicit message with the name of the blocking partner/s or invoice/s

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions