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

[17.0][MIG] account_payment_widget_amount: Migration to 17.0 #745

Open
wants to merge 27 commits into
base: 17.0
Choose a base branch
from

Conversation

dc-oerp
Copy link

@dc-oerp dc-oerp commented Jul 3, 2024

Migrate account_payment_widget_amount module from 16.0 to 17.0

AdriaGForgeFlow and others added 26 commits June 25, 2024 15:44
Currently translated at 100.0% (4 of 4 strings)

Translation: account-payment-12.0/account-payment-12.0-account_payment_widget_amount
Translate-URL: https://translation.odoo-community.org/projects/account-payment-12-0/account-payment-12-0-account_payment_widget_amount/pt/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-payment-15.0/account-payment-15.0-account_payment_widget_amount
Translate-URL: https://translation.odoo-community.org/projects/account-payment-15-0/account-payment-15-0-account_payment_widget_amount/ca/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-payment-15.0/account-payment-15.0-account_payment_widget_amount
Translate-URL: https://translation.odoo-community.org/projects/account-payment-15-0/account-payment-15-0-account_payment_widget_amount/pt_BR/
Currently translated at 100.0% (5 of 5 strings)

Translation: account-payment-16.0/account-payment-16.0-account_payment_widget_amount
Translate-URL: https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_payment_widget_amount/it/
@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch 4 times, most recently from ac994db to 8432645 Compare July 4, 2024 15:42
@rousseldenis
Copy link
Contributor

@dc-oerp Sorry, I'm not js specialist. Maybe @pedrobaeza

@dc-oerp
Copy link
Author

dc-oerp commented Jul 25, 2024

Hi @ChrisOForgeFlow @pedrobaeza

Could you please check the pre-commit issue in this PR?
Let me know if I need to make any repairs.

Thank you

@pedrobaeza
Copy link
Member

The error seems clear:

 /home/runner/work/account-payment/account-payment/account_payment_widget_amount/static/src/js/account_payment_field.js
  3:1  error  Parsing error: 'import' and 'export' may appear only with 'sourceType: module'

you need to fix that. If the JS code is modern style, you need to rename the file to .esm.js.

@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch from 8b3f6d0 to 22dc423 Compare July 25, 2024 13:48
@dc-oerp
Copy link
Author

dc-oerp commented Aug 1, 2024

Hi @pedrobaeza

I have fixed the js pre-commit issue and I think this is ready to be merged.

Thank you

@pedrobaeza
Copy link
Member

/ocabot migration account_payment_widget_amount

Well, now it's OK formally. Then there must be reviews:

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#review

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Aug 1, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 1, 2024
11 tasks
@dc-oerp
Copy link
Author

dc-oerp commented Aug 28, 2024

Hi @pedrobaeza

Should I tag somebody to review this?
What needs to be done for the next step?

Thank you

@pedrobaeza
Copy link
Member

Ping the original contributors of the module, and you can review other PRs and ask in exchange that they review yours.

@dc-oerp
Copy link
Author

dc-oerp commented Sep 3, 2024

Hi @ChrisOForgeFlow

Could you please review this PR?

Thank you

Copy link
Contributor

@ChrisOForgeFlow ChrisOForgeFlow left a comment

Choose a reason for hiding this comment

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

LGTM, Functional and code review

@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch 2 times, most recently from 43b8894 to 862f9ba Compare September 4, 2024 13:26
@dc-oerp
Copy link
Author

dc-oerp commented Sep 4, 2024

Hi @rousseldenis

All comments have been fixed.

Thank you

@dc-oerp
Copy link
Author

dc-oerp commented Oct 7, 2024

Hi @rousseldenis

Would you mind reviewing this commit again, all the comments has been fixed.

Thanks

)
invoice.with_context(paid_amount=100.0).js_assign_outstanding_line(
payment_ml.id
)
self.assertEqual(invoice.amount_residual, 100.0)
self.assertEqual(invoice.amount_residual, 300.0)
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 explain all the amounts changes ?

Copy link
Author

Choose a reason for hiding this comment

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

Hi @rousseldenis

Sorry for the delay,
I have pushed the latest changes to the branch.
The test cases were right, but the code did not give the right result due to some bugs.
I have fixed them all; this should be ready to merge into the production.

Please review again
Thank you

@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch 3 times, most recently from 3811e68 to ce4bbfb Compare October 28, 2024 20:41
@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch 3 times, most recently from dcf7e97 to e19888f Compare December 4, 2024 15:16
@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch from 05f4ff8 to 6503d57 Compare January 8, 2025 16:55
@dc-oerp dc-oerp requested a review from rousseldenis January 10, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.