Skip to content

Conversation

@glitchov
Copy link

Adds a flag on payment return reason to automatically revoke mandate in the corresponding invoice.

It's a migration of the never merged pull request #312

@glitchov glitchov force-pushed the 18.0-mig-account_payment_return_revoke_mandate-hda branch 2 times, most recently from 1160678 to 19e6f76 Compare July 11, 2025 13:39
Comment on lines +1 to +3
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Copy link

Choose a reason for hiding this comment

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

why is this necessary? what does it do?

Copy link
Member

@yvaucher yvaucher Jul 29, 2025

Choose a reason for hiding this comment

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

pyproject.toml is added to all addons usually by the pre-commit task.

It is used to package the odoo addons. More on this here: https://github.com/sbidoul/whool

@yvaucher
Copy link
Member

#833 was merged. Please rebase and remove the "DON'T MERGE" commit.

@@ -0,0 +1 @@
- Quentin Groulard \<[email protected]\>
Copy link
Member

Choose a reason for hiding this comment

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

@glitchov You might want to add yourself to the contributors list 😉

Copy link
Member

@yvaucher yvaucher left a comment

Choose a reason for hiding this comment

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

LGTM

Don't forget to add yourself as a contributor.

@glitchov glitchov force-pushed the 18.0-mig-account_payment_return_revoke_mandate-hda branch from 19e6f76 to 6621abb Compare July 30, 2025 09:35
Comment on lines 14 to 16
def _payment_returned(self, return_line):
# make override easier
self._revoke_mandate(return_line)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this hook is still useful in the base module (account_payment_return), can't we migrate #310 as well instead of merging everything in account_payment_return_revoke_mandate ?

@glitchov glitchov force-pushed the 18.0-mig-account_payment_return_revoke_mandate-hda branch 3 times, most recently from ac46085 to 3add1b0 Compare September 16, 2025 07:45
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please explain why we need this file ? Is it still needed now that you are based on #879 ?

@glitchov glitchov force-pushed the 18.0-mig-account_payment_return_revoke_mandate-hda branch from 3add1b0 to 0fca0aa Compare September 17, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants