This module is used to Provide Device Monitoring Feature in Tasks & Projects. In order to achieve this we have added a new tab, named “Device Monitoring Planner” in Project, with a One to many where we can add the devices and its details. One device with multiple section , area can be defined, with maximum number of agreed devices.
Device Monitoring Planner In Contract
When we click ‘add an item’ in the device monitoring one2many, we will get a form view like the screenshot given below, with fields as:
3.Device : A many2one field to Devices(Products with ‘Is Device’ boolean set to true)
We can configure a device as Contract -> Configuration -> Devices.
2.Service Address : A many2one field to Partners. This will list all the partners(service addresses) selected in the ‘Service Details’ One2many of Project.
3.Total Numbers : This is an integer field which shows the total number of agreed devices, which get computed from the device details one2many in devices.
We can add the device details in the one2many inside device monitoring planner. This include section name, area name and the maximum number of agreed devices in each section.
We can add the device number to these details by clicking the Pencil shaped button shown with each line.
We are not allowed to add device numbers greater than the No specified in the section monitoring, this is restricted by a warning message as shown below, upon saving the form.
Once we have added the above mentioned details properly, and saved the main project form view, the “Generate Monitoring Sheet” button in section monitoring lines will become clickable, so that we can create device monitoring sheet with the device details provided with that specific section monitoring line.
In the above case, we will get three device monitoring sheets. Once Device monitoring sheets are generated, “Generate Monitoring Sheet” button will become invisible and the corresponding section monitoring line become non editable. We can find the Device Monitoring Sheets generated ,in the “Monitoring Sheets” Link provided in the contract form view.
Like this we can generate many more device monitoring sheets from device monitoring planner. Such Monitoring sheets generated will have their active boolean set to true by default.
Device Monitoring Sheets in Task
Once Monitoring sheets are generated from device monitoring planner , we can load these ones to the tasks related to that particular project. For this purpose, we have added some changes in the task form view also. We have’ Device Monitoring Sheet’ tab in task and a button labelled “Load Monitoring Devices” to load the monitoring sheets of project to task.
The loaded Device details will be as shown below:
Technician is a many2one field to users, which can select from task, after loading the project monitoring sheets and Remarks is a text field, which is also entered from task.
The device monitoring sheets loaded to the tasks , can be viewed from the “Device Monitoring Sheets” Link provided in the task form view.
This should be noted that Only the Device monitoring sheets from project, which satisfies the below mentioned 2 criteria will get loaded to task.
- The device monitoring sheet should be active (Active boolean must set to true)
- The service address of the device monitoring sheet should same as service address of the task.
Only those monitoring sheets will get loaded to task on clicking load monitoring sheet button of task.
Device Monitoring Sheets Link in Project
We have a ‘Device Monitoring Sheets’ link in the project(contract) form view, Which will redirect to the editable list view of all the monitoring sheets loaded in all the tasks related to that particular project.
Note the difference between “Monitoring Sheets” link & “Device Monitoring Sheets” link in project form view. “Device Monitoring Sheet” link lists all monitoring sheets loaded in all the tasks related to that particular project, While “Monitoring Sheets” link lists all the monitoring sheets generated from the ‘device monitoring planner’ one2many of that project.
Device Monitoring Report
We have added a menu named “ Device Monitoring Report” , which can located as Contract -> Reports -> Device Monitoring Report, it will list all monitoring sheets of all tasks related to all projects in the database.
Device Monitoring Security
We have added three new user groups to control the device monitoring views & access rights.
Device Configuration
Only the users belongs to this group are allowed to configure devices, i.e only those users can see the Devices menu and create/edit/delete devices (Contract -> Configuration -> Devices).
Device Allocation
Only the users belongs to this group can see the “Device Monitoring Planner” tab in project(contract).
Device Monitoring
Only the users belongs to this group can see the “Device Monitoring Sheet” tab & “Device Monitoring Sheets” link in tasks.
Leave a Reply