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] stock_reception_screen_measuring_device: measure smaller packages #927

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from

Conversation

mmequignon
Copy link
Member

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.

@OCA-git-bot
Copy link
Contributor

Hi @gurneyalex,
some modules you are maintaining are being modified, check this out!

@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch 2 times, most recently from 39f3eff to 8c14d42 Compare September 5, 2024 09:42
@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch from 8c14d42 to 53747e7 Compare September 18, 2024 08:42
@mmequignon mmequignon marked this pull request as ready for review November 5, 2024 12:14
@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch from 53747e7 to bed9739 Compare November 5, 2024 13:41
Comment on lines +10 to +15
cr.execute(
"""
ALTER TABLE stock_reception_screen
ADD COLUMN IF NOT EXISTS smaller_package_has_missing_dimensions BOOLEAN;
"""
)
Copy link
Contributor

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.

@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch 2 times, most recently from 84dbac6 to e75c92e Compare November 6, 2024 06:45
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

@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch from e75c92e to d6769e8 Compare November 6, 2024 10:55
@rousseldenis rousseldenis added this to the 14.0 milestone Nov 6, 2024
@rousseldenis rousseldenis added the enhancement New feature or request label Nov 6, 2024
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch from d6769e8 to 720e078 Compare November 7, 2024 09:15
Copy link
Contributor

@grindtildeath grindtildeath left a 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

@mmequignon mmequignon force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch from 720e078 to cd6ee21 Compare November 21, 2024 15:27
mmequignon and others added 2 commits November 28, 2024 11:42
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.
@simahawk simahawk force-pushed the 14.0-reception_screen_measuring_device-measure_smaller_packages branch from cd6ee21 to 4afe798 Compare November 28, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants