Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2704 Widoki
Thrown and error whe i click "continue production" in manufactoring

return self.browse(item.id for item in sorted(self, key=key, reverse=reverse)) TypeError: '<' not supported between instances of 'datetime.datetime' and 'bool'
Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

In the function i.e when you click on continue production button, there is some code which is comparing between 2 dates and in one of them, date value there will be false. Therefore, this issue is coming. 

Add flag or if condition before you comparing the dates.

Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 22
2365
0
lut 22
1553
0
sty 22
1751
3
wrz 25
248
1
wrz 25
300