manufacture icon indicating copy to clipboard operation
manufacture copied to clipboard

[16.0][MIG] mrp_unbuild_subcontracting: Migration to 16.0

Open PauBForgeFlow opened this issue 1 year ago • 6 comments

PauBForgeFlow avatar Sep 06 '23 09:09 PauBForgeFlow

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). 🤖

OCA-git-bot avatar Sep 11 '23 10:09 OCA-git-bot

I did some test in runboat using a component with a route set as "Resupply Subcontractor on Order" and found that when we Return the receipt transfer, new resupply transfer from warehouse to subcontractor location and another subcontract manufacturing order are created. without do anything to the transfer and MO, then validate the return transfer, the Subcontract manufacture order will automatically done and the resupply transfer remain in ready state.

IMO, these scenarios result in the following issues:

  1. The resupply transfer remains open until the user is aware and manually cancels the transfer.
  2. The finished goods, which were unbuild upon validating the return transfer, are automatically reproduced and stored in the subcontractor location. (I believe that with the unbuild function, the stock that should be in the subcontractor location is the component, not the finished goods.)

Expected result:

  1. Once a return transfer is created, it should not generate a new resupply transfer and the subcontract MO.
  2. Once the return transfer is validated, and the unbuild order is automatically completed, the finished product should be located in the Production location, and the component should be located in the Subcontractor location. (no need reproduction scenario at this stage)

Could you please review this @PauBForgeFlow ? I also compared the behavior with its v14 in runboat, and in v14 the behavior is aligned with the expected results mentioned above. Please CMIIW

rinaldifirdaus avatar Dec 23 '23 02:12 rinaldifirdaus

This test will fail until https://github.com/OCA/manufacture/pull/1179 is merged.

Also I added this PR that allowed me to simplify the logic: https://github.com/odoo/odoo/pull/148262

BernatPForgeFlow avatar Jan 23 '24 16:01 BernatPForgeFlow

@PauBForgeFlow please include changes made by this PR https://github.com/OCA/manufacture/pull/1266

ChrisOForgeFlow avatar Jun 11 '24 15:06 ChrisOForgeFlow

/ocabot merge nobump

JordiBForgeFlow avatar Jun 17 '24 08:06 JordiBForgeFlow

Sorry @JordiBForgeFlow you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

OCA-git-bot avatar Jun 17 '24 08:06 OCA-git-bot