跳至內容
選單
此問題已被標幟
1 回覆
2411 瀏覽次數

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.

頭像
捨棄
作者 最佳答案

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',
)


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 24
1349
1
5月 24
1839
0
5月 24
1398
2
2月 24
1869
2
3月 23
2373