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
@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch 2 times, most recently from 25c4459 to 1c5e7f1 Compare July 4, 2024 17:02
@dc-oerp
Copy link
Author

dc-oerp commented Jul 5, 2024

Can someone please check this pre-commit issue?

@dc-oerp
Copy link
Author

dc-oerp commented Jul 19, 2024

Hi @rousseldenis

Could you please take a look at this as well?
I'm not sure why it's giving an error in the pre-commit.

Thank you

@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 ?

@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch 2 times, most recently from cff80fb to 1f5d5b6 Compare October 28, 2024 20:32
@dc-oerp dc-oerp force-pushed the 17.0-mig-account_payment_widget_amount branch from 3811e68 to ce4bbfb Compare October 28, 2024 20:41
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.