diff --git a/base_territory/README.rst b/base_territory/README.rst new file mode 100644 index 0000000000..264b009209 --- /dev/null +++ b/base_territory/README.rst @@ -0,0 +1,106 @@ +============== +Base Territory +============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:09071d17d5056c5ee697dae92dc0974752c30247936f6c07c0c028731f350473 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |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%2Ffield--service-lightgray.png?logo=github + :target: https://github.com/OCA/field-service/tree/18.0/base_territory + :alt: OCA/field-service +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/field-service-18-0/field-service-18-0-base_territory + :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/field-service&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to define territories, branches, districts and +regions to be used for Field Service operations or Sales. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +1. Go to Settings > Users & Companies +2. Define your territories, branches, districts and regions with their + respective manager. + +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 +------- + +* Open Source Integrators + +Contributors +------------ + +- Wolfgang Hall +- Maxime Chambreuil +- Serpent Consulting Services Pvt. Ltd. + +Other credits +------------- + +The development of this module has been financially supported by: + +- Open Source Integrators + +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-max3903| image:: https://github.com/max3903.png?size=40px + :target: https://github.com/max3903 + :alt: max3903 +.. |maintainer-brian10048| image:: https://github.com/brian10048.png?size=40px + :target: https://github.com/brian10048 + :alt: brian10048 + +Current `maintainers `__: + +|maintainer-max3903| |maintainer-brian10048| + +This module is part of the `OCA/field-service `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_territory/__init__.py b/base_territory/__init__.py new file mode 100644 index 0000000000..69f7babdfb --- /dev/null +++ b/base_territory/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/base_territory/__manifest__.py b/base_territory/__manifest__.py new file mode 100644 index 0000000000..b36d8bb8df --- /dev/null +++ b/base_territory/__manifest__.py @@ -0,0 +1,27 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Base Territory", + "summary": "This module allows you to define territories, branches," + " districts and regions to be used for Field Service operations or Sales.", + "version": "18.0.1.0.0", + "category": "Hidden", + "author": "Open Source Integrators, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/field-service", + "depends": ["base"], + "data": [ + "security/ir.model.access.csv", + "views/res_territory.xml", + "views/res_branch.xml", + "views/res_district.xml", + "views/res_region.xml", + "views/res_country.xml", + "views/menu.xml", + ], + "demo": ["demo/base_territory_demo.xml"], + "application": True, + "license": "AGPL-3", + "development_status": "Production/Stable", + "maintainers": ["max3903", "brian10048"], +} diff --git a/base_territory/demo/base_territory_demo.xml b/base_territory/demo/base_territory_demo.xml new file mode 100644 index 0000000000..336e0161b0 --- /dev/null +++ b/base_territory/demo/base_territory_demo.xml @@ -0,0 +1,17 @@ + + + Test Region + + + Test District + + + + Test Branch + + + + Test Territory + + + diff --git a/base_territory/i18n/base_territory.pot b/base_territory/i18n/base_territory.pot new file mode 100644 index 0000000000..158ebe2c81 --- /dev/null +++ b/base_territory/i18n/base_territory.pot @@ -0,0 +1,188 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_territory +# +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: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__branch_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_branch_form_view +msgid "Branch" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__partner_id +msgid "Branch Manager" +msgstr "" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_branch +#: model:ir.ui.menu,name:base_territory.menu_res_branch +msgid "Branches" +msgstr "" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_country +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__country +msgid "Country" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__country_ids +msgid "Country Names" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_uid +msgid "Created by" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_date +msgid "Created on" +msgstr "" + +#. module: base_territory +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Definition" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__description +#: model:ir.model.fields,field_description:base_territory.field_res_district__description +#: model:ir.model.fields,field_description:base_territory.field_res_region__description +#: model:ir.model.fields,field_description:base_territory.field_res_territory__description +msgid "Description" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_district__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_region__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__display_name +msgid "Display Name" +msgstr "" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_district +#: model:ir.model.fields,field_description:base_territory.field_res_branch__district_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__district_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_district_form_view +msgid "District" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_district__partner_id +msgid "District Manager" +msgstr "" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_district +#: model:ir.ui.menu,name:base_territory.menu_res_district +msgid "Districts" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__id +#: model:ir.model.fields,field_description:base_territory.field_res_district__id +#: model:ir.model.fields,field_description:base_territory.field_res_region__id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__id +msgid "ID" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_date +msgid "Last Updated on" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__name +#: model:ir.model.fields,field_description:base_territory.field_res_district__name +#: model:ir.model.fields,field_description:base_territory.field_res_region__name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__name +msgid "Name" +msgstr "" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_district__region_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__region_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_region_form_view +msgid "Region" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_region__partner_id +msgid "Region Manager" +msgstr "" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_country__region_ids +#: model:ir.ui.menu,name:base_territory.menu_res_region +msgid "Regions" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__state +msgid "State" +msgstr "" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_territory +#: model:ir.ui.menu,name:base_territory.menu_res_territory +msgid "Territories" +msgstr "" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_territory +#: model:ir.model.fields,field_description:base_territory.field_res_country__territory_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Territory" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__type +msgid "Type" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__zip_codes +msgid "ZIP Codes" +msgstr "" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__zip +msgid "Zip" +msgstr "" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_branch +msgid "branch" +msgstr "" diff --git a/base_territory/i18n/es.po b/base_territory/i18n/es.po new file mode 100644 index 0000000000..eed9a9728b --- /dev/null +++ b/base_territory/i18n/es.po @@ -0,0 +1,194 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_territory +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-07-22 21:08+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: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__branch_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_branch_form_view +msgid "Branch" +msgstr "Sucursal" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__partner_id +msgid "Branch Manager" +msgstr "Gerente de Sucursal" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_branch +#: model:ir.ui.menu,name:base_territory.menu_res_branch +msgid "Branches" +msgstr "Sucursales" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_country +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__country +msgid "Country" +msgstr "País" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__country_ids +msgid "Country Names" +msgstr "Nombres de países" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: base_territory +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Definition" +msgstr "Definición" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__description +#: model:ir.model.fields,field_description:base_territory.field_res_district__description +#: model:ir.model.fields,field_description:base_territory.field_res_region__description +#: model:ir.model.fields,field_description:base_territory.field_res_territory__description +msgid "Description" +msgstr "descripción" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_district__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_region__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__display_name +msgid "Display Name" +msgstr "nombre a mostrar" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_district +#: model:ir.model.fields,field_description:base_territory.field_res_branch__district_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__district_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_district_form_view +msgid "District" +msgstr "Distrito" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_district__partner_id +msgid "District Manager" +msgstr "Gerente de Distrito" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_district +#: model:ir.ui.menu,name:base_territory.menu_res_district +msgid "Districts" +msgstr "Distritos" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__id +#: model:ir.model.fields,field_description:base_territory.field_res_district__id +#: model:ir.model.fields,field_description:base_territory.field_res_region__id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_uid +msgid "Last Updated by" +msgstr "actualizado por última vez por" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_date +msgid "Last Updated on" +msgstr "Última Actualización el" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__name +#: model:ir.model.fields,field_description:base_territory.field_res_district__name +#: model:ir.model.fields,field_description:base_territory.field_res_region__name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__name +msgid "Name" +msgstr "Nombre" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_district__region_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__region_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_region_form_view +msgid "Region" +msgstr "Región" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_region__partner_id +msgid "Region Manager" +msgstr "Gerente de Región" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_country__region_ids +#: model:ir.ui.menu,name:base_territory.menu_res_region +msgid "Regions" +msgstr "Regiones" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__state +msgid "State" +msgstr "estado" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_territory +#: model:ir.ui.menu,name:base_territory.menu_res_territory +msgid "Territories" +msgstr "Territorios" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_territory +#: model:ir.model.fields,field_description:base_territory.field_res_country__territory_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Territory" +msgstr "Territorio" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__type +msgid "Type" +msgstr "tipo" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__zip_codes +msgid "ZIP Codes" +msgstr "Códigos postales" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__zip +msgid "Zip" +msgstr "Postal" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_branch +msgid "branch" +msgstr "sucursal" + +#~ msgid "Last Modified on" +#~ msgstr "modificado por última vez el" diff --git a/base_territory/i18n/es_AR.po b/base_territory/i18n/es_AR.po new file mode 100644 index 0000000000..5efbeddfba --- /dev/null +++ b/base_territory/i18n/es_AR.po @@ -0,0 +1,194 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_territory +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-03-31 04:46+0000\n" +"Last-Translator: Ignacio Buioli \n" +"Language-Team: none\n" +"Language: es_AR\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.3.2\n" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__branch_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_branch_form_view +msgid "Branch" +msgstr "Sucursal" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__partner_id +msgid "Branch Manager" +msgstr "Gerente de Sucursal" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_branch +#: model:ir.ui.menu,name:base_territory.menu_res_branch +msgid "Branches" +msgstr "Sucursales" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_country +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__country +msgid "Country" +msgstr "País" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__country_ids +msgid "Country Names" +msgstr "Nombres del Pais" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: base_territory +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Definition" +msgstr "Definición" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__description +#: model:ir.model.fields,field_description:base_territory.field_res_district__description +#: model:ir.model.fields,field_description:base_territory.field_res_region__description +#: model:ir.model.fields,field_description:base_territory.field_res_territory__description +msgid "Description" +msgstr "Descripción" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_district__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_region__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_district +#: model:ir.model.fields,field_description:base_territory.field_res_branch__district_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__district_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_district_form_view +msgid "District" +msgstr "Distrito" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_district__partner_id +msgid "District Manager" +msgstr "Gerente de Distrito" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_district +#: model:ir.ui.menu,name:base_territory.menu_res_district +msgid "Districts" +msgstr "Distritos" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__id +#: model:ir.model.fields,field_description:base_territory.field_res_district__id +#: model:ir.model.fields,field_description:base_territory.field_res_region__id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__id +msgid "ID" +msgstr "ID" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_uid +msgid "Last Updated by" +msgstr "Última Actualización por" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_date +msgid "Last Updated on" +msgstr "Última Actualización en" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__name +#: model:ir.model.fields,field_description:base_territory.field_res_district__name +#: model:ir.model.fields,field_description:base_territory.field_res_region__name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__name +msgid "Name" +msgstr "Nombre" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_district__region_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__region_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_region_form_view +msgid "Region" +msgstr "Región" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_region__partner_id +msgid "Region Manager" +msgstr "Gerente de Región" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_country__region_ids +#: model:ir.ui.menu,name:base_territory.menu_res_region +msgid "Regions" +msgstr "Regiones" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__state +msgid "State" +msgstr "Estado" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_territory +#: model:ir.ui.menu,name:base_territory.menu_res_territory +msgid "Territories" +msgstr "Territorios" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_territory +#: model:ir.model.fields,field_description:base_territory.field_res_country__territory_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Territory" +msgstr "Territorio" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__type +msgid "Type" +msgstr "Tipo" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__zip_codes +msgid "ZIP Codes" +msgstr "Códigos Postales" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__zip +msgid "Zip" +msgstr "Código Postal" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_branch +msgid "branch" +msgstr "sucursal" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificación el" diff --git a/base_territory/i18n/it.po b/base_territory/i18n/it.po new file mode 100644 index 0000000000..8974d20837 --- /dev/null +++ b/base_territory/i18n/it.po @@ -0,0 +1,194 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_territory +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-09-26 20:34+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.3.2\n" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__branch_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_branch_form_view +msgid "Branch" +msgstr "Filiale" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__partner_id +msgid "Branch Manager" +msgstr "Responsabile filiale" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_branch +#: model:ir.ui.menu,name:base_territory.menu_res_branch +msgid "Branches" +msgstr "Filiali" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_country +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__country +msgid "Country" +msgstr "Nazione" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__country_ids +msgid "Country Names" +msgstr "Nomi nazioni" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: base_territory +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Definition" +msgstr "Definizione" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__description +#: model:ir.model.fields,field_description:base_territory.field_res_district__description +#: model:ir.model.fields,field_description:base_territory.field_res_region__description +#: model:ir.model.fields,field_description:base_territory.field_res_territory__description +msgid "Description" +msgstr "Descrizione" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_district__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_region__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_district +#: model:ir.model.fields,field_description:base_territory.field_res_branch__district_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__district_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_district_form_view +msgid "District" +msgstr "Zona" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_district__partner_id +msgid "District Manager" +msgstr "Responsabile di zona" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_district +#: model:ir.ui.menu,name:base_territory.menu_res_district +msgid "Districts" +msgstr "Zone" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__id +#: model:ir.model.fields,field_description:base_territory.field_res_district__id +#: model:ir.model.fields,field_description:base_territory.field_res_region__id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__id +msgid "ID" +msgstr "ID" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__name +#: model:ir.model.fields,field_description:base_territory.field_res_district__name +#: model:ir.model.fields,field_description:base_territory.field_res_region__name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__name +msgid "Name" +msgstr "Nome" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_district__region_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__region_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_region_form_view +msgid "Region" +msgstr "Regione" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_region__partner_id +msgid "Region Manager" +msgstr "Responsabile regionale" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_country__region_ids +#: model:ir.ui.menu,name:base_territory.menu_res_region +msgid "Regions" +msgstr "Regioni" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__state +msgid "State" +msgstr "Stato" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_territory +#: model:ir.ui.menu,name:base_territory.menu_res_territory +msgid "Territories" +msgstr "Territori" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_territory +#: model:ir.model.fields,field_description:base_territory.field_res_country__territory_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Territory" +msgstr "Territorio" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__type +msgid "Type" +msgstr "Tipo" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__zip_codes +msgid "ZIP Codes" +msgstr "Codici CAP" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__zip +msgid "Zip" +msgstr "CAP" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_branch +msgid "branch" +msgstr "filiale" + +#~ msgid "Last Modified on" +#~ msgstr "Ultima modifica il" diff --git a/base_territory/i18n/pt_BR.po b/base_territory/i18n/pt_BR.po new file mode 100644 index 0000000000..1692336b39 --- /dev/null +++ b/base_territory/i18n/pt_BR.po @@ -0,0 +1,194 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_territory +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-06-08 21:48+0000\n" +"Last-Translator: Eder Brito \n" +"Language-Team: none\n" +"Language: pt_BR\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.3.2\n" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__branch_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_branch_form_view +msgid "Branch" +msgstr "Filial" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__partner_id +msgid "Branch Manager" +msgstr "Gerente da Filial" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_branch +#: model:ir.ui.menu,name:base_territory.menu_res_branch +msgid "Branches" +msgstr "Filiais" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_country +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__country +msgid "Country" +msgstr "País" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__country_ids +msgid "Country Names" +msgstr "Nomes do País" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_uid +msgid "Created by" +msgstr "Criado por" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_date +msgid "Created on" +msgstr "Criado em" + +#. module: base_territory +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Definition" +msgstr "Definição" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__description +#: model:ir.model.fields,field_description:base_territory.field_res_district__description +#: model:ir.model.fields,field_description:base_territory.field_res_region__description +#: model:ir.model.fields,field_description:base_territory.field_res_territory__description +msgid "Description" +msgstr "Descrição" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_district__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_region__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__display_name +msgid "Display Name" +msgstr "Nome de Exibição" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_district +#: model:ir.model.fields,field_description:base_territory.field_res_branch__district_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__district_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_district_form_view +msgid "District" +msgstr "Bairro" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_district__partner_id +msgid "District Manager" +msgstr "Gerente do Bairro" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_district +#: model:ir.ui.menu,name:base_territory.menu_res_district +msgid "Districts" +msgstr "Bairros" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__id +#: model:ir.model.fields,field_description:base_territory.field_res_district__id +#: model:ir.model.fields,field_description:base_territory.field_res_region__id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__id +msgid "ID" +msgstr "ID" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_uid +msgid "Last Updated by" +msgstr "Última Atualização por" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_date +msgid "Last Updated on" +msgstr "Última Atualização em" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__name +#: model:ir.model.fields,field_description:base_territory.field_res_district__name +#: model:ir.model.fields,field_description:base_territory.field_res_region__name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__name +msgid "Name" +msgstr "Nome" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_district__region_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__region_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_region_form_view +msgid "Region" +msgstr "Região" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_region__partner_id +msgid "Region Manager" +msgstr "Gerente da Região" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_country__region_ids +#: model:ir.ui.menu,name:base_territory.menu_res_region +msgid "Regions" +msgstr "Regiões" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__state +msgid "State" +msgstr "Estado" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_territory +#: model:ir.ui.menu,name:base_territory.menu_res_territory +msgid "Territories" +msgstr "Territórios" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_territory +#: model:ir.model.fields,field_description:base_territory.field_res_country__territory_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Territory" +msgstr "Território" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__type +msgid "Type" +msgstr "Tipo" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__zip_codes +msgid "ZIP Codes" +msgstr "Códigos de CEP" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__zip +msgid "Zip" +msgstr "CEP" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_branch +msgid "branch" +msgstr "filial" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificação em" diff --git a/base_territory/i18n/tr.po b/base_territory/i18n/tr.po new file mode 100644 index 0000000000..d95bb8e729 --- /dev/null +++ b/base_territory/i18n/tr.po @@ -0,0 +1,194 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_territory +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-07-09 18:49+0000\n" +"Last-Translator: Ediz Duman \n" +"Language-Team: none\n" +"Language: tr\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.3.2\n" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__branch_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_branch_form_view +msgid "Branch" +msgstr "Şube" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__partner_id +msgid "Branch Manager" +msgstr "Şube Müdürü" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_branch +#: model:ir.ui.menu,name:base_territory.menu_res_branch +msgid "Branches" +msgstr "Şubeler" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_country +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__country +msgid "Country" +msgstr "Ülke" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__country_ids +msgid "Country Names" +msgstr "Ülke Adları" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_uid +msgid "Created by" +msgstr "Oluşturan" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__create_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__create_date +msgid "Created on" +msgstr "Oluşturulma" + +#. module: base_territory +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Definition" +msgstr "Tanım" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__description +#: model:ir.model.fields,field_description:base_territory.field_res_district__description +#: model:ir.model.fields,field_description:base_territory.field_res_region__description +#: model:ir.model.fields,field_description:base_territory.field_res_territory__description +msgid "Description" +msgstr "Açıklama" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_district__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_region__display_name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__display_name +msgid "Display Name" +msgstr "Görünüm Adı" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_district +#: model:ir.model.fields,field_description:base_territory.field_res_branch__district_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__district_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_district_form_view +msgid "District" +msgstr "İlçe" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_district__partner_id +msgid "District Manager" +msgstr "İlçe Müdürü" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_district +#: model:ir.ui.menu,name:base_territory.menu_res_district +msgid "Districts" +msgstr "İlçeler" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__id +#: model:ir.model.fields,field_description:base_territory.field_res_district__id +#: model:ir.model.fields,field_description:base_territory.field_res_region__id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__id +msgid "ID" +msgstr "ID" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_uid +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_uid +msgid "Last Updated by" +msgstr "Son Güncelleyen" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_district__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_region__write_date +#: model:ir.model.fields,field_description:base_territory.field_res_territory__write_date +msgid "Last Updated on" +msgstr "Son Güncellenme" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_branch__name +#: model:ir.model.fields,field_description:base_territory.field_res_district__name +#: model:ir.model.fields,field_description:base_territory.field_res_region__name +#: model:ir.model.fields,field_description:base_territory.field_res_territory__name +msgid "Name" +msgstr "Adı" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_district__region_id +#: model:ir.model.fields,field_description:base_territory.field_res_territory__region_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_region_form_view +msgid "Region" +msgstr "Bölge" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_region__partner_id +msgid "Region Manager" +msgstr "Bölge Müdürü" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_region +#: model:ir.model.fields,field_description:base_territory.field_res_country__region_ids +#: model:ir.ui.menu,name:base_territory.menu_res_region +msgid "Regions" +msgstr "Bölgeler" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__state +msgid "State" +msgstr "İl" + +#. module: base_territory +#: model:ir.actions.act_window,name:base_territory.action_res_territory +#: model:ir.ui.menu,name:base_territory.menu_res_territory +msgid "Territories" +msgstr "Sahalar" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_territory +#: model:ir.model.fields,field_description:base_territory.field_res_country__territory_id +#: model_terms:ir.ui.view,arch_db:base_territory.res_territory_form_view +msgid "Territory" +msgstr "Saha" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__type +msgid "Type" +msgstr "Tür" + +#. module: base_territory +#: model:ir.model.fields,field_description:base_territory.field_res_territory__zip_codes +msgid "ZIP Codes" +msgstr "Posta Kodları" + +#. module: base_territory +#: model:ir.model.fields.selection,name:base_territory.selection__res_territory__type__zip +msgid "Zip" +msgstr "Pk" + +#. module: base_territory +#: model:ir.model,name:base_territory.model_res_branch +msgid "branch" +msgstr "şube" + +#~ msgid "Last Modified on" +#~ msgstr "Son Düzenlenme" diff --git a/base_territory/models/__init__.py b/base_territory/models/__init__.py new file mode 100644 index 0000000000..9882e9b010 --- /dev/null +++ b/base_territory/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import res_region, res_district, res_branch, res_territory, res_country diff --git a/base_territory/models/res_branch.py b/base_territory/models/res_branch.py new file mode 100644 index 0000000000..c747d69cac --- /dev/null +++ b/base_territory/models/res_branch.py @@ -0,0 +1,14 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResBranch(models.Model): + _name = "res.branch" + _description = "branch" + + name = fields.Char(required=True) + partner_id = fields.Many2one("res.partner", string="Branch Manager") + district_id = fields.Many2one("res.district", string="District") + description = fields.Char() diff --git a/base_territory/models/res_country.py b/base_territory/models/res_country.py new file mode 100644 index 0000000000..0d3eeb57a2 --- /dev/null +++ b/base_territory/models/res_country.py @@ -0,0 +1,16 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class ResCountry(models.Model): + _inherit = "res.country" + + territory_id = fields.Many2one("res.territory", string="Territory") + region_ids = fields.Many2many( + "res.region", + "res_country_region_rel", + "country_id", + "region_id", + string="Regions", + ) diff --git a/base_territory/models/res_district.py b/base_territory/models/res_district.py new file mode 100644 index 0000000000..f8b9bc4676 --- /dev/null +++ b/base_territory/models/res_district.py @@ -0,0 +1,14 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResDistrict(models.Model): + _name = "res.district" + _description = "District" + + name = fields.Char(required=True) + region_id = fields.Many2one("res.region", string="Region") + partner_id = fields.Many2one("res.partner", string="District Manager") + description = fields.Char() diff --git a/base_territory/models/res_region.py b/base_territory/models/res_region.py new file mode 100644 index 0000000000..46e945e7bc --- /dev/null +++ b/base_territory/models/res_region.py @@ -0,0 +1,13 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResRegion(models.Model): + _name = "res.region" + _description = "Region" + + name = fields.Char(required=True) + description = fields.Char() + partner_id = fields.Many2one("res.partner", string="Region Manager") diff --git a/base_territory/models/res_territory.py b/base_territory/models/res_territory.py new file mode 100644 index 0000000000..86c1569386 --- /dev/null +++ b/base_territory/models/res_territory.py @@ -0,0 +1,22 @@ +# Copyright (C) 2020 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResTerritory(models.Model): + _name = "res.territory" + _description = "Territory" + + name = fields.Char(required=True) + branch_id = fields.Many2one("res.branch", string="Branch") + district_id = fields.Many2one(related="branch_id.district_id", string="District") + region_id = fields.Many2one( + related="branch_id.district_id.region_id", string="Region" + ) + description = fields.Char() + type = fields.Selection( + [("zip", "Zip"), ("state", "State"), ("country", "Country")], + ) + zip_codes = fields.Char("ZIP Codes") + country_ids = fields.One2many("res.country", "territory_id", string="Country Names") diff --git a/base_territory/pyproject.toml b/base_territory/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/base_territory/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_territory/readme/CONTRIBUTORS.md b/base_territory/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..e24d1f334a --- /dev/null +++ b/base_territory/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Wolfgang Hall \<\> +- Maxime Chambreuil \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> diff --git a/base_territory/readme/CREDITS.md b/base_territory/readme/CREDITS.md new file mode 100644 index 0000000000..7e4827b0a8 --- /dev/null +++ b/base_territory/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +- Open Source Integrators \<\> diff --git a/base_territory/readme/DESCRIPTION.md b/base_territory/readme/DESCRIPTION.md new file mode 100644 index 0000000000..7eb295968d --- /dev/null +++ b/base_territory/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module allows you to define territories, branches, districts and +regions to be used for Field Service operations or Sales. diff --git a/base_territory/readme/USAGE.md b/base_territory/readme/USAGE.md new file mode 100644 index 0000000000..c23a9fdad4 --- /dev/null +++ b/base_territory/readme/USAGE.md @@ -0,0 +1,5 @@ +To use this module, you need to: + +1. Go to Settings \> Users & Companies +2. Define your territories, branches, districts and regions with their + respective manager. diff --git a/base_territory/security/ir.model.access.csv b/base_territory/security/ir.model.access.csv new file mode 100644 index 0000000000..9c311ea0d8 --- /dev/null +++ b/base_territory/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_res_territory_user,territory.user,model_res_territory,base.group_user,1,1,1,1 +access_res_branch_user,branch.user,model_res_branch,base.group_user,1,1,1,1 +access_res_district_user,district.user,model_res_district,base.group_user,1,1,1,1 +access_res_region_user,region.user,model_res_region,base.group_user,1,1,1,1 diff --git a/base_territory/static/description/icon.png b/base_territory/static/description/icon.png new file mode 100644 index 0000000000..955674d8f0 Binary files /dev/null and b/base_territory/static/description/icon.png differ diff --git a/base_territory/static/description/index.html b/base_territory/static/description/index.html new file mode 100644 index 0000000000..52e1f38403 --- /dev/null +++ b/base_territory/static/description/index.html @@ -0,0 +1,446 @@ + + + + + +Base Territory + + + +
+

