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

Hi,

I want to see all the meetings that I created in the calendar module in the field service calendar view.  So that whenever I try to create a new task to a user I wanted to see whether the user is available or is he having any meetings on that day. 

Thanks a lot.

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

Hi,

I think we can add only one models record in a calendar view. But you can see in the base calendar view meetings as well as the time-off is present. What they have done here is whenever a time-off gets validated the corresponding meeting gets created. That is the time off in the calendar is actually a meeting. So you can do the same way like what they have done here. Whenever a meeting gets created a corresponding task should create in the project.task model  with all the necessary values like name , start date n end date etc. By this way you can see the meetings in the field service calendar view.

Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

oh Great, It works for me. I super the create function of the calendar.event model and write the code to create a task each time a meeting created. So I can see the meetings inside the Field service calendar view .

Thanks a lot for your quick answer

Câu trả lời hay nhất

Hi Sergio, can you please share the code you used for this calendars action? Many thanks. 

Ảnh đại diện
Huỷ bỏ