diff --git a/fleet_vehicle_configuration/README.rst b/fleet_vehicle_configuration/README.rst new file mode 100644 index 00000000..59e789df --- /dev/null +++ b/fleet_vehicle_configuration/README.rst @@ -0,0 +1,91 @@ +=========================== +Fleet Vehicle Configuration +=========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:81154da4012d2dd20a1a0474df6891235e85f7a4500f6664a490b5a817e1fd60 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/licence-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/17.0/fleet_vehicle_configuration + :alt: OCA/fleet +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/fleet-17-0/fleet-17-0-fleet_vehicle_configuration + :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=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module provides a way to define several vehicle internal +configuration. This basic one sets a max_seats field. + +This module does not handle variant of a same car (options, ...). + +Example: + +- car with 5 seats configuration or 7 seats configuration +- Same utility truck that can be configured as: + + - 3 seats + - 5 seats + - 11 seats + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Camptocamp + +Contributors +------------ + +- Camptocamp SA: + + - Damien Crier + - Camille Morand + +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. + +This module is part of the `OCA/fleet `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/fleet_vehicle_configuration/__init__.py b/fleet_vehicle_configuration/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/fleet_vehicle_configuration/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/fleet_vehicle_configuration/__manifest__.py b/fleet_vehicle_configuration/__manifest__.py new file mode 100644 index 00000000..13700751 --- /dev/null +++ b/fleet_vehicle_configuration/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2022 Camptocamp (https://www.camptocamp.com). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) + +{ + "name": "Fleet Vehicle Configuration", + "version": "17.0.1.0.0", + "depends": ["fleet"], + "author": "Camptocamp,Odoo Community Association (OCA)", + "summary": "add vehicle configuration capacity", + "website": "https://github.com/OCA/fleet", + "license": "AGPL-3", + "category": "Fleet", + "data": [ + "security/ir.model.access.csv", + "views/fleet_vehicle.xml", + "views/fleet_vehicle_configuration.xml", + ], + "installable": True, +} diff --git a/fleet_vehicle_configuration/i18n/es.po b/fleet_vehicle_configuration/i18n/es.po new file mode 100644 index 00000000..38a56d3c --- /dev/null +++ b/fleet_vehicle_configuration/i18n/es.po @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fleet_vehicle_configuration +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-08-03 21:10+0000\n" +"Last-Translator: Ivorra78 \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_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +#: model_terms:ir.ui.view,arch_db:fleet_vehicle_configuration.fleet_vehicle_view_form +msgid "Configurations" +msgstr "Configuraciones" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,help:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +msgid "Define several configurations for a vehicle" +msgstr "Definir varias configuraciones para un vehículo" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_date +msgid "Last Updated on" +msgstr "Última Actualización el" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle_configuration +msgid "Manage vehicle configuration" +msgstr "Gestionar la configuración del vehículo" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__max_seats +msgid "Max Seats" +msgstr "Número máximo de asientos" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__name +msgid "Name" +msgstr "Nombre" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__sequence +msgid "Sequence" +msgstr "Secuencia" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__vehicle_id +msgid "Vehicle" +msgstr "Vehículo" diff --git a/fleet_vehicle_configuration/i18n/fleet_vehicle_configuration.pot b/fleet_vehicle_configuration/i18n/fleet_vehicle_configuration.pot new file mode 100644 index 00000000..53607f44 --- /dev/null +++ b/fleet_vehicle_configuration/i18n/fleet_vehicle_configuration.pot @@ -0,0 +1,86 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fleet_vehicle_configuration +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +#: model_terms:ir.ui.view,arch_db:fleet_vehicle_configuration.fleet_vehicle_view_form +msgid "Configurations" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_uid +msgid "Created by" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_date +msgid "Created on" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,help:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +msgid "Define several configurations for a vehicle" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__display_name +msgid "Display Name" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__id +msgid "ID" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration____last_update +msgid "Last Modified on" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_date +msgid "Last Updated on" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle_configuration +msgid "Manage vehicle configuration" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__max_seats +msgid "Max Seats" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__name +msgid "Name" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__sequence +msgid "Sequence" +msgstr "" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__vehicle_id +msgid "Vehicle" +msgstr "" diff --git a/fleet_vehicle_configuration/i18n/it.po b/fleet_vehicle_configuration/i18n/it.po new file mode 100644 index 00000000..0b30ab8b --- /dev/null +++ b/fleet_vehicle_configuration/i18n/it.po @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fleet_vehicle_configuration +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-04-10 16:37+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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.14.1\n" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +#: model_terms:ir.ui.view,arch_db:fleet_vehicle_configuration.fleet_vehicle_view_form +msgid "Configurations" +msgstr "Configurazioni" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,help:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +msgid "Define several configurations for a vehicle" +msgstr "Definisce diverse configurazioni per un veicolo" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__id +msgid "ID" +msgstr "ID" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle_configuration +msgid "Manage vehicle configuration" +msgstr "Gestione configurazione veicolo" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__max_seats +msgid "Max Seats" +msgstr "Posti massimi" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__name +msgid "Name" +msgstr "Nome" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__sequence +msgid "Sequence" +msgstr "Sequenza" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__vehicle_id +msgid "Vehicle" +msgstr "Veicolo" diff --git a/fleet_vehicle_configuration/i18n/sv.po b/fleet_vehicle_configuration/i18n/sv.po new file mode 100644 index 00000000..f4a98a41 --- /dev/null +++ b/fleet_vehicle_configuration/i18n/sv.po @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * fleet_vehicle_configuration +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-02-23 12:34+0000\n" +"Last-Translator: jakobkrabbe \n" +"Language-Team: none\n" +"Language: sv\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_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +#: model_terms:ir.ui.view,arch_db:fleet_vehicle_configuration.fleet_vehicle_view_form +msgid "Configurations" +msgstr "Konfigurationer" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_uid +msgid "Created by" +msgstr "Skapad av" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__create_date +msgid "Created on" +msgstr "Skapad på" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,help:fleet_vehicle_configuration.field_fleet_vehicle__configuration_ids +msgid "Define several configurations for a vehicle" +msgstr "Definiera flera konfigurationer för ett fordon" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__display_name +msgid "Display Name" +msgstr "Visningsnamn" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__id +msgid "ID" +msgstr "ID" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration____last_update +msgid "Last Modified on" +msgstr "Senast ändrad den" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_uid +msgid "Last Updated by" +msgstr "Senast uppdaterad av" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__write_date +msgid "Last Updated on" +msgstr "Senast uppdaterad den" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle_configuration +msgid "Manage vehicle configuration" +msgstr "Hantera fordonskonfiguration" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__max_seats +msgid "Max Seats" +msgstr "Max säten" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__name +msgid "Name" +msgstr "Namn" + +#. module: fleet_vehicle_configuration +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__sequence +msgid "Sequence" +msgstr "Sekvens" + +#. module: fleet_vehicle_configuration +#: model:ir.model,name:fleet_vehicle_configuration.model_fleet_vehicle +#: model:ir.model.fields,field_description:fleet_vehicle_configuration.field_fleet_vehicle_configuration__vehicle_id +msgid "Vehicle" +msgstr "Fordon" diff --git a/fleet_vehicle_configuration/models/__init__.py b/fleet_vehicle_configuration/models/__init__.py new file mode 100644 index 00000000..a234d16c --- /dev/null +++ b/fleet_vehicle_configuration/models/__init__.py @@ -0,0 +1,2 @@ +from . import fleet_configuration +from . import fleet_vehicle diff --git a/fleet_vehicle_configuration/models/fleet_configuration.py b/fleet_vehicle_configuration/models/fleet_configuration.py new file mode 100644 index 00000000..ffef0883 --- /dev/null +++ b/fleet_vehicle_configuration/models/fleet_configuration.py @@ -0,0 +1,14 @@ +# Copyright 2022 Camptocamp (https://www.camptocamp.com). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class FleetVehicleConfiguration(models.Model): + _name = "fleet.vehicle.configuration" + _description = "Manage vehicle configuration" + + vehicle_id = fields.Many2one("fleet.vehicle", required=True, ondelete="cascade") + name = fields.Char(required=True) + max_seats = fields.Integer(default=10) + sequence = fields.Integer(default=10) diff --git a/fleet_vehicle_configuration/models/fleet_vehicle.py b/fleet_vehicle_configuration/models/fleet_vehicle.py new file mode 100644 index 00000000..2d9dbfdc --- /dev/null +++ b/fleet_vehicle_configuration/models/fleet_vehicle.py @@ -0,0 +1,15 @@ +# Copyright 2022 Camptocamp (https://www.camptocamp.com). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class FleetVehicle(models.Model): + _inherit = "fleet.vehicle" + + configuration_ids = fields.One2many( + "fleet.vehicle.configuration", + "vehicle_id", + string="Configurations", + help="Define several configurations for a vehicle", + ) diff --git a/fleet_vehicle_configuration/pyproject.toml b/fleet_vehicle_configuration/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/fleet_vehicle_configuration/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/fleet_vehicle_configuration/readme/CONTRIBUTORS.md b/fleet_vehicle_configuration/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..73fe891d --- /dev/null +++ b/fleet_vehicle_configuration/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Camptocamp SA: + - Damien Crier \<\> + - Camille Morand \<\> diff --git a/fleet_vehicle_configuration/readme/DESCRIPTION.md b/fleet_vehicle_configuration/readme/DESCRIPTION.md new file mode 100644 index 00000000..5186bc65 --- /dev/null +++ b/fleet_vehicle_configuration/readme/DESCRIPTION.md @@ -0,0 +1,12 @@ +This module provides a way to define several vehicle internal +configuration. This basic one sets a max_seats field. + +This module does not handle variant of a same car (options, ...). + +Example: + +- car with 5 seats configuration or 7 seats configuration +- Same utility truck that can be configured as: + - 3 seats + - 5 seats + - 11 seats diff --git a/fleet_vehicle_configuration/security/ir.model.access.csv b/fleet_vehicle_configuration/security/ir.model.access.csv new file mode 100644 index 00000000..0a760ffe --- /dev/null +++ b/fleet_vehicle_configuration/security/ir.model.access.csv @@ -0,0 +1,3 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_vehicle_configuration_manager","access.vehicle.configuration manager","model_fleet_vehicle_configuration","fleet.fleet_group_manager",1,1,1,1 +"access_vehicle_configuration_user","access.vehicle.configuration user","model_fleet_vehicle_configuration","fleet.fleet_group_user",1,0,0,0 diff --git a/fleet_vehicle_configuration/static/description/icon.png b/fleet_vehicle_configuration/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/fleet_vehicle_configuration/static/description/icon.png differ diff --git a/fleet_vehicle_configuration/static/description/index.html b/fleet_vehicle_configuration/static/description/index.html new file mode 100644 index 00000000..71202ec3 --- /dev/null +++ b/fleet_vehicle_configuration/static/description/index.html @@ -0,0 +1,439 @@ + + + + + +Fleet Vehicle Configuration + + + +
+

Fleet Vehicle Configuration

+ + +

Beta License: AGPL-3 OCA/fleet Translate me on Weblate Try me on Runboat

+

This module provides a way to define several vehicle internal +configuration. This basic one sets a max_seats field.

+

This module does not handle variant of a same car (options, …).

+

Example:

+
    +
  • car with 5 seats configuration or 7 seats configuration
  • +
  • Same utility truck that can be configured as:
      +
    • 3 seats
    • +
    • 5 seats
    • +
    • 11 seats
    • +
    +
  • +
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

This module is part of the OCA/fleet project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/fleet_vehicle_configuration/views/fleet_vehicle.xml b/fleet_vehicle_configuration/views/fleet_vehicle.xml new file mode 100644 index 00000000..4f203ab5 --- /dev/null +++ b/fleet_vehicle_configuration/views/fleet_vehicle.xml @@ -0,0 +1,17 @@ + + + + + fleet.vehicle.form + fleet.vehicle + + + + + + + + + + + diff --git a/fleet_vehicle_configuration/views/fleet_vehicle_configuration.xml b/fleet_vehicle_configuration/views/fleet_vehicle_configuration.xml new file mode 100644 index 00000000..5ae57ec7 --- /dev/null +++ b/fleet_vehicle_configuration/views/fleet_vehicle_configuration.xml @@ -0,0 +1,31 @@ + + + + + fleet.vehicle.configuration.form + fleet.vehicle.configuration + +
+ + + + + + +
+
+
+ + fleet.vehicle.configuration.tree + fleet.vehicle.configuration + + + + + + + + + + +
diff --git a/setup/.setuptools-odoo-make-default-ignore b/setup/.setuptools-odoo-make-default-ignore new file mode 100644 index 00000000..207e6153 --- /dev/null +++ b/setup/.setuptools-odoo-make-default-ignore @@ -0,0 +1,2 @@ +# addons listed in this file are ignored by +# setuptools-odoo-make-default (one addon per line) diff --git a/setup/README b/setup/README new file mode 100644 index 00000000..a63d633e --- /dev/null +++ b/setup/README @@ -0,0 +1,2 @@ +To learn more about this directory, please visit +https://pypi.python.org/pypi/setuptools-odoo diff --git a/setup/_metapackage/VERSION.txt b/setup/_metapackage/VERSION.txt new file mode 100644 index 00000000..f76341b7 --- /dev/null +++ b/setup/_metapackage/VERSION.txt @@ -0,0 +1 @@ +17.0.1.0 \ No newline at end of file diff --git a/setup/_metapackage/setup.py b/setup/_metapackage/setup.py new file mode 100644 index 00000000..b00f7865 --- /dev/null +++ b/setup/_metapackage/setup.py @@ -0,0 +1,18 @@ +import setuptools + +with open('VERSION.txt', 'r') as f: + version = f.read().strip() + +setuptools.setup( + name="odoo-addons-oca-fleet", + description="Meta package for oca-fleet Odoo addons", + version=version, + install_requires=[ + 'odoo-addon-fleet_vehicle_configuration>=17.0dev,<17.1dev', + ], + classifiers=[ + 'Programming Language :: Python', + 'Framework :: Odoo', + 'Framework :: Odoo :: 17.0', + ] +) diff --git a/setup/fleet_vehicle_configuration/odoo/addons/fleet_vehicle_configuration b/setup/fleet_vehicle_configuration/odoo/addons/fleet_vehicle_configuration new file mode 120000 index 00000000..936b029f --- /dev/null +++ b/setup/fleet_vehicle_configuration/odoo/addons/fleet_vehicle_configuration @@ -0,0 +1 @@ +../../../../fleet_vehicle_configuration \ No newline at end of file diff --git a/setup/fleet_vehicle_configuration/setup.py b/setup/fleet_vehicle_configuration/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/fleet_vehicle_configuration/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)