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

[14.0][IMP] shopfloor, stock_picking_partner_note: display picking info notes in cluster_picking and checkout scenarios #839

Conversation

JuMiSanAr
Copy link
Contributor

@JuMiSanAr JuMiSanAr commented Feb 16, 2024

Depends on:

Stock picking partner notes are notes that are pre-defined for each customer
and can be displayed for each picking.
With this PR, we send them to the frontend for the cluster picking scenario and display them where needed.

This PR also deprecated shopfloor_packing_info in favor of stock_picking_partner_note, which is now used for both checkout and cluster picking.

note_in_cluster_picking

ref: cos-4214

@JuMiSanAr JuMiSanAr changed the title shopfloor_packing_info: depend on stock_picking_partner_note [14.0][IMP] shopfloor_packing_info: depend on stock_picking_partner_note Feb 16, 2024
@jbaudoux
Copy link
Contributor

jbaudoux commented Feb 16, 2024

I think you better deprecate this module and update shppfloor to send the picking note to the front and display it in the front
You don't need to depend on stock_picking_partner_note as this is just populating the note on the picking

@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from 7f41757 to c70c0ef Compare February 20, 2024 13:04
@JuMiSanAr
Copy link
Contributor Author

I think you better deprecate this module and update shppfloor to send the picking note to the front and display it in the front You don't need to depend on stock_picking_partner_note as this is just populating the note on the picking

@jbaudoux
Ok, I've added a note in de DESCRIPTION.rst file in shopfloor_packing_note (let me know if there's a better way to mark a module as deprecated) and I've also pushed to this PR a new shopfloor_stock_picking_partner_note module. Let me know if it looks ok to you.

@JuMiSanAr JuMiSanAr marked this pull request as ready for review February 20, 2024 13:05
@JuMiSanAr JuMiSanAr changed the title [14.0][IMP] shopfloor_packing_info: depend on stock_picking_partner_note [14.0][ADD] shopfloor_picking_partner_note Feb 20, 2024
@JuMiSanAr JuMiSanAr changed the title [14.0][ADD] shopfloor_picking_partner_note [14.0] Add shopfloor_picking_partner_note Feb 20, 2024
@JuMiSanAr JuMiSanAr changed the title [14.0] Add shopfloor_picking_partner_note [14.0] Add shopfloor_stock_picking_partner_note Feb 21, 2024
@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from c70c0ef to a2d266e Compare February 23, 2024 08:45
@JuMiSanAr JuMiSanAr changed the title [14.0] Add shopfloor_stock_picking_partner_note [14.0][IMP] Display picking info notes in cluster_picking scenario Feb 23, 2024
@JuMiSanAr
Copy link
Contributor Author

@jbaudoux I've updated the module with your remarks, but now I'm wondering: will the notes be correctly recomputed each time we change the partner? Because the field introduced in stock_picking_partner_note is stored...

shopfloor/services/checkout.py Outdated Show resolved Hide resolved
shopfloor/actions/data.py Outdated Show resolved Hide resolved
shopfloor/services/cluster_picking.py Outdated Show resolved Hide resolved
@jbaudoux
Copy link
Contributor

@jbaudoux I've updated the module with your remarks, but now I'm wondering: will the notes be correctly recomputed each time we change the partner? Because the field introduced in stock_picking_partner_note is stored...

Yes, there is a depends on partner: https://github.com/OCA/stock-logistics-workflow/pull/1504/files#diff-9ec7eee25885dbe0455eef41843ed79f5fbfd8c8579b90c09f05754ee93fef2cR13

@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from a2d266e to e66e9b1 Compare February 26, 2024 09:11
Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

I don't see the display of the note in the zone picking

shopfloor/services/cluster_picking.py Outdated Show resolved Hide resolved
shopfloor/tests/test_checkout_list_delivery_packaging.py Outdated Show resolved Hide resolved
shopfloor/tests/test_checkout_scan_package_action.py Outdated Show resolved Hide resolved
@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from e66e9b1 to 1af5cd4 Compare February 27, 2024 09:08
@JuMiSanAr
Copy link
Contributor Author

I don't see the display of the note in the zone picking

The task descriptions says it's not applicable for zone picking right?

"In shopfloor cluster picking (n.a. for zone picking), display the respective picking info..."

@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from 1af5cd4 to 2c71c67 Compare February 27, 2024 09:15
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG overall but the mig step and the dep.

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

More feature with less code, isn't it wonderful !

Please split last commit. One commit for shopfloor, and one for shopfloor_mobile

@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from 2c71c67 to c9953fe Compare March 4, 2024 14:47
@simahawk
Copy link
Contributor

@JuMiSanAr can you rebase?

@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from dc9d99e to 7555a0d Compare March 15, 2024 07:32
@JuMiSanAr
Copy link
Contributor Author

Failing tests should be fixed with:
OCA/stock-logistics-workflow#1543

@JuMiSanAr JuMiSanAr changed the title [14.0][IMP] Display picking info notes in cluster_picking scenario [14.0][IMP] Display picking info notes in cluster_picking and checkout scenarios Mar 20, 2024
@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from d02e7b1 to bff324d Compare March 21, 2024 15:31
@rousseldenis
Copy link
Contributor

@JuMiSanAr Don't forget to have a meaningful PR's description. It should at least mention the module you modify in order to help reviewing. Thanks

@JuMiSanAr JuMiSanAr changed the title [14.0][IMP] Display picking info notes in cluster_picking and checkout scenarios [14.0][IMP] stock_picking_partner_note: display picking info notes in cluster_picking and checkout scenarios Apr 9, 2024
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

image

@JuMiSanAr
Copy link
Contributor Author

image

This test fails because we depend on stock_picking_partner_note, which currently has note as an Html field. As soon as we merge OCA/stock-logistics-workflow#1543 (review) , the test should pass.

@JuMiSanAr JuMiSanAr force-pushed the 14.0--shopfloor_packing_info--stock_picking_partner_note branch from 2817ebe to 2452ea3 Compare April 11, 2024 07:42
@simahawk
Copy link
Contributor

image

This test fails because we depend on stock_picking_partner_note, which currently has note as an Html field. As soon as we merge OCA/stock-logistics-workflow#1543 (review) , the test should pass.

Then you should add that PR as a tmp test req :wink

Copy link

github-actions bot commented Sep 1, 2024

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 1, 2024
@github-actions github-actions bot closed this Oct 6, 2024
@sebalix sebalix changed the title [14.0][IMP] stock_picking_partner_note: display picking info notes in cluster_picking and checkout scenarios [14.0][IMP] shopfloor, stock_picking_partner_note: display picking info notes in cluster_picking and checkout scenarios Oct 14, 2024
@sebalix sebalix removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 14, 2024
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.

6 participants