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

I'm using Odoo 13.0+e Versión Enterprise

I have a duration field (type float) in a work order that indicate the time during the order. If this time is equal to my float_time (00:02) appear this new field. This is possible? Dont working for me

I hope an answer, TY for all

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

Hi,

When a float time field is created this will be a field of type float.If you look at the value saved in the database this will be a floating value but in the interface this will be shown like float time value.This is because of the widget used.

Hence instead of checking the condition float_time = 00:02 you should give the float value corresponding to 00:02 that is float_time = 0.03.This will give you the expected outcome.

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
3011
2
thg 12 23
12700
3
thg 7 22
23059
2
thg 6 21
18498
0
thg 9 20
3710