oca / fleet Goto Github PK
View Code? Open in Web Editor NEWOdoo fleet management modules
License: GNU Affero General Public License v3.0
Odoo fleet management modules
License: GNU Affero General Public License v3.0
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-14.0
Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list
Hi everyone,
I am working on an Odoo project with the purpose of serving vehicle repair shop businnes.
I understand that the fleet module is designed for the management and use of vehicles by the company that uses Odoo itself and, maybe, the best desing must reveal to build a new vertical like repo, such as vertical-vechicle-repair-shop.
Anyway, the fleet repo must be the start point to extend some features to be able to attend this project.
Initial Scope
Integrate the fleet.vehicle with the res.partner as owner (add vehicle ownership, linking to custumers to vehicles)
Integrate the fleet.vehicle with the sale and account.move.line model (link sales and invoice to veichicles)
Integrate the fleet.vehicle.model with the products model as owner (link btw parts and vehicle models)
The idea is to have a vertical auto (vehicle) repair shop, where the major requirements is to link purchase and invoice (maybe lines) to vehicle, add vehicle ownership, linking to contacts and also link purchases to vehicle model.
Modules that I intend to implement and make available at OCA
What do you think of the modules mentioned above?
cc @ivantodorovich @mamcode @sbidoul @mymage @brian10048 @marcelsavegnago @pedrobaeza
Hello guys,
I am working on an Odoo project with the purpose of serving car rental companies in the B2B model.
I understand that the fleet module is designed for the management and use of vehicles by the company that uses Odoo itself, but I believe that it is possible to extend some features to be able to attend this project.
Initial Scope
Modules that I intend to implement and make available at OCA
What do you think of the modules mentioned above?
And what do you think of the project in general? I'm still thinking about the rental revenue management, I know it has the sale_rental module but I haven't analyzed it yet.
Unable to find image 'oca-fleet:6c20a4c_env_1_job_1' locally
docker: Error response from daemon: pull access denied for oca-fleet, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0
Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list
We have created a Module to Link fleet members to analytic accounts in order to track costs and revenues associated to the vehicle. Corresponding analytic entries can be reached from a fleet member form view via smart button. Before migrating to v12 and doing the finalization and PR we wanted to speak out hear if anyone is working on similar approaches
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0
Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list
Environment: Odoo v13.0 in OCA Runbot
Steps to reproduce:
Create a new (draft) inspection;
Press "Aprove/Refuse" buttons without/before saving it.
Error:
Traceback:
TypeError: Cannot read property 'length' of undefined
at Class._render (http://3487614-13-0-ed26f2.runbot2.odoo-community.org/web/content/519-c2770f7/web.assets_backend.js:3208:4416)
at http://3487614-13-0-ed26f2.runbot2.odoo-community.org/web/content/519-c2770f7/web.assets_backend.js:821:1408
Hi,
Can someone please enable weblate translations for the fleet repository?
Some companies are required to complete inspection reports to ensure the ongoing safe operation of fleet vehicles. Typically these are performed every day prior to using a vehicle. Also known as Pre-Trip Inspection or Daily Vehicle Inspection Report (DVIR)
For example, common inspection points might include:
Since all organizations may have different requirements, a configurable list of inspection points (fleet.inspection.item
) will be made available.
vehicle_id
many2one to fleet.vehiclevehicle_odometer
floatdate_inspected
inspected_by
many2one to internal userinspection_line_ids
one2many to fleet.inspection.linenote
charinspection_item_id
many2one to fleet.inspection.itemresult
booleanname
textclass FleetVehicleLogFuel(models.Model):
_name = 'fleet.vehicle.log.fuel'
_description = 'Fuel log for vehicles'
_inherits = {'fleet.vehicle.cost': 'cost_id'}
@api.model
def default_get(self, default_fields):
res = super(FleetVehicleLogFuel, self).default_get(default_fields)
service = self.env.ref('fleet.type_service_refueling', raise_if_not_found=False)
res.update({
'date': fields.Date.context_today(self),
'cost_subtype_id': service and service.id or False,
'cost_type': 'fuel'
})
return res
liter = fields.Float()
price_per_liter = fields.Float()
@api.onchange('liter', 'price_per_liter', 'amount')
def _onchange_liter_price_amount(self):
# need to cast in float because the value receveid from web client maybe an integer (Javascript and JSON do not
# make any difference between 3.0 and 3). This cause a problem if you encode, for example, 2 liters at 1.5 per
# liter => total is computed as 3.0, then trigger an onchange that recomputes price_per_liter as 3/2=1 (instead
# of 3.0/2=1.5)
# If there is no change in the result, we return an empty dict to prevent an infinite loop due to the 3 intertwine
# onchange. And in order to verify that there is no change in the result, we have to limit the precision of the
# computation to 2 decimal
liter = float(self.liter)
price_per_liter = float(self.price_per_liter)
amount = float(self.amount)
if liter > 0 and price_per_liter > 0 and round(liter * price_per_liter, 2) != amount:
self.amount = round(liter * price_per_liter, 2)
elif amount > 0 and liter > 0 and round(amount / liter, 2) != price_per_liter:
self.price_per_liter = round(amount / liter, 2)
elif amount > 0 and price_per_liter > 0 and round(amount / price_per_liter, 2) != liter:
self.liter = round(amount / price_per_liter, 2)
To allow the use of the unit of measurement of the gallon, I believe that one way is to implement:
fleet.vehicle.log.fuel
Fields:
Method:
In any case, it would have to duplicate the fields and it would be interesting if the change in the value of liter or gallon influences each other.
But creating additional fields like gallon doesn't seem like the best solution.
Suggestions are welcome :)
cc @brian10048
Hi all,
I am just starting to get to know Odoo and have tested both the free Odoo apps in addition to testing the Community Edition v_15.
My task is to manage a taxi/cab fleet. I tested this with the standard Odoo fleet module. What I am missing here is a way to plan ahead. Some follow ups will be periodically, like f.ex. check tires (every day), check engine oil (every week), carwash, etc. Here it would be nice to have an email reminder to the assigned driver.
Other planned services are depending on milage. F.ex. every 10.000 km Service. (with a list of items to service)
The closest I have come in finding something similar is this:
https://apps.odoo.com/apps/modules/15.0/fleet_vehicle_maintenance_service/
or this:
https://apps.odoo.com/apps/modules/16.0/fleet_vehicle_inspection_management/#overview
Is there something similar available on the OCA store? A service provider informed me about the following:
Looking forward to your comments. Many thanks in advance.
Hello guys .. 2 files were merged by mistake due to my error commit.
Sorry :(
Any suggestions on how to clean properly?
Error:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 1342, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/main.py", line 1334, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 386, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 359, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/web/models/models.py", line 154, in read_progress_bar
for group in self._read_progress_bar(domain, group_by, progress_bar):
File "/opt/odoo/addons/mail/models/mail_activity.py", line 794, in _read_progress_bar
self.env.cr.execute(select_query, [tz] * 3 + where_params)
File "/opt/odoo/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: invalid reference to FROM-clause entry for table "fleet_vehicle_log_services"
LINE 17: ) AS "_last_activity_state" ON ("fleet_vehicle_l...
^
HINT: There is an entry for table "fleet_vehicle_log_services", but it cannot be referenced from this part of the query.
fleet_vehicle_service_kanban
Can't acess Vehicles Services Logs from parent menu Vehicles
Affected versions: [13.0]
Steps to reproduce the behavior:
Expected behavior
Vehicles Services Logs to be oppened
Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)
Environment: Odoo v11.0
Steps to reproduce:
Possible to open branch 11.0 to merge my fork fleet https://github.com/rosenvladimirov/fleet
Error:
No
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0
Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list
@ivantodorovich In version 14.0, the state field was created in the fleet.vehicle.log.services data model. Do you think it makes more sense to use this field instead of the stage_id field implemented by the fleet_vehicle_service_kanban module?
Migration PR: #35
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.