Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4693 Переглядів

I am trying to odoo to test the system in order to impement in our printing company. The model we use for manufacturing is work order based (stages of produstion)

When I press the plan button I get the following error

if to_date < best_finished_date:
TypeError: '<' not supported between instances of 'bool' and 'datetime.datetime'
Is there a problem with the way I modeled things or is it a bug?


Аватар
Відмінити
Найкраща відповідь

Hi,

In the your system, there might be using some custom modules you have developed or taken from odoo apps. The issue seems to be coming from the custom code.

In the error message you can see the code,

if to_date < best_finished_date:

In the above code, the value coming to the field to_date is False, that is why you get the error. Check your system and see where the above line of code exists and update accordingly.

Thanks

Аватар
Відмінити
Автор Найкраща відповідь

I have no custom code in my installation.

Also i found that when i disable workcenters in the mrp settings, finish a production order and then re-enable the setting, the planning button works. Maybe its an initiation thing?

Аватар
Відмінити

can I know your odoo version ?

Автор

I use version 13.

Related Posts Відповіді Переглядів Дія
0
січ. 25
1072
1
черв. 24
1082
0
лип. 16
3610
1
вер. 24
2027
1
серп. 24
2089