-
-
Notifications
You must be signed in to change notification settings - Fork 193
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] stock_reception_screen_measuring_device: measure smaller packages #927
base: 14.0
Are you sure you want to change the base?
[14.0][IMP] stock_reception_screen_measuring_device: measure smaller packages #927
Conversation
Hi @gurneyalex, |
39f3eff
to
8c14d42
Compare
8c14d42
to
53747e7
Compare
53747e7
to
bed9739
Compare
cr.execute( | ||
""" | ||
ALTER TABLE stock_reception_screen | ||
ADD COLUMN IF NOT EXISTS smaller_package_has_missing_dimensions BOOLEAN; | ||
""" | ||
) |
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.
Not blocking, but there are odoo.tools.sql.create_column
helper for that.
84dbac6
to
e75c92e
Compare
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.
LG
stock_reception_screen_measuring_device/models/stock_reception_screen.py
Outdated
Show resolved
Hide resolved
e75c92e
to
d6769e8
Compare
This PR has the |
d6769e8
to
720e078
Compare
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.
Looks good, small remarks
stock_reception_screen_measuring_device/migrations/14.0.2.0.0/post-migration.py
Show resolved
Hide resolved
stock_reception_screen_measuring_device/models/stock_reception_screen.py
Show resolved
Hide resolved
stock_reception_screen_measuring_device/models/stock_reception_screen.py
Show resolved
Hide resolved
stock_reception_screen_measuring_device/models/stock_reception_screen.py
Show resolved
Hide resolved
720e078
to
cd6ee21
Compare
When goods are received, triggers measurements also for smaller packagings that weren't ordered or received. This behavior is not triggered when received packagings are not the same as ordered packagings.
There's no need to store this flag as it's used only for UI purpose on the rec screen. This way useless computation to update the field are avoided.
cd6ee21
to
4afe798
Compare
When goods are received, triggers measurements also for smaller packagings that weren't ordered or received.
This behavior is not triggered when received packagings are not the same as ordered packagings.