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

[15.0][IMP] delivery_package_number: Ask only once for the number of packages in wizard. #777

Conversation

sergio-teruel
Copy link
Contributor

Since the wizard was created to ask user if want a number of package is enouht, not need to ask again in backorder wizard or inmediate transfer wizard.

cc @Tecnativa TT48170

ping @CarlosRoca13 @chienandalu

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

👍 I just wonder it this could suppose a behavior change for those relaying on those wizards to set the package number.

@pedrobaeza pedrobaeza added this to the 15.0 milestone Mar 8, 2024
@sergio-teruel
Copy link
Contributor Author

Hi @chienandalu Maybe... Do you know any module??

@pedrobaeza
Copy link
Member

One of them was added in #705

@angelgarciadelachica @HaraldPanten which was the reason for adding it (double or not)?

@chienandalu
Copy link
Member

Hi @chienandalu Maybe... Do you know any module??

Not really a module. When you don't set to force the number of packages on the operation type you could always set the packages number on the wizards...

Anyway, I think it's cleaner this way.

@angelgarciadelachica
Copy link

Hi @sergio-teruel
I don't really see where the duplicity is... The wizard pops up to make sure that the user enters the number of packages when there is a carrier. There are two possible cases:

  • If you validate the whole picking and there is a carrier selected-> It asks how many packages are in that picking.
  • If you want to create a backorder and there is a carrier selected-> It asks how many packages are in that backorder.

With this PR you eliminate this step of confirmation of number of packages completely? I don't think it's a good idea to remove it, as many users are used to enter the number of packages from these wizards.

On the other hand, I have seen that you also eliminate the creation of the labels from the assistant, why is this?

THX!

@sergio-teruel sergio-teruel force-pushed the 15.0-IMP-delivery_package_number-only-one-wizard branch from 97db109 to 722b96a Compare March 16, 2024 06:48
@sergio-teruel
Copy link
Contributor Author

Hi @angelgarciadelachica

I will try to explain the reason for this.

There is a case that this module doesn't cover... Try to configure manually all the units in the picking.... It doesn't launch any wizard so the user can't configure the field number of packages...

To solve this... we create the new wizard to pick up if needed so I think we are keeping similar code in three wizards so the best option is to have only one to report the package numbers....

I attach a gif to explain when the two wizards don't get raised...

Peek 16-03-2024 07-01

I attach other gif to display the picking validation process

Peek 16-03-2024 07-46

@sergio-teruel sergio-teruel force-pushed the 15.0-IMP-delivery_package_number-only-one-wizard branch from 722b96a to bef6cf6 Compare March 16, 2024 07:03
@sergio-teruel
Copy link
Contributor Author

Hi...

I attach other gif with multi pick validation

Peek 16-03-2024 08-04

@sergio-teruel sergio-teruel force-pushed the 15.0-IMP-delivery_package_number-only-one-wizard branch from bef6cf6 to 4173fbe Compare March 16, 2024 09:32
@HaraldPanten
Copy link

@sergio-teruel @pedrobaeza I think you have a wrong contributor in Tecnativa's list of contributors in this module. Shouldn't that be fixed/removed?

@angelgarciadelachica Could you check Sergio's comments?

THX.

@pedrobaeza
Copy link
Member

I think you have a wrong contributor in Tecnativa's list of contributors in this module. Shouldn't that be fixed/removed?

Yes, indeed it's incorrect. @sergio-teruel can you remove it?

@sergio-teruel sergio-teruel force-pushed the 15.0-IMP-delivery_package_number-only-one-wizard branch from 4173fbe to e3b3f87 Compare March 25, 2024 11:56
@sergio-teruel
Copy link
Contributor Author

Done!!

@angelgarciadelachica
Copy link

Hi @sergio-teruel!

Thank you very much for the explanation, it is perfectly understood.
LGTM 👍🏻

THX!

@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-777-by-pedrobaeza-bump-minor, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Mar 25, 2024
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-777-by-pedrobaeza-bump-minor.

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.

@pedrobaeza
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-777-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f1675a4 into OCA:15.0 Mar 25, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 15.0-IMP-delivery_package_number-only-one-wizard branch March 25, 2024 15:45
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.

7 participants