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

[IMP] stock: Warning on Replenishing too much #97802

Conversation

mama-odoo
Copy link
Contributor

@mama-odoo mama-odoo commented Aug 9, 2022

Steps to reproduce :

  • Create a Product A, with no stock and a 0 min 1 max manual reordering rule (no sales lead time, no purchase lead time)
  • Sell 10 of A with a delivery scheduled today
  • In Replenishment, create a PO for A, confirm it with reception scheduled today
  • Reschedule reception of PO in 7 days

Expected Behavior :
The forecast icon is replaced by an orange warning icon.
When hovering the icon, the user is warned that replenishing can lead to an overstock.

Current behavior :
In Replenishment, Product A has a forecast of -10 and Qty to Order is set to 11.
When the user replenish A again, the PO is created and may lead to an overstock.

task : 2918947

@robodoo
Copy link
Contributor

robodoo commented Aug 9, 2022

@C3POdoo C3POdoo requested a review from a team August 9, 2022 13:19
@C3POdoo C3POdoo added the RD research & development, internal work label Aug 9, 2022
@mama-odoo mama-odoo marked this pull request as draft August 9, 2022 14:19
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch from 4a406e2 to 1aed730 Compare August 19, 2022 10:47
@mama-odoo mama-odoo marked this pull request as ready for review August 19, 2022 11:38
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch 3 times, most recently from 14c5192 to 1dc24d8 Compare September 29, 2022 08:33
@amoyaux

This comment was marked as resolved.

@amoyaux

This comment was marked as outdated.

addons/stock/models/stock_orderpoint.py Outdated Show resolved Hide resolved
addons/stock/models/stock_orderpoint.py Outdated Show resolved Hide resolved
addons/stock/models/stock_orderpoint.py Outdated Show resolved Hide resolved
addons/stock/models/stock_orderpoint.py Outdated Show resolved Hide resolved
addons/stock/models/stock_orderpoint.py Outdated Show resolved Hide resolved
addons/stock/models/stock_orderpoint.py Outdated Show resolved Hide resolved
addons/stock/static/src/js/stock_orderpoint_list_model.js Outdated Show resolved Hide resolved
addons/stock/wizard/stock_warn_unwanted_replenish.py Outdated Show resolved Hide resolved
addons/stock/wizard/stock_warn_unwanted_replenish.py Outdated Show resolved Hide resolved
addons/stock/wizard/stock_warn_unwanted_replenish.py Outdated Show resolved Hide resolved
@mama-odoo mama-odoo marked this pull request as draft October 28, 2022 16:13
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch 4 times, most recently from d5ef169 to 629e645 Compare November 17, 2022 10:56
@mama-odoo mama-odoo changed the title [IMP] Warning Wizard on Replenishing too much [IMP] stock: Display Warning Wizard on Replenishing too much Nov 17, 2022
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch 5 times, most recently from cabdb81 to 4d1746d Compare November 17, 2022 14:03
@amoyaux amoyaux force-pushed the master-stock-warn_unwanted_replenish-mama branch from 4d1746d to a2b3280 Compare November 29, 2022 08:49
@mama-odoo mama-odoo marked this pull request as ready for review November 29, 2022 08:56
@C3POdoo C3POdoo requested a review from a team November 29, 2022 08:57
@amoyaux amoyaux force-pushed the master-stock-warn_unwanted_replenish-mama branch from a2b3280 to b114a7f Compare November 29, 2022 09:10
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch from 9a3cff6 to 304d131 Compare December 7, 2022 13:06
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch 4 times, most recently from 68e4f67 to 8001b08 Compare April 19, 2023 15:40
@mama-odoo mama-odoo changed the title [IMP] stock: Display Warning Wizard on Replenishing too much [IMP] stock: Warning on Replenishing too much Apr 19, 2023
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch 2 times, most recently from 655bf57 to 2fd302c Compare April 20, 2023 12:01
Copy link
Contributor

@clesgow clesgow left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Still added a few nitpicks here and there, but nothing big.
You might want to update the PR message, since it doesn't seem to match the changes in the spec 😉
And while you're at it, you should mention the task in the PR & more importantly the commit

**Steps to reproduce :**
- Create a Product A, with no stock and a 0 min 1 max manual reordering rule (no sales lead time, no purchase lead time)
- Sell 10 of A with a delivery scheduled today
- In Replenishment, create a PO for A, confirm it with reception scheduled today
- Reschedule reception of PO in 7 days

**Expected Behavior :**
The forecast icon is replaced by an orange warning icon.
When hovering the icon, the user is warned that replenishing can lead to an overstock.

**Current behavior :**
In Replenishment, Product A has a forecast of -10 and Qty to Order is set to 11.
When the user replenish A again, the PO is created and may lead to an overstock.

task : 2918947
@mama-odoo mama-odoo force-pushed the master-stock-warn_unwanted_replenish-mama branch from 560f2d6 to ae62f97 Compare April 20, 2023 15:43
@amoyaux
Copy link
Contributor

amoyaux commented Apr 21, 2023

robodoo r+

robodoo pushed a commit that referenced this pull request Apr 21, 2023
**Steps to reproduce :**
- Create a Product A, with no stock and a 0 min 1 max manual reordering rule (no sales lead time, no purchase lead time)
- Sell 10 of A with a delivery scheduled today
- In Replenishment, create a PO for A, confirm it with reception scheduled today
- Reschedule reception of PO in 7 days

**Expected Behavior :**
The forecast icon is replaced by an orange warning icon.
When hovering the icon, the user is warned that replenishing can lead to an overstock.

**Current behavior :**
In Replenishment, Product A has a forecast of -10 and Qty to Order is set to 11.
When the user replenish A again, the PO is created and may lead to an overstock.

task : 2918947

closes #97802

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
@robodoo robodoo temporarily deployed to merge April 21, 2023 23:55 Inactive
@robodoo robodoo closed this Apr 21, 2023
@robodoo robodoo added the 16.3 label Apr 22, 2023
@fw-bot fw-bot deleted the master-stock-warn_unwanted_replenish-mama branch May 6, 2023 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
16.3 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants