コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4742 ビュー

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.

関連投稿 返信 ビュー 活動
0
1月 25
1145
1
6月 24
1104
0
7月 16
3624
1
9月 24
2088
1
8月 24
2126