Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2431 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 24
1352
1
thg 5 24
1843
0
thg 5 24
1406
2
thg 2 24
1876
2
thg 3 23
2387