Skip to Content
Menu
This question has been flagged
2 Replies
38 Views

When doing a repair, I can add or recycle parts but I'm no longer able to remove them.  Selecting Remove results in a standard validation error:

The operation cannot be completed: - Create/update: a mandatory field is not set. - Delete: another model requires the record being deleted. If possible, archive it instead. Model: Product Moves (Stock Move Line) (stock.move.line) Field: To (location_dest_id)

This was previously working but it's been a while since I used the repair module.  Whatever the cause, it's system-wide because it doesn't matter which part I choose to remove.

Also, I'm curious about where "Removed" parts actually go.  It would be nice if there was an option to scrap them at repair time.  Under Locations in the Miscellaneous tab, there is  a Recycled Parts Destination Location.  The tool-tip for this says this is the location for the repair parts.  That be the case, why is it called "Recycled Parts...."?  The module seems rather simple and there are virtually no configuration options, including the ability to change this location.

Should I just resort to Recycle and then scrap the parts manually?


Avatar
Discard
Best Answer

Hi Rich: The error message seems to indicate you are trying to physically delete a row in the parts section which is triggering a referential integrity constraint since the stock move has already been created.

Regarding your questions about locations, the default behavior is as follows:

  1. An "Add"ed part moves from the "Location" selected in the Miscellaneous tab to "Virtual Locations/Production". This is Odoo's way of indicating that the part was consumed.
  2. A "Remove"ed part moves from "Virtual Locations/Production" to "Virtual Locations/Scrap".
  3. A "Recycle"ed part moved from "Virtual Locations/Production" to the "Recycled Parts Destination Location" selected in the Miscellaneous tab. This is Odoo's way of indicating the removed part will be reused/recycled.

These default settings are configured in the "Repairs" Operation Type in the Inventory module like so.

Avatar
Discard
Author Best Answer

Hi Paresh,

That's the info I was looking for.  The default remove destination was missing.  It didn't work at first after I corrected it.  I deleted my repair order and started fresh and now it's working as expected.

Thank you!

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 23
19840
0
Jul 20
1628
2
Mar 19
4510
0
Jan 18
2705
5
Jul 17
16567