-
-
Notifications
You must be signed in to change notification settings - Fork 602
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][MIG] pos_session_pay_invoice: Migration to version 16.0 #1226
[16.0][MIG] pos_session_pay_invoice: Migration to version 16.0 #1226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for porting this module tecnically, I don't understand why
- some button open a wizard that inherit from cash.pay.invoice,
- and in other button, it open a new model pos.box.cash.invoice.in / pos.box.cash.invoice.out.
could you elaborate ?
Hi @legalsylvain, In this module, I have only migrated and made minimal changes for now. However, if you consider it necessary, I can refactor it similarly to this PR to inherit from the new wizard Before the referenced PR, these wizards ( Let me know if the refactor is welcome. |
Hi @carlos-lopez-tecnativa. |
@legalsylvain That was the behavior in the previous version; there were several wizards to do each thing. Now, based on my previous comment and the referenced PR(OCA/account-payment#743), we could simplify this. Let me know if that works for you. @pedrobaeza what do you think? |
Yes, please simplify it. |
Agree with Pedro. Let me know when you want review. |
3c68f22
to
97c04ce
Compare
@pedrobaeza @legalsylvain I have updated the code to inherit functionality from the |
97c04ce
to
644c9fd
Compare
/ocabot migration pos_session_pay_invoice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find the buttons specified in the README in the POS session.
644c9fd
to
52821a7
Compare
I don't understand why limiting the invoice payment to cash methods. Someone can come to your physical store to pay an invoice, and choose to pay with credit card. I think that limitation should be gone. |
And anyway, even adding a cash payment method, I don't find the buttons referred in the README |
@pedrobaeza the buttons are here. Could you attach an image, please? |
I was looking in the PoS session "frontend". In any moment the README mentions that you should go to the session backend form. |
This behavior is from the previous version. Do you want us to change it to allow the user to select any payment method available on POS? (But only if the payment method has a journal set.) Please confirm so I can adapt the code. |
OK, I see the functionality very limited having to go to backend, so let's not invest more time in this. Please clarify the usage README though. |
52821a7
to
443f167
Compare
Odoo, in the new version, has moved most functionalities to the frontend. This implies more effort to change it to the frontend. The task for now is to migrate the current module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code and functional review
@legalsylvain, could you please review again? |
Hi @carlos-lopez-tecnativa. Thanks for the ping ! I just come back from hollidays today. I take a look this week. thanks ! |
@legalsylvain I hope you had a great holiday! Would you kindly take another look when you have a chance? I'd appreciate any updates or feedback you may have. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code review LG
Currently translated at 86.6% (26 of 30 strings) Translation: pos-14.0/pos-14.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_session_pay_invoice/es/
Currently translated at 100.0% (30 of 30 strings) Translation: pos-14.0/pos-14.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_session_pay_invoice/es/
Currently translated at 100.0% (30 of 30 strings) Translation: pos-14.0/pos-14.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_session_pay_invoice/it/
e710136
to
9ab1267
Compare
Thanks ! |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
@legalsylvain your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1226-by-legalsylvain-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
I can see the error is general in the tour; other PRs have the same error in some OCA repos https://github.com/OCA/calendar/actions/runs/10941425935/job/30376034658#step:8:159 https://github.com/OCA/pos/actions/runs/10921083459/job/30312371146#step:8:1086 https://github.com/OCA/e-commerce/actions/runs/10902558739/job/30254730888#step:8:306 |
9ab1267
to
ac0049d
Compare
@legalsylvain @pedrobaeza the PR is ready. The error in the tests is resolved in OCA/oca-ci#78. |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 7ed8b32. Thanks a lot for contributing to OCA. ❤️ |
@Tecnativa TT49807