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

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.



Awatar
Odrzuć
Najlepsza odpowiedź

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

Regards

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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