Base Territory

+ + +

Production/Stable License: AGPL-3 OCA/field-service Translate me on Weblate Try me on Runboat

+

This module allows you to define territories, branches, districts and +regions to be used for Field Service operations or Sales.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Settings > Users & Companies
  2. +
  3. Define your territories, branches, districts and regions with their +respective manager.
  4. +
+
+
+

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

+
    +
  • Open Source Integrators
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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.

+

Current maintainers:

+

max3903 brian10048

+

This module is part of the OCA/field-service project on GitHub.

+

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

+
+
+
+ + diff --git a/base_territory/tests/__init__.py b/base_territory/tests/__init__.py new file mode 100644 index 0000000000..c7a8ea4897 --- /dev/null +++ b/base_territory/tests/__init__.py @@ -0,0 +1,5 @@ +from . import test_res_branch +from . import test_res_country +from . import test_res_district +from . import test_res_region +from . import test_res_territory diff --git a/base_territory/tests/test_res_branch.py b/base_territory/tests/test_res_branch.py new file mode 100644 index 0000000000..2f3a703881 --- /dev/null +++ b/base_territory/tests/test_res_branch.py @@ -0,0 +1,46 @@ +from odoo.tests.common import TransactionCase + + +class TestResBranch(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + + cls.partner = cls.env["res.partner"].create( + {"name": "Test Partner", "email": "test_partner@example.com"} + ) + + cls.district = cls.env["res.district"].create({"name": "Test District"}) + + def create_branch(self, **kwargs): + return self.env["res.branch"].create( + { + "name": "Test Branch", + "partner_id": self.partner.id, + "district_id": self.district.id, + **kwargs, + } + ) + + def test_create_branch(self): + branch = self.create_branch(description="Main Branch") + self.assertEqual(branch.name, "Test Branch", "Branch name mismatch") + self.assertEqual(branch.partner_id, self.partner, "Branch partner mismatch") + self.assertEqual(branch.district_id, self.district, "Branch district mismatch") + self.assertEqual( + branch.description, "Main Branch", "Branch description mismatch" + ) + + def test_update_branch(self): + branch = self.create_branch() + branch.write({"name": "Updated Branch"}) + self.assertEqual(branch.name, "Updated Branch", "Branch name was not updated") + + def test_unlink_branch(self): + branch = self.create_branch() + branch_id = branch.id + branch.unlink() + self.assertFalse( + self.env["res.branch"].search([("id", "=", branch_id)]), + "Branch was not deleted", + ) diff --git a/base_territory/tests/test_res_country.py b/base_territory/tests/test_res_country.py new file mode 100644 index 0000000000..ad1a1a3137 --- /dev/null +++ b/base_territory/tests/test_res_country.py @@ -0,0 +1,58 @@ +from odoo.tests.common import TransactionCase + + +class TestResCountry(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + + cls.territory = cls.env["res.territory"].create({"name": "Test Territory"}) + cls.region1 = cls.env["res.region"].create({"name": "Test Region 1"}) + cls.region2 = cls.env["res.region"].create({"name": "Test Region 2"}) + + cls.country = cls.env["res.country"].create( + { + "name": "Test Country", + "code": "TE", + "territory_id": cls.territory.id, + "region_ids": [(6, 0, [cls.region1.id, cls.region2.id])], + } + ) + + def test_create_country(self): + self.assertEqual(self.country.name, "Test Country", "Country name mismatch") + self.assertEqual(self.country.code, "TE", "Country code mismatch") + self.assertEqual( + self.country.territory_id, self.territory, "Country territory mismatch" + ) + self.assertIn( + self.region1, self.country.region_ids, "Region 1 not correctly linked" + ) + self.assertIn( + self.region2, self.country.region_ids, "Region 2 not correctly linked" + ) + + def test_update_country_territory(self): + new_territory = self.env["res.territory"].create({"name": "New Territory"}) + self.country.write({"territory_id": new_territory.id}) + self.assertEqual( + self.country.territory_id, new_territory, "Territory was not updated" + ) + + def test_update_country_regions(self): + new_region = self.env["res.region"].create({"name": "Test Region 3"}) + self.country.write({"region_ids": [(6, 0, [new_region.id])]}) + self.assertEqual( + len(self.country.region_ids), 1, "Region count after update is incorrect" + ) + self.assertIn( + new_region, self.country.region_ids, "New region was not added correctly" + ) + + def test_unlink_country(self): + country_id = self.country.id + self.country.unlink() + self.assertFalse( + self.env["res.country"].search([("id", "=", country_id)]), + "Country was not deleted", + ) diff --git a/base_territory/tests/test_res_district.py b/base_territory/tests/test_res_district.py new file mode 100644 index 0000000000..ce660c0619 --- /dev/null +++ b/base_territory/tests/test_res_district.py @@ -0,0 +1,57 @@ +from odoo.tests.common import TransactionCase + + +class TestResDistrict(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + + cls.region = cls.env["res.region"].create({"name": "Test Region"}) + cls.partner = cls.env["res.partner"].create({"name": "Test District Manager"}) + + cls.district = cls.env["res.district"].create( + { + "name": "Test District", + "region_id": cls.region.id, + "partner_id": cls.partner.id, + "description": "Test District Description", + } + ) + + def test_create_district(self): + self.assertEqual(self.district.name, "Test District", "District name mismatch") + self.assertEqual( + self.district.region_id, self.region, "District region mismatch" + ) + self.assertEqual( + self.district.partner_id, self.partner, "District manager mismatch" + ) + self.assertEqual( + self.district.description, + "Test District Description", + "District description mismatch", + ) + + def test_update_district_region(self): + new_region = self.env["res.region"].create({"name": "New Region"}) + self.district.write({"region_id": new_region.id}) + self.assertEqual( + self.district.region_id, new_region, "Region was not updated correctly" + ) + + def test_update_district_manager(self): + new_partner = self.env["res.partner"].create({"name": "New District Manager"}) + self.district.write({"partner_id": new_partner.id}) + self.assertEqual( + self.district.partner_id, + new_partner, + "District manager was not updated correctly", + ) + + def test_unlink_district(self): + district_id = self.district.id + self.district.unlink() + self.assertFalse( + self.env["res.district"].search([("id", "=", district_id)]), + "District was not deleted", + ) diff --git a/base_territory/tests/test_res_region.py b/base_territory/tests/test_res_region.py new file mode 100644 index 0000000000..549cf8e710 --- /dev/null +++ b/base_territory/tests/test_res_region.py @@ -0,0 +1,52 @@ +from odoo.tests.common import TransactionCase + + +class TestResRegion(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + + cls.partner = cls.env["res.partner"].create({"name": "Test Region Manager"}) + + cls.region = cls.env["res.region"].create( + { + "name": "Test Region", + "description": "Test Region Description", + "partner_id": cls.partner.id, + } + ) + + def test_create_region(self): + self.assertEqual(self.region.name, "Test Region", "Region name mismatch") + self.assertEqual( + self.region.description, + "Test Region Description", + "Region description mismatch", + ) + self.assertEqual( + self.region.partner_id, self.partner, "Region manager mismatch" + ) + + def test_update_region_name(self): + new_name = "Updated Region Name" + self.region.write({"name": new_name}) + self.assertEqual( + self.region.name, new_name, "Region name was not updated correctly" + ) + + def test_update_region_manager(self): + new_partner = self.env["res.partner"].create({"name": "New Region Manager"}) + self.region.write({"partner_id": new_partner.id}) + self.assertEqual( + self.region.partner_id, + new_partner, + "Region manager was not updated correctly", + ) + + def test_unlink_region(self): + region_id = self.region.id + self.region.unlink() + self.assertFalse( + self.env["res.region"].search([("id", "=", region_id)]), + "Region was not deleted", + ) diff --git a/base_territory/tests/test_res_territory.py b/base_territory/tests/test_res_territory.py new file mode 100644 index 0000000000..40edb89b34 --- /dev/null +++ b/base_territory/tests/test_res_territory.py @@ -0,0 +1,84 @@ +from odoo.tests.common import TransactionCase + + +class TestResTerritory(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + + cls.partner = cls.env["res.partner"].create({"name": "Test Branch Manager"}) + + cls.region = cls.env["res.region"].create( + { + "name": "Test Region", + "description": "Test Region Description", + "partner_id": cls.partner.id, + } + ) + + cls.district = cls.env["res.district"].create( + { + "name": "Test District", + "region_id": cls.region.id, + "partner_id": cls.partner.id, + } + ) + + cls.branch = cls.env["res.branch"].create( + { + "name": "Test Branch", + "partner_id": cls.partner.id, + "district_id": cls.district.id, + } + ) + + cls.territory = cls.env["res.territory"].create( + { + "name": "Test Territory", + "branch_id": cls.branch.id, + "description": "Test Territory Description", + "type": "state", + "zip_codes": "12345, 67890", + } + ) + + def test_create_territory(self): + self.assertEqual( + self.territory.name, "Test Territory", "Territory name mismatch" + ) + self.assertEqual( + self.territory.description, + "Test Territory Description", + "Territory description mismatch", + ) + self.assertEqual(self.territory.branch_id, self.branch, "Branch mismatch") + self.assertEqual(self.territory.district_id, self.district, "District mismatch") + self.assertEqual(self.territory.region_id, self.region, "Region mismatch") + self.assertEqual(self.territory.type, "state", "Territory type mismatch") + self.assertEqual(self.territory.zip_codes, "12345, 67890", "ZIP codes mismatch") + + def test_update_territory(self): + new_branch = self.env["res.branch"].create({"name": "New Test Branch"}) + self.territory.write({"branch_id": new_branch.id, "type": "zip"}) + self.assertEqual( + self.territory.branch_id, new_branch, "Branch was not updated correctly" + ) + self.assertEqual( + self.territory.type, "zip", "Territory type was not updated correctly" + ) + + def test_add_country_to_territory(self): + country = self.env["res.country"].create( + {"name": "Test Country", "territory_id": self.territory.id, "code": "TS"} + ) + self.assertIn( + country, self.territory.country_ids, "Country was not added to territory" + ) + + def test_unlink_territory(self): + territory_id = self.territory.id + self.territory.unlink() + self.assertFalse( + self.env["res.territory"].search([("id", "=", territory_id)]), + "Territory was not deleted", + ) diff --git a/base_territory/views/menu.xml b/base_territory/views/menu.xml new file mode 100644 index 0000000000..eb00b29b75 --- /dev/null +++ b/base_territory/views/menu.xml @@ -0,0 +1,30 @@ + + + + + + diff --git a/base_territory/views/res_branch.xml b/base_territory/views/res_branch.xml new file mode 100644 index 0000000000..f972ed4bb9 --- /dev/null +++ b/base_territory/views/res_branch.xml @@ -0,0 +1,46 @@ + + + + res.branch.tree + res.branch + + + + + + + + + + res.branch.form + res.branch + +
+ + +
+
+
+ + Branches + res.branch + + list,form + +
diff --git a/base_territory/views/res_country.xml b/base_territory/views/res_country.xml new file mode 100644 index 0000000000..44ae8b841c --- /dev/null +++ b/base_territory/views/res_country.xml @@ -0,0 +1,19 @@ + + + view_res_country_extended_region_form + res.country + + + + + + + diff --git a/base_territory/views/res_district.xml b/base_territory/views/res_district.xml new file mode 100644 index 0000000000..edde1ccf92 --- /dev/null +++ b/base_territory/views/res_district.xml @@ -0,0 +1,46 @@ + + + + res.district.tree + res.district + + + + + + + + + + res.district.form + res.district + +
+ + +
+
+
+ + Districts + res.district + + list,form + +
diff --git a/base_territory/views/res_region.xml b/base_territory/views/res_region.xml new file mode 100644 index 0000000000..52ad8ed157 --- /dev/null +++ b/base_territory/views/res_region.xml @@ -0,0 +1,44 @@ + + + + res.region.tree + res.region + + + + + + + + + res.region.form + res.region + +
+ + +
+
+
+ + Regions + res.region + + list,form + +
diff --git a/base_territory/views/res_territory.xml b/base_territory/views/res_territory.xml new file mode 100644 index 0000000000..81ddde2181 --- /dev/null +++ b/base_territory/views/res_territory.xml @@ -0,0 +1,54 @@ + + + + res.territory.tree + res.territory + + + + + + + + + + res.territory.form + res.territory + +
+ + +
+
+
+ + Territories + res.territory + + list,form + +