Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
Câu hỏi đã đóng với nguyên nhân: Không phù hợp hoặc quá cũ bởi Kolawole Mobolaji trên 05/08/2024 20:26:33

I am using Odoo v17.00 and using the studio to create automation action within Fleet - Service to create a repair order in repair model (Note - repair model has a sequence (unknown location) for repair.order.name.

I am getting this error:

: "operator does not exist: integer = boolean LINE 1: SELECT number_next FROM ir_sequence WHERE id=false FOR UPDAT... ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. " while evaluating "env['repair.order'].create({\n 'x_studio_repair_vehicle': record.vehicle_id,\n 'x_studio_fleet_service_reference': record.x_studio_service_reference_id})

Bold text above is the code I put on change of state in Fleet.vehicle.log.services.

There is no sequence in Fleet.vehicle.log.services.

There is sequence in repair.order -  I need help on how to resolve the selection id returning false when called via code level.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 24
1496
1
thg 3 24
883
4
thg 4 24
2619
1
thg 12 23
2309
0
thg 3 23
2072