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

[16.0][OU-FIX] payment: install account_payment module #4310

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

remi-filament
Copy link
Contributor

@remi-filament remi-filament commented Feb 16, 2024

This PR proposes to force install of account_payment in this migration script since in v16 account_payment is auto_install = ["account"]

Without this, you may end up with v16 database without account_payment installed (if it was not in v15) and you cannot access account moves.

See #4281

cc @legalsylvain, @pedrobaeza

Sylvain, if you prefer I can do that in account module instead, but since most of fields for account_payment are moved in payment migration script, it makes sense to me to have it in that one.

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

Thanks !

@pedrobaeza pedrobaeza added this to the 16.0 milestone Feb 16, 2024
@pedrobaeza
Copy link
Member

I'm thinking you should put a bit of background as docstring for the method. If not, then with time, we don't remember why these choices, and they can appear to be random.

@remi-filament
Copy link
Contributor Author

Thanks Sylvain, Pedro,
I just added some explanation on function.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Great, thanks.

@pedrobaeza pedrobaeza merged commit 8b8216e into OCA:16.0 Feb 16, 2024
2 checks passed
@remi-filament remi-filament deleted the 16.0-fix-payment branch March 28, 2024 11:04
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.

4 participants