Link: Link for MO View
My Error when clicking Plan:
Traceback (most recent call last): File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 619, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 309, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/tools/pycompat.py", line 14, in reraise raise value File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 664, in dispatch result = self._call_function(**self.params) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 345, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/service/model.py", line 93, in wrapper return f(dbname, *args, **kwargs) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 338, in checked_call result = self.endpoint(*a, **kw) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 909, in __call__ return self.method(*args, **kw) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/http.py", line 510, in response_wrap response = f(*args, **kw) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/addons/web/controllers/main.py", line 1323, in call_button action = self._call_kw(model, method, args, kwargs) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/addons/web/controllers/main.py", line 1311, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/api.py", line 395, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/odoo/api.py", line 382, in _call_kw_multi result = method(recs, *args, **kwargs) File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/e13/mrp_workorder/models/mrp_production.py", line 13, in button_plan res = super(MrpProduction, self).button_plan() File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/addons/mrp/models/mrp_production.py", line 690, in button_plan order._plan_workorders() File "/home/real/Desktop/ERGO/odoo_/odoo_elearning/odoo13/o13/odoo/addons/mrp/models/mrp_production.py", line 725, in _plan_workorders if to_date < best_finished_date: TypeError: '<' not supported between instances of 'bool' and 'datetime.datetime'
Syntax problem. i Always look at the bottom line in the error log:
"TypeError: '<' not supported between instances of 'bool' and 'datetime.datetime'"
It's related to work center and known issue - https://github.com/odoo/odoo/issues/40231