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

[13.0][MIG] stock_storage_type_putaway_strategy #13

Conversation

grindtildeath
Copy link
Contributor

)

def _get_pack_putaway_strategy(self, putaway_location, quant, product):
package_storage_type = False

Choose a reason for hiding this comment

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

can you just add a docsting to show on the method description all return case possibly ?

return not (max_weight and pack_weight and pack_weight > max_weight)

def _existing_quants(self, products=None, lot=None):

Choose a reason for hiding this comment

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

Suggested change

"max_weight",
)
def _compute_has_restrictions(self):
for slst in self:

Choose a reason for hiding this comment

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

are we sure they is default values for this compute ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean here? has_restrictions is always computed in the function since the result of any is used...

class TestStorageTypeMove(TestStorageTypeCommon):

def test_package_level_location_dest_domain(self):
pass

Choose a reason for hiding this comment

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

you don't have time to do this tests or they are not commited ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still WIP

@grindtildeath grindtildeath mentioned this pull request Mar 23, 2020
2 tasks
# allowing the package into the location
allowed = True
break
if not allowed:
Copy link
Member

Choose a reason for hiding this comment

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

@grindtildeath I think here we should display different messages according to why it breaks. Having always the same error message is very confusing. In my case it happens trying to post an inventory with several quants in a bin with "only_empty" and I didn't understand what was wrong for a while.

def _get_pack_putaway_strategy(self, putaway_location, quant, product):
package_storage_type = False
if quant:
package_storage_type = quant.package_id.package_storage_type_id
Copy link
Member

Choose a reason for hiding this comment

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

if package_storage_type_id exists on package_id take it, otherwise look at the one stored on the quant

guewen and others added 2 commits March 27, 2020 07:36
@grindtildeath
Copy link
Contributor Author

Merged into #12

guewen pushed a commit to guewen/wms that referenced this pull request May 18, 2020
Shopfloor scan anything + fix docs for non-process endpoints
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.

5 participants