Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2437 Visualizzazioni

In odoo 15, any time I create a work order, the status by default is "waiting for another wo" and the starting date is replanned to the end of the previous work order. I want to have my WO running in parallel and by default in ready state. I don't want odoo to reschedule dates for the new work orders.

Avatar
Abbandona
Autore Risposta migliore

Thanks @Cybrosys, but that did not work for me. 

Just as a reference, I solved the problem by:

Changing the default value from "Waiting for another wo" to "ready" and 
 redefining the following compute methods


date_planned_start = fields.Datetime(
compute=lambda self: self._compute_date_planned_start(),
default=lambda self: self._default_date_planned_start(),
string='Planned Start',
)

date_planned_finished = fields.Datetime(
compute=lambda self: self._compute_date_planned_start(),
string='Planned End',
)


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 24
1355
1
mag 24
1844
0
mag 24
1411
2
feb 24
1883
2
mar 23
2390