Skip to Content
Menú
This question has been flagged
3 Respostes
322 Vistes

I wanted to add more components to my repair but, I accidentally clicked repaired. Is there a way to set it back to draft? 

Avatar
Descartar
Best Answer

Hi, I think creating another RO for the products you need consumed is the fastest solution. For future you can for example add a confirmation message when clicking "End Repair". If you are not a codding person the easiest way is to find the view file inside odoo and add text to your button definition:

confirm=" *** your message ***"

so for the "End repair" button this would be looking like this:

button name="action_repair_end" invisible="state != 'under_repair'" type="object" string="End Repair" class="oe_highlight" data-hotkey="x" confirm="Are you sure you want to end repair?"

this will give you a popup like this:

let me know if you need some assistance in finding the view file.



Avatar
Descartar
Best Answer

By default in Odoo  you can not do that, but you can develop this feature by yourself
Any help, contact me.

Regards

Avatar
Descartar
Best Answer

Hi Mat, sadly not, as repairs posts "stock moves" in the inventory which can not be set to draft.

What you could do, is to create an extra repair order and use a studio field many2many to link the repair orders together. This way you could easily jump between the linked repair orders. 

Or, you could have a module developed which allows you to set the repair to draft and allow you to add additional components afterwards ( as long as you're not affecting the existing posted stock moves)

We'ld be happy to help you! Just contact us at hi (at) latus .ch
Best regards, Joep

Avatar
Descartar

in the studio how to develop reset to draft repair can you help me?