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

[13.0][FIX] account_banking_sepa_direct_debit: Bank Account should not be required #875

Merged
merged 2 commits into from
Dec 20, 2021

Conversation

etobella
Copy link
Member

The bank account is taken from the mandate. invoice_partner_bank_id is never used in this module, so it should not be taken as required.

@pedrobaeza pedrobaeza added this to the 13.0 milestone Dec 14, 2021
…uld not be required

The bank account is taken from the mandate. Mandate is autopopulated if not found.
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza
Copy link
Member

@alexis-via we want to continue with the merging.

Copy link

@HaraldPanten HaraldPanten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small changes. LGTM

@pedrobaeza
Copy link
Member

/ocabot merge minor

@pedrobaeza pedrobaeza changed the title [FIX] account_banking_sepa_direct_debit: Bank Account should not be required [13.0][FIX] account_banking_sepa_direct_debit: Bank Account should not be required Dec 20, 2021
@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 13.0-ocabot-merge-pr-875-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit db15a58 into OCA:13.0 Dec 20, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e96b589. Thanks a lot for contributing to OCA. ❤️

@olgamarcocb olgamarcocb deleted the 13.0-fix-data branch December 21, 2021 08:34
@pedrobaeza
Copy link
Member

Cherry-picked for v14 at 24d7a06 and f8b0245

@alexis-via
Copy link
Contributor

BRAVO BRAVO BRAVO
You just broke the OCA implementation of SEPA direct debit. According to my test in v14 and an audit of the code:

  1. you can't select a mandate on an invoice any more (field hidden, cf https://github.com/OCA/bank-payment/blob/14.0/account_banking_mandate/views/account_move_view.xml#L16)
  2. you can't select a mandate on a payment line any more (field hidden, cf https://github.com/OCA/bank-payment/blob/14.0/account_banking_mandate/views/account_payment_line.xml#L20)
  3. with this change, the code that checks that a mandate is present when you confirm the payment order is disabled (cf https://github.com/OCA/bank-payment/blob/14.0/account_banking_mandate/models/account_payment_line.py#L60)

The change introduced by this PR don't reflect the title of the PR nor the message of @etobella at the begining of the PR. I'm ok to set bank_account_required to False on sepa_direct_debit, but:

  • I'm not ok to set mandate required to False on sepa_direct_debit
  • I'm not ok to set bank account required to False on sepa_credit_transfer
    I am the author of this code and I had the feeling that we had a problem with this PR, but my messages were not taken seriously. I'll propose to partially revert it and then, it we want to make additional changes, take the time to discuss them and measure the impact of the changes.

alexis-via added a commit to akretion/banking that referenced this pull request Jan 8, 2022
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
manuelregidor pushed a commit to sygel-technology/bank-payment that referenced this pull request Apr 8, 2022
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
manuelregidor pushed a commit to sygel-technology/bank-payment that referenced this pull request Apr 8, 2022
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
wpichler pushed a commit to wpichler/bank-payment that referenced this pull request Oct 25, 2022
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
dzungtran89 pushed a commit to dzungtran89/bank-payment that referenced this pull request Nov 30, 2022
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
gfcapalbo pushed a commit to gfcapalbo/bank-payment that referenced this pull request Jan 17, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
gfcapalbo pushed a commit to gfcapalbo/bank-payment that referenced this pull request Jan 17, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
wpichler pushed a commit to wpichler/bank-payment that referenced this pull request Jan 27, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request Feb 8, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
AnizR pushed a commit to acsone/bank-payment that referenced this pull request Feb 15, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request Mar 13, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request Mar 13, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
dzungtran89 pushed a commit to dzungtran89/bank-payment that referenced this pull request Mar 14, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request Mar 21, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request Mar 21, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
dzungtran89 pushed a commit to dzungtran89/bank-payment that referenced this pull request Mar 31, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request Apr 5, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request May 4, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
dzungtran89 pushed a commit to dzungtran89/bank-payment that referenced this pull request May 5, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
dzungtran89 pushed a commit to dzungtran89/bank-payment that referenced this pull request May 29, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
Reyes4711-S73 pushed a commit to Studio73/bank-payment that referenced this pull request May 29, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
agyamuta pushed a commit to ursais/bank-payment that referenced this pull request Sep 11, 2023
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 5, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 5, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 6, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 6, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 6, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 7, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
nilshamerlinck pushed a commit to nilshamerlinck/bank-payment that referenced this pull request Mar 7, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 7, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
JasminSForgeFlow pushed a commit to ForgeFlow/bank-payment that referenced this pull request Mar 18, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
trisdoan pushed a commit to trisdoan/bank-payment that referenced this pull request Mar 25, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
JasminSForgeFlow pushed a commit to ForgeFlow/bank-payment that referenced this pull request Apr 3, 2024
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
alexis-via added a commit to akretion/banking that referenced this pull request Jan 28, 2025
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875
alexis-via added a commit to akretion/banking that referenced this pull request Jan 28, 2025
sepa_credit_transfer: bank_account_required back to True
Partial revert of the breakage of PR OCA#875

account_banking_sepa_direct_debit 14.0.1.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants