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

[Alpha][13.0] Add stock_cubiscan #826

Merged
merged 15 commits into from
Mar 30, 2020
Merged

Conversation

guewen
Copy link
Member

@guewen guewen commented Jan 10, 2020

Cubiscan are dimensioners for cubing and weighing in
warehouses. This module implements the communication with the dimensioners as
well as a screen to measure and weight packaging of the products.


class ProductPackaging(models.Model):
_inherit = "product.packaging"
# FIXME: move this in product_packaging_type
Copy link
Contributor

Choose a reason for hiding this comment

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

@guewen still the case?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, it should be in this module IMO OCA/product-attribute#536

Copy link
Contributor

Choose a reason for hiding this comment

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

stock_cubiscan/wizard/cubiscan_wizard.py Show resolved Hide resolved
@simahawk
Copy link
Contributor

@guewen rebase/pre-commit needed.
@p-tombez pls pass by for a review ;)

@guewen guewen force-pushed the 13.0-add-stock_cubiscan branch 2 times, most recently from ad41bef to 5b3d046 Compare March 20, 2020 11:21
Copy link

@p-tombez p-tombez left a comment

Choose a reason for hiding this comment

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

LGTM, just need to fix the dependencies to make Travis happy

Copy link
Member

@jgrandguillaume jgrandguillaume left a comment

Choose a reason for hiding this comment

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

Functional review ok on my side

@guewen
Copy link
Member Author

guewen commented Mar 23, 2020

@p-tombez the dependency (OCA/web#1480) has been merged, I amended the last commit to trigger travis and runbot builds

@simahawk
Copy link
Contributor

tests are 🔴

p-tombez and others added 7 commits March 24, 2020 15:32
* was using a link to product.template in the wizard instead of product.product
* use product.packaging.type instead of the name of the packaging
* update product_packaging_type from OCA
* fix the numbe of digits of the volume
@guewen guewen force-pushed the 13.0-add-stock_cubiscan branch 2 times, most recently from d840877 to ed69537 Compare March 25, 2020 10:32
@guewen
Copy link
Member Author

guewen commented Mar 25, 2020

@simahawk fixed

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.

@guewen 2 little questions. LG anyway.

stock_cubiscan/models/cubiscan.py Outdated Show resolved Hide resolved

class ProductPackaging(models.Model):
_inherit = "product.packaging"
# FIXME: move this in product_packaging_type
Copy link
Contributor

Choose a reason for hiding this comment

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

The module product_packaging_type creates a packaging type "Default
Type" with sequence 1. In the test, the "unit" is created with sequence
1 too, which makes the ordering of the packagings in the test
"test_cubiscan_measures" undeterministic.

Note: "unit" should not be a packaging type, although the wizard should
allow to change the width, length and weight of the product too.
@guewen
Copy link
Member Author

guewen commented Mar 26, 2020

@simahawk yes, you are right, I amended the migration commit with your 2 remarks

@simahawk
Copy link
Contributor

/ocabot merge

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 13.0-ocabot-merge-pr-826-by-simahawk-bump-no, awaiting test results.

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit e6c87e1 into OCA:13.0 Mar 30, 2020
CarlosRoca13 pushed a commit to Tecnativa/stock-logistics-warehouse that referenced this pull request Aug 16, 2021
Signed-off-by simahawk
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.

None yet

9 participants