-
-
Notifications
You must be signed in to change notification settings - Fork 690
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
[15.0][OU-FIX] account: fill payment_method_line_id #4537
[15.0][OU-FIX] account: fill payment_method_line_id #4537
Conversation
This is already filled in end-migration:
Maybe the comment in the analysis work file is needed, but nothing more. |
Indeed, I did not look at the right place, with updated comment it will be easier. I did this commit because I have a case where E.g.:
With python code I ended with:
I will look at the existing SQL command to see why it does not fill |
We see in my previous comment that when using the python code (the same as compute method) it changes the The SQL command in the OU script does not update the line because there is no such
|
ff1363a
to
f59f036
Compare
In fact, I think the problem comes from the fact that I have an Using the And in 16.0: The Is there a reason for that ? |
Not all payment methods should generate payment method lines. That's why this is only handling manual ones, but I think for SEPA DD/SCT may be correct to generate them. |
f59f036
to
34e7128
Compare
Thanks @pedrobaeza I will submit a correction for SEPA method in another PR. And for this PR I just left the improved comment in the analysis file. |
Not all payment_method should generate payment_method_line, but SEPA method from module account_banking_sepa_credit_transfer should generate one. See comments in OCA#4537
Thanks ! /ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at e09e5e4. Thanks a lot for contributing to OCA. ❤️ |
The
payment_method_line_id
field is a stored field and should be filled during migration. Here is a proposal to fill it with python code inpost-migration.py
.