-
Notifications
You must be signed in to change notification settings - Fork 0
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
[IMP] shopflor/mobile/_packing: Allows to select package types for packing #25
base: 16.0-shopfloor_packing-sbj
Are you sure you want to change the base?
Conversation
fc10d87
to
8f5146b
Compare
8f5146b
to
11fc8dc
Compare
class PackagingAction(Component): | ||
|
||
_inherit = "shopfloor.packaging.action" |
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.
Just to not confuse with product packaging
class PackagingAction(Component): | |
_inherit = "shopfloor.packaging.action" | |
class PackAction(Component): | |
_inherit = "shopfloor.pack.action" |
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.
Some renaming (I haven't listed them all)
_inherit = "shopfloor.cluster.picking" | ||
|
||
def _get_available_delivery_packaging(self, picking): |
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.
def _get_available_delivery_packaging(self, picking): | |
def _get_available_delivery_package_types(self, picking): |
def list_delivery_packaging(self, picking_batch_id, picking_id, selected_line_ids): | ||
"""List available delivery packaging for given picking. | ||
|
||
Transitions: | ||
* select_delivery_packaging: list available delivery packaging, the | ||
user has to choose one to create the new package | ||
* select_package: when no delivery packaging is available |
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.
def list_delivery_packaging(self, picking_batch_id, picking_id, selected_line_ids): | |
"""List available delivery packaging for given picking. | |
Transitions: | |
* select_delivery_packaging: list available delivery packaging, the | |
user has to choose one to create the new package | |
* select_package: when no delivery packaging is available | |
def list_delivery_package_types(self, picking_batch_id, picking_id, selected_line_ids): | |
"""List available delivery package types for given picking. | |
Transitions: | |
* select_delivery_package_type: list available delivery package types, the | |
user has to choose one to create the new package | |
* select_package: when no delivery package types are available |
delivery_packaging = self._get_available_delivery_packaging(picking) | ||
if not delivery_packaging: |
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.
delivery_packaging = self._get_available_delivery_packaging(picking) | |
if not delivery_packaging: | |
delivery_package_types = self._get_available_delivery_package_types(picking) | |
if not delivery_package_types: |
response = self._check_allowed_qty_done(picking, selected_lines) | ||
if response: | ||
return response | ||
return self._response_for_select_delivery_packaging(picking, delivery_packaging) |
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.
Is there a _select somewhere ?
return self._response_for_select_delivery_packaging(picking, delivery_packaging) | |
return self._response_for_select_delivery_package_type(picking, delivery_package_type) |
When a lot is scanned, it does the same as for the products but based | ||
on the lot. | ||
|
||
When a packaging type (one without related product) is scanned, a new |
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.
model changed from v14, not related to product anymore
When a packaging type (one without related product) is scanned, a new | |
When a package type is scanned, a new |
Based on :