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

[MIG] [16.0] pos_payment_change #929

Merged
merged 22 commits into from
May 17, 2023

Conversation

julenfl
Copy link
Contributor

@julenfl julenfl commented Feb 21, 2023

PR for migration from v15.0 to v16.0

related task: #849

legalsylvain and others added 17 commits February 20, 2023 23:08
- Black python code
- OCA Convention
- Add tests
- add configuration on pos.config, with two option 'refund' or 'update'
- The 'refund' option makes the module compatible with (French) certification
- make the module compatible with pos_order_return
…on PoS Order(s) to know the history of the payments
Currently translated at 100.0% (31 of 31 strings)

Translation: pos-12.0/pos-12.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/es/
Currently translated at 100.0% (33 of 33 strings)

Translation: pos-12.0/pos-12.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/es/
Currently translated at 100.0% (33 of 33 strings)

Translation: pos-12.0/pos-12.0-pos_payment_change
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/de/
A cash payment method must have a cash journal.
@julenfl julenfl mentioned this pull request Feb 21, 2023
37 tasks
@julenfl julenfl force-pushed the 16.0-mig-pos_payment_change branch 2 times, most recently from dea747e to 16a66fa Compare February 22, 2023 11:52
@legalsylvain
Copy link
Contributor

/ocabot migration pos_payment_change

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Feb 22, 2023
@julenfl julenfl changed the title [MIG] [16.0] pos_payment_change [WIP] [16.0] pos_payment_change Feb 22, 2023
@PierrickBrun
Copy link
Contributor

PierrickBrun commented Mar 6, 2023

Hi @julenfl ,

I'm interested in migrating this module too, do you know when you will continue/finish working on this ?

I can take it from here if this fits you.

I've done a quick test and noticed the following:

  • small problem with float_compare: I've sent you a PR to fix it
  • Apparently the pos closing button/screen has disappeared (maybe this is linked to something else in my dev env)

[FIX] use float_compare to compare floats
@julenfl
Copy link
Contributor Author

julenfl commented Mar 16, 2023

Hi @julenfl ,

I'm interested in migrating this module too, do you know when you will continue/finish working on this ?

I can take it from here if this fits you.

I've done a quick test and noticed the following:

  • small problem with float_compare: I've sent you a PR to fix it
  • Apparently the pos closing button/screen has disappeared (maybe this is linked to something else in my dev env)

Hi @PierrickBrun

First I apologize for not answering you. I have already accepted your PR, now I am working hard with other migrations. If you want you can continue with the migration, I can accept the PR or do it as you want.

thanks

Copy link
Member

@victor-champonnois victor-champonnois left a comment

Choose a reason for hiding this comment

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

Functional test OK

@victor-champonnois
Copy link
Member

Note : there is a weird behavior when clicking to edit the old payment line it opens a wizard that doesn't make sense
image

image

The bug already exists in version 14 though, so I guess it's not required to fix it here.

Copy link
Member

@victor-champonnois victor-champonnois left a comment

Choose a reason for hiding this comment

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

Code review LGTM

@julenfl julenfl changed the title [WIP] [16.0] pos_payment_change [MIG] [16.0] pos_payment_change Apr 20, 2023
@RodrigoBM
Copy link

@legalsylvain can you merge it, thanks

<field name="amount_total" invisible="1" />
<field name="old_line_ids" colspan="4">
<tree>
<field name="old_payment_method_id" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<field name="old_payment_method_id" />
<field name="old_payment_method_id" widget="selection"/>

that should do the job, regarding @victor-champonnois remarks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added the changes that you have requested in the PR, thanks

<tree editable="bottom">
<field
name="new_payment_method_id"
options="{'no_open': True, 'no_create_edit': True}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
options="{'no_open': True, 'no_create_edit': True}"
widget="selection"

same here I guess. Don't you think ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added the changes that you have requested in the PR, thanks

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

1 similar comment
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@julenfl julenfl force-pushed the 16.0-mig-pos_payment_change branch from d0cf40e to 82e3147 Compare May 17, 2023 11:44
@julenfl julenfl requested a review from legalsylvain May 17, 2023 11:49
@legalsylvain
Copy link
Contributor

/ocabot merge nobump

Thanks for your contribution.

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-929-by-legalsylvain-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 8afb0ff into OCA:16.0 May 17, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 41c1d71. Thanks a lot for contributing to OCA. ❤️

@RodrigoBM RodrigoBM deleted the 16.0-mig-pos_payment_change branch May 17, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.