Giter Club home page Giter Club logo

fleet's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fleet's Issues

Module fleet_analytic_account

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

Odoo Client Error after click "Aprove/Refuse" buttons in inspection_line_ids

Environment: Odoo v13.0 in OCA Runbot

Steps to reproduce:

  1. Create a new (draft) inspection;

  2. 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

[14.0] runbot: requested access to the resource is denied.

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'.

Migration to version 15.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0

Modules to migrate

Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list

Fleet maintenance and service planner

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:

  • you can add either free software modules (GPL, AGPL or equiv) OR proprietary code (OPL-1) but not both.
  • please avoid fake modules based of forged copies, Odoo appstore is unsafe.
  • If you use OCA-only fleet management modules, either from OCA servers or Odoo appstore, you are safe.

Looking forward to your comments. Many thanks in advance.

[13.0] [fleet_vehicle_service_kanban] Can't acess Vehicles Services Logs from parent menu Vehicles

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.

Module

fleet_vehicle_service_kanban

Describe the bug

Can't acess Vehicles Services Logs from parent menu Vehicles

To Reproduce

Affected versions: [13.0]

Steps to reproduce the behavior:

  1. Open Fleet app
  2. Click on Vehicles main menu
  3. Click on Vehicles Services Logs btn

Expected behavior
Vehicles Services Logs to be oppened

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

Weblate translation

Hi,

Can someone please enable weblate translations for the fleet repository?

[14.0] fleet_vehicle_service_kanban: state or stage_id

@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?

https://github.com/odoo/odoo/blob/660a0cd8ad207ea53f3f62158b3849bbe2696eec/addons/fleet/models/fleet_vehicle_cost.py#L152

Migration PR: #35

[RFC] Proposal for new modules

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

  • Integrate the fleet.vehicle model with the agreement model (which can be of general use, for example to create an agreement for the use of the vehicle by employees)
  • Integration with the Maintenance module to allow the creation of maintenance plans for vehicles
  • Add types of inspections in the fleet.vehicle.inspection model (normal inspection, demobilization inspection and so on)

Modules that I intend to implement and make available at OCA

  • fleet_vehicle_agreement
  • fleet_vehicle_maintenance
  • fleet_vehicle_inspection_type

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.

cc @ivantodorovich @mamcode @sbidoul @mymage @brian10048

[RFC] Proposal for vechicle repair shop modules, maybe a new vertical repo

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

  • fleet_vehicle_ownership >> #127
  • fleet_vehicle_repair_shop_sale
  • fleet_vehicle_repair_shop_part_product

What do you think of the modules mentioned above?

cc @ivantodorovich @mamcode @sbidoul @mymage @brian10048 @marcelsavegnago @pedrobaeza

[RFC] fleet: fleet.vehicle.log.fuel using the US liquid gallon unit of measure

class 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:

  • gallon
  • price_per_gallon

Method:

  • _onchange_gallon_price_amount ()

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

[RFC] Fleet Inspection Report

Background

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:

  • Lights
  • Mirrors
  • Tires
  • Windows

Since all organizations may have different requirements, a configurable list of inspection points (fleet.inspection.item) will be made available.

Technical Specifications

  • fleet.inspection - New Model
    • vehicle_id many2one to fleet.vehicle
    • vehicle_odometer float
    • date_inspected
    • inspected_by many2one to internal user
    • inspection_line_ids one2many to fleet.inspection.line
    • note char
  • fleet.inspection.line - New Model
    • inspection_item_id many2one to fleet.inspection.item
    • result boolean
  • fleet.inspection.item - New Model
    • name text

Migration to version 16.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0

Modules to migrate

Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.