Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3d61235
[ADD] add fleet_vehicle_stock
marcelsavegnago Apr 3, 2021
e957db4
[UPD] README.rst
OCA-git-bot Apr 13, 2021
d907ae2
[UPD] Update fleet_vehicle_stock.pot
oca-travis Apr 13, 2021
4bfaa72
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Apr 27, 2021
17b0410
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Apr 27, 2021
836cf5a
[IMP] fleet_vehicle_stock: black, isort, prettier
marcelsavegnago Jan 27, 2022
65acabb
[MIG] fleet_vehicle_stock: Migration to 13.0
marcelsavegnago Jan 27, 2022
e1d256b
[RFC] fleet_vehicle_stock: test refactor
marcelsavegnago Aug 17, 2022
1e4d344
[UPD] Update fleet_vehicle_stock.pot
oca-travis Aug 18, 2022
2cab293
[UPD] README.rst
OCA-git-bot Aug 18, 2022
8294850
[IMP] fleet_vehicle_stock: black, isort, prettier
marcelsavegnago Aug 18, 2022
25ab653
[MIG] fleet_vehicle_stock: Migration to 14.0
marcelsavegnago Aug 18, 2022
21f9771
[UPD] Update fleet_vehicle_stock.pot
oca-travis Aug 30, 2022
ee0dfef
[UPD] README.rst
OCA-git-bot Aug 30, 2022
472c61c
[MIG] fleet_vehicle_stock: Migration to 15.0
rodrigonevest Mar 29, 2023
9218120
[UPD] Update fleet_vehicle_stock.pot
Apr 4, 2023
d86832c
[UPD] README.rst
OCA-git-bot Apr 4, 2023
6ad2478
Update translation files
weblate Apr 5, 2023
8637d86
[MIG] fleet_vehicle_stock: Migration to 16.0
kaynnan Apr 6, 2023
5d69044
[IMP] fleet_vehicle_stock: add tests
kaynnan Apr 6, 2023
f37258b
[IMP] fleet_vehicle_stock: add contributing name
kaynnan Apr 6, 2023
f3437e3
[UPD] Update fleet_vehicle_stock.pot
Apr 6, 2023
1f3072f
[UPD] README.rst
OCA-git-bot Apr 6, 2023
70d770f
Update translation files
weblate Apr 6, 2023
10fa648
Added translation using Weblate (Italian)
mymage Apr 17, 2023
3e420b7
Translated using Weblate (Italian)
mymage Apr 17, 2023
05f00c1
Translated using Weblate (Italian)
mymage Apr 18, 2023
e442a08
Translated using Weblate (Italian)
francesco-ooops Jul 17, 2023
d088c0e
Added translation using Weblate (Spanish)
Ivorra78 Aug 3, 2023
004cd7f
Translated using Weblate (Spanish)
Ivorra78 Aug 3, 2023
7fa8aaa
[UPD] README.rst
OCA-git-bot Sep 3, 2023
614e768
Update translation files
weblate Oct 9, 2023
8ebfdcc
Translated using Weblate (Italian)
mymage Nov 2, 2023
15941bb
Translated using Weblate (Portuguese (Brazil))
May 17, 2024
b98118f
Translated using Weblate (Italian)
mymage Aug 22, 2024
f45db06
Added translation using Weblate (Dutch)
bosd Sep 8, 2025
f1e9aa4
[IMP] fleet_vehicle_stock: pre-commit stuff
JulioFabio Nov 24, 2025
4a11b4a
[MIG] fleet_vehicle_stock: Migration to 18.0
JulioFabio Nov 25, 2025
5a0899c
[IMP] fleet_vehicle_stock: pre-commit auto fixes
stferraro Jan 30, 2026
5e16943
[MIG] fleet_vehicle_stock: Migration to 19.0
stferraro Jan 30, 2026
abb199c
[FIX] remove and change pylintrc
stferraro Feb 5, 2026
2eb24c6
[FIX] changes minimal pylintrc failed pre-commit
stferraro Feb 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .pylintrc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this change here?

Copy link
Author

@stferraro stferraro Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No ! with minimal pylintrc failed pre-commit

Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,11 @@ enable=anomalous-backslash-in-string,
no-write-in-compute,
# messages that do not cause the lint step to fail
consider-merging-classes-inherited,
create-user-wo-reset-password,
dangerous-filter-wo-user,
deprecated-module,
file-not-used,
invalid-commit,
missing-manifest-dependency,
missing-newline-extrafiles,
missing-readme,
no-utf8-coding-comment,
odoo-addons-relative-import,
old-api7-method-defined,
redefined-builtin,
too-complex,
unnecessary-utf8-coding-comment,
manifest-external-assets


Expand Down
1 change: 0 additions & 1 deletion .pylintrc-mandatory
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[MASTER]
load-plugins=pylint_odoo
score=n
Expand Down
128 changes: 128 additions & 0 deletions fleet_vehicle_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===================
Fleet Vehicle Stock
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:52066aeb1aedb8fb23bdebae9ebcd9e48527a0712bae5ba48563be41d5668f2a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffleet-lightgray.png?logo=github
:target: https://github.com/OCA/fleet/tree/19.0/fleet_vehicle_stock
:alt: OCA/fleet
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/fleet-19-0/fleet-19-0-fleet_vehicle_stock
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/fleet&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module is an add-on for the Fleet application in Odoo. It allows
you to track your Fleet Vehicles in stock moves.

**Table of contents**

.. contents::
:local:

Configuration
=============

Products can be automatically converted into Fleet Vehicle. This is only
available only for products tracked by serial number. This needs to be
enabled both on Operation Types and Products. For example, we may want
to create the Fleet Vehicle on Delivery, or on Receipts.

To enable on Products:

