Skip to content

Conversation

@pedrobaeza
Copy link
Member

Banking mandates, on contrary than the partner banks, have to be company specific, as the mandate is signed between the company and the partner, not for all the companies in Odoo.

Thus, if we set a specific banking mandate for a contact, it should be restricted just to the company in which the mandate was signed.

Let's make the field company dependent for avoiding the problem.

@Tecnativa TT58428

@pedrobaeza pedrobaeza added this to the 16.0 milestone Oct 15, 2025
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

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

I think it's necessary to update the code in the module account_banking_mandate_sale_contact to ensure that the field is taken from the company of the sale order, just like Odoo does https://github.com/odoo/odoo/blob/f86ebd3a1772dfd9b5b04062df2d58a1fcf1af79/addons/sale/models/sale_order.py#L369

Banking mandates, on contrary than the partner banks, have to be
company specific, as the mandate is signed between the company and the
partner, not for all the companies in Odoo.

Thus, if we set a specific banking mandate for a contact, it should be
restricted just to the company in which the mandate was signed.

Let's make the field company dependent for avoiding the problem.

TT58428
@pedrobaeza pedrobaeza force-pushed the 16.0-imp-account_banking_mandate_contact-company_dependent branch from b38886c to cbe03c0 Compare October 15, 2025 19:54
@pedrobaeza
Copy link
Member Author

@carlos-lopez-tecnativa done

Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

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

LGTM

@pedrobaeza
Copy link
Member Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1513-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 15, 2025
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1513-by-pedrobaeza-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1513-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b4bfa7c into OCA:16.0 Oct 16, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.

4 participants