Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1214 Widoki

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?


Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 23
22135
0
lip 20
3234
2
mar 19
7615
0
sty 18
4384
Odoo As A SaaS Rozwiązane
5
lip 17
19057