- Go to Inventory > Master Data > Products
- Open the Product form, Inventory tab
- On the "Traceability" section, make sure "Tracking" is set to "By
Unique Serial Number"
- Enable the "Creates Fleet Vehicle" checkbox
- Open Fleet tab
- Select Fleet Vehicle Model

To enable on Operation Types:

- Go to Inventory > Configuration > Operation Types
- Select the intended Operation Type ("Receipts" for example)
- On the "Traceability" section, enable the "Create Fleet Vehicle"
checkbox

Usage
=====

A completed stock move for a properly configured Product on a configured
stock Operation Type will automatically create a fleet vehicle.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/fleet/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/fleet/issues/new?body=module:%20fleet_vehicle_stock%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Escodoo

Contributors
------------

- Marcel Savegnago <marcel.savegnago@escodoo.com.br>
- Kaynnan Lemes <kaynnan.lemes@escodoo.com.br>

Other credits
-------------

The development of this module has been financially supported by:

- Escodoo - https://www.escodoo.com.br

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px
:target: https://github.com/marcelsavegnago
:alt: marcelsavegnago

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-marcelsavegnago|

This module is part of the `OCA/fleet <https://github.com/OCA/fleet/tree/19.0/fleet_vehicle_stock>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions fleet_vehicle_stock/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions fleet_vehicle_stock/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2021 - TODAY, Escodoo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


{
"name": "Fleet Vehicle Stock",
"summary": """
This module is an add-on for the Fleet application in Odoo. It allows
you to track your Fleet Vehicles in stock moves.""",
"version": "19.0.1.0.0",
"license": "AGPL-3",
"author": "Escodoo,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/fleet",
"category": "Human Resources/Fleet",
"maintainers": ["marcelsavegnago"],
"depends": ["stock", "fleet"],
"data": [
"views/stock_production_lot.xml",
"views/stock_picking_type.xml",
"views/product_template.xml",
"views/product_product.xml",
"views/fleet_vehicle.xml",
"views/fleet_vehicle_model.xml",
],
"demo": [],
}
131 changes: 131 additions & 0 deletions fleet_vehicle_stock/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fleet_vehicle_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-03 21:10+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_stock_picking_type__create_fleet_vehicle
msgid "Create Fleet Vehicle"
msgstr "Crear flota de vehículos"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_product_product__create_fleet_vehicle
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_product_template__create_fleet_vehicle
msgid "Creates a Fleet Vehicle"
msgstr "Crear una flota de vehículos"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_fleet_vehicle__current_stock_location_id
msgid "Current Inventory Location"
msgstr "Ubicación actual del inventario"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_fleet_vehicle_model__product_id
msgid "Default Product"
msgstr "Producto por defecto"

#. module: fleet_vehicle_stock
#: model_terms:ir.ui.view,arch_db:fleet_vehicle_stock.product_template_form_view
#: model_terms:ir.ui.view,arch_db:fleet_vehicle_stock.product_variant_easy_edit_view
msgid "Fleet"
msgstr "Flota"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_stock_lot__fleet_vehicle_id
msgid "Fleet Vehicle"
msgstr "Vehículo de Flota"

#. module: fleet_vehicle_stock
#: model_terms:ir.ui.view,arch_db:fleet_vehicle_stock.fleet_vehicle_form_view
#: model_terms:ir.ui.view,arch_db:fleet_vehicle_stock.fleet_vehicle_model_form_view
msgid "Inventory"
msgstr "Inventario"

#. module: fleet_vehicle_stock
#: model:ir.model.constraint,message:fleet_vehicle_stock.constraint_product_template_non_product_tracking_for_vehicle_model
msgid ""
"It is mandatory to configure the traceability by serial number in order to "
"be able to configure the vehicle model of the fleet in this product."
msgstr ""
"Es obligatorio configurar la trazabilidad por número de serie para poder "
"configurar el modelo de vehículo de la flota en este producto."

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_stock_lot
msgid "Lot/Serial"
msgstr "Lote/Serie"

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_fleet_vehicle_model
msgid "Model of a vehicle"
msgstr "Modelo de vehículo"

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_stock_picking_type
msgid "Picking Type"
msgstr "Tipo de recogida"

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_product_template
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_fleet_vehicle__product_id
msgid "Product"
msgstr "Producto"

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_product_product
msgid "Product Variant"
msgstr "Variante de Producto"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,help:fleet_vehicle_stock.field_stock_picking_type__create_fleet_vehicle
msgid ""
"Products with the \"Creates a Fleet Vehicle\" flagwill automatically be "
"converted to an Fleet Vehicle."
msgstr ""
"Los productos con la bandera \"Crea un Vehículo de Flota\" se convertirán "
"automáticamente en un Vehículo de Flota."

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_fleet_vehicle__lot_id
msgid "Serial #"
msgstr "Número de serie #"

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de existencias"

#. module: fleet_vehicle_stock
#. odoo-python
#: code:addons/fleet_vehicle_stock/models/stock_move.py:0
#, python-format
msgid ""
"The product '%s' is configure to create a fleet vehicle but vehicle model is "
"not configured in the product."
msgstr ""
"El producto '%s' está configurado para crear un vehículo de flota pero el "
"modelo de vehículo no está configurado en el producto."

#. module: fleet_vehicle_stock
#: model:ir.model,name:fleet_vehicle_stock.model_fleet_vehicle
msgid "Vehicle"
msgstr "Vehículo"

#. module: fleet_vehicle_stock
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_product_product__fleet_vehicle_model_id
#: model:ir.model.fields,field_description:fleet_vehicle_stock.field_product_template__fleet_vehicle_model_id
msgid "Vehicle Model"
msgstr "Modelo del vehículo"
Loading