View Odoo Product Analysis Series - Catalog
Continued from the previous article Odoo Product Analysis (4) - Tool Section (7) - Fleet Management (1)
4 Display and state description
Contracts are displayed in list view by default:
when the contract expires, it is displayed in red and the status is pending closing; when it is valid, it is displayed in black and the status is in progress; when it is about to expire, it is displayed in orange and the status is pending closing. No matter what the current status of the contract is, you can continue to renew the contract (valid, that is, in progress) or terminate the contract (closed, that is, terminated):
Click to renew the contract once, and a new contract information will be added to the list. The default is the following One-year contract, the following is the list after three clicks on BMW/Serie 1/1-BMW-001 to renew.
Click "End Contract", the status will be switched to "Terminated", and "Contract Renewal" can also be performed in this status "Operation:
Click "Set the contract to be performed", then the terminated contract will be set to the "in progress" state again:
but the contract that has expired in time has been "activated", but it is still displayed in red, such as The "Activate" action doesn't make any sense.
5 Vehicle odometer
The vehicle odometer is grouped by each type of vehicle, and records the mileage traveled each day (that is, traveled on that day + all previous travels):
I cannot find the reason why the creation operation here cannot be used.
Issue resolved View 6 Vehicle Fuel Records:
6 Vehicle fuel record
The list is also grouped according to each model of car, and records the fuel volume and total price each time:
Click the Create button to get a form for recording vehicle fuel, which corresponds to the fleet.vehicle.log.fuel data table:
fill in the fuel volume After reaching everyone, click the blank space, and the system automatically calculates the total price.
Odometer value: record the current mileage when refueling.
After saving, this item of refueling information appears in the list:
In addition, note that: Click the "Vehicle Odometer" menu again, and the mileage filled in when refueling for BMW/Serie 1/1-BMW-001 appears here. . Therefore, the previous problem of why the mileage cannot be created is solved: the mileage is not created manually, but the current mileage is recorded every time you refuel, and the system automatically puts the value in the "vehicle odometer":
7 Vehicle Service Log
Click the "Vehicle Service Log" menu to create a log. This form corresponds to the fleet.vehicle.log.service data table:
Service Type: Associate the fleet.service.type data table, that is, the category described in 29.1.4 Service Type is contract All and Type of Service, which refers to the type of cost of this charge and purchase.
Here, the mileage is set to a different value from just now, the purpose is to test whether it will add the data to the vehicle odometer menu, and the test result proves that it will be added:
8 Vehicle Fees
Group by each vehicle, display all the costs of the vehicle:
can be created, this form corresponds to the fleet.vehicle.cost data table:
the type of the service can be selected from all categories of services in the service type. After saving, it is directly displayed in the list:
Tip: When displaying different grouping information at the same time, it is often more intuitive to use the graphic view to show the direct comparison of each group (especially the pie chart):