diff --git a/sale_order_tag/README.rst b/sale_order_tag/README.rst new file mode 100644 index 00000000000..2f77cfa06cf --- /dev/null +++ b/sale_order_tag/README.rst @@ -0,0 +1,104 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +=============== +Sale Order Tags +=============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:857c17df5858d23fc8fb3267e533c2bb6fcc37375dd18c0900c0311053fbbd61 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/19.0/sale_order_tag + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-19-0/sale-workflow-19-0-sale_order_tag + :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/sale-workflow&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds tags to Sales Orders that are not related to +Opportunity. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +1. Have Manager rights for Sales group to create tags. +2. Go to the sales order form and add the necessary tags. + +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 +------- + +* Patrick Wilson + +Contributors +------------ + +- Patrick Wilson +- Trobz (https://www.trobz.com) + + - Tuan Nguyen + +- Studio73 (https://www.studio73.es) + + - Eugenio Micó + +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-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px + :target: https://github.com/patrickrwilson + :alt: patrickrwilson + +Current `maintainer `__: + +|maintainer-patrickrwilson| + +This module is part of the `OCA/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_tag/__init__.py b/sale_order_tag/__init__.py new file mode 100644 index 00000000000..7aa2a23d365 --- /dev/null +++ b/sale_order_tag/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2021 Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/sale_order_tag/__manifest__.py b/sale_order_tag/__manifest__.py new file mode 100644 index 00000000000..fdbfb4edc3c --- /dev/null +++ b/sale_order_tag/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright 2021 Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Sale Order Tags", + "summary": """Adds Tags to Sales Orders.""", + "author": "Patrick Wilson, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "category": "Sale", + "version": "19.0.1.0.0", + "license": "AGPL-3", + "depends": ["crm", "sale_management"], + "data": [ + "data/sale_order_tag_data.xml", + "security/ir.model.access.csv", + "security/sale_order_tag_security.xml", + "views/sale_order_tag.xml", + "views/sale_order.xml", + ], + "application": False, + "development_status": "Beta", + "maintainers": ["patrickrwilson"], +} diff --git a/sale_order_tag/data/sale_order_tag_data.xml b/sale_order_tag/data/sale_order_tag_data.xml new file mode 100644 index 00000000000..e287570e443 --- /dev/null +++ b/sale_order_tag/data/sale_order_tag_data.xml @@ -0,0 +1,10 @@ + + + + sale.order.tag.sequence + sale.order.tag + 0 + 1 + + diff --git a/sale_order_tag/i18n/ca.po b/sale_order_tag/i18n/ca.po new file mode 100644 index 00000000000..05d043b4106 --- /dev/null +++ b/sale_order_tag/i18n/ca.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-03-23 11:47+0000\n" +"Last-Translator: Daniel Martinez Vila \n" +"Language-Team: none\n" +"Language: ca\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: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "Actiu" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "Índex de colors" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "Empresa" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "Creat per" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "Creat el" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "Descripció" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "Nom visible" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "ID" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag____last_update +msgid "Last Modified on" +msgstr "Darrera modificació el" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "Darrera actualització per" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "Darrera actualització el" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "Nom" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "Etiqueta de comanda de venda" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "Etiquetes de comandes de venda" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "Equips comercials" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "Seqüència" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "El nom de l'etiqueta ja existeix!" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "Etiqueta..." + +#~ msgid "Sale Order" +#~ msgstr "Comanda de venda" + +#~ msgid "Tags" +#~ msgstr "Etiquetes" diff --git a/sale_order_tag/i18n/de.po b/sale_order_tag/i18n/de.po new file mode 100644 index 00000000000..3cd257ca8d6 --- /dev/null +++ b/sale_order_tag/i18n/de.po @@ -0,0 +1,116 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-12-09 10:06+0000\n" +"Last-Translator: Bastian Günther \n" +"Language-Team: none\n" +"Language: de\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 5.6.2\n" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "Aktiv" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "Farbindex" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "Unternehmen" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "Erstellt von" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "Erstellt am" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "Beschreibung" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "Anzeigename" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "ID" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag____last_update +msgid "Last Modified on" +msgstr "Zuletzt geändert am" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert von" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "Name" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "Stichwort Verkaufsauftrag" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "Stichwörter Verkaufsauftrag" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "Verkaufsauftrag" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "Verkaufsteams" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "Sequenz" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Stichwort existiert bereits!" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "Stichwort..." diff --git a/sale_order_tag/i18n/es.po b/sale_order_tag/i18n/es.po new file mode 100644 index 00000000000..8c20d0561ad --- /dev/null +++ b/sale_order_tag/i18n/es.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-03-23 11:47+0000\n" +"Last-Translator: Daniel Martinez Vila \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.3.2\n" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "Activo" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "Indice de color" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "Compañía" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "Descripción" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "ID" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "Actualizado por última vez por" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "Ultima actualización el" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "Nombre" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "Etiqueta de pedido de venta" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "Etiquetas de pedido de venta" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "Equipos de ventas" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "Secuencia" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "¡El nombre de la etiqueta ya existe!" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "Etiqueta..." + +#~ msgid "Sale Order" +#~ msgstr "Pedido de venta" + +#~ msgid "Tags" +#~ msgstr "Etiquetas" diff --git a/sale_order_tag/i18n/it.po b/sale_order_tag/i18n/it.po new file mode 100644 index 00000000000..588aca4eddb --- /dev/null +++ b/sale_order_tag/i18n/it.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-10-02 22:11+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 5.10.4\n" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "Attivo" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "Indice colore" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "Azienda" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "Descrizione" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "ID" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "Nome" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "Tag Ordine" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "Tags Ordine" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "Ordine di vendita" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "Team di vendita" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "Sequenza" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Il nome tag esiste già!" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "tag..." + +#~ msgid "Sale Order" +#~ msgstr "Ordine di Vendita" + +#~ msgid "Tags" +#~ msgstr "Tags" diff --git a/sale_order_tag/i18n/pt.po b/sale_order_tag/i18n/pt.po new file mode 100644 index 00000000000..d539512805e --- /dev/null +++ b/sale_order_tag/i18n/pt.po @@ -0,0 +1,109 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: pt\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" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "" diff --git a/sale_order_tag/i18n/sale_order_tag.pot b/sale_order_tag/i18n/sale_order_tag.pot new file mode 100644 index 00000000000..f069b93177d --- /dev/null +++ b/sale_order_tag/i18n/sale_order_tag.pot @@ -0,0 +1,108 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "" diff --git a/sale_order_tag/i18n/tr.po b/sale_order_tag/i18n/tr.po new file mode 100644 index 00000000000..431ac1355e8 --- /dev/null +++ b/sale_order_tag/i18n/tr.po @@ -0,0 +1,119 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-07-12 21:48+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: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__active +msgid "Active" +msgstr "Aktif" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__color +msgid "Color Index" +msgstr "Renk İndeksi" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__company_id +msgid "Company" +msgstr "Firma" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_uid +msgid "Created by" +msgstr "Oluşturan" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__create_date +msgid "Created on" +msgstr "Oluşturulma" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__description +msgid "Description" +msgstr "Açıklama" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__display_name +msgid "Display Name" +msgstr "Görünüm Adı" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__id +msgid "ID" +msgstr "ID" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag____last_update +msgid "Last Modified on" +msgstr "Son Düzenlenme" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_uid +msgid "Last Updated by" +msgstr "Son Güncelleyen" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__write_date +msgid "Last Updated on" +msgstr "Son Güncellenme" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__name +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Name" +msgstr "Adı" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order_tag +msgid "Sale Order Tag" +msgstr "Satış Siparişi Etiketi" + +#. module: sale_order_tag +#: model:ir.actions.act_window,name:sale_order_tag.sale_order_tag_action +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order__so_tag_ids +#: model:ir.ui.menu,name:sale_order_tag.sale_order_tag_menu +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_form_view +msgid "Sale Order Tags" +msgstr "Satış Siparişi Etiketleri" + +#. module: sale_order_tag +#: model:ir.model,name:sale_order_tag.model_sale_order +msgid "Sales Order" +msgstr "Satış Siparişi" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__team_ids +msgid "Sales Teams" +msgstr "Satış Ekipleri" + +#. module: sale_order_tag +#: model:ir.model.fields,field_description:sale_order_tag.field_sale_order_tag__sequence +msgid "Sequence" +msgstr "Sıra" + +#. module: sale_order_tag +#: model:ir.model.constraint,message:sale_order_tag.constraint_sale_order_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Etiket adı zaten var!" + +#. module: sale_order_tag +#: model_terms:ir.ui.view,arch_db:sale_order_tag.sale_order_tag_view_form +msgid "tag..." +msgstr "etiket..." + +#~ msgid "Tags" +#~ msgstr "Etiketler" diff --git a/sale_order_tag/models/__init__.py b/sale_order_tag/models/__init__.py new file mode 100644 index 00000000000..66c0392a999 --- /dev/null +++ b/sale_order_tag/models/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2021 Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import sale_order +from . import sale_order_tag diff --git a/sale_order_tag/models/sale_order.py b/sale_order_tag/models/sale_order.py new file mode 100644 index 00000000000..2341f99c9dc --- /dev/null +++ b/sale_order_tag/models/sale_order.py @@ -0,0 +1,10 @@ +# Copyright 2021 Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + so_tag_ids = fields.Many2many("sale.order.tag", string="Sale Order Tags") diff --git a/sale_order_tag/models/sale_order_tag.py b/sale_order_tag/models/sale_order_tag.py new file mode 100644 index 00000000000..5a311e4e7c3 --- /dev/null +++ b/sale_order_tag/models/sale_order_tag.py @@ -0,0 +1,27 @@ +# Copyright 2021 Patrick Wilson +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class SaleOrderTag(models.Model): + _name = "sale.order.tag" + _order = "name" + _description = "Sale Order Tag" + + name = fields.Char(required=True) + description = fields.Text() + color = fields.Integer(string="Color Index") + team_ids = fields.Many2many("crm.team", string="Sales Teams") + active = fields.Boolean(default=True) + company_id = fields.Many2one("res.company", string="Company") + sequence = fields.Integer( + default=lambda self: self.env["ir.sequence"].next_by_code("sale.order.tag") + or 0, + required=True, + ) + + _name_uniq = models.Constraint( + "unique(name, company_id)", + "Tag name already exists!", + ) diff --git a/sale_order_tag/pyproject.toml b/sale_order_tag/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_order_tag/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_order_tag/readme/CONTRIBUTORS.md b/sale_order_tag/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..1d77d9ffce8 --- /dev/null +++ b/sale_order_tag/readme/CONTRIBUTORS.md @@ -0,0 +1,5 @@ +- Patrick Wilson \<\> +- Trobz () + - Tuan Nguyen \<\> +- Studio73 () + - Eugenio Micó \<\> diff --git a/sale_order_tag/readme/DESCRIPTION.md b/sale_order_tag/readme/DESCRIPTION.md new file mode 100644 index 00000000000..bef11b84b9f --- /dev/null +++ b/sale_order_tag/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds tags to Sales Orders that are not related to +Opportunity. diff --git a/sale_order_tag/readme/USAGE.md b/sale_order_tag/readme/USAGE.md new file mode 100644 index 00000000000..16ff4107e20 --- /dev/null +++ b/sale_order_tag/readme/USAGE.md @@ -0,0 +1,4 @@ +To use this module, you need to: + +1. Have Manager rights for Sales group to create tags. +2. Go to the sales order form and add the necessary tags. diff --git a/sale_order_tag/security/ir.model.access.csv b/sale_order_tag/security/ir.model.access.csv new file mode 100644 index 00000000000..501397cac70 --- /dev/null +++ b/sale_order_tag/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_sale_order_tag_user,Sale Order Tag User,model_sale_order_tag,sales_team.group_sale_salesman,1,0,0,0 +access_sale_order_tag_manager,Sale Order Tag Manager,model_sale_order_tag,sales_team.group_sale_manager,1,1,1,1 diff --git a/sale_order_tag/security/sale_order_tag_security.xml b/sale_order_tag/security/sale_order_tag_security.xml new file mode 100644 index 00000000000..d01b22e0dd7 --- /dev/null +++ b/sale_order_tag/security/sale_order_tag_security.xml @@ -0,0 +1,11 @@ + + + + Sale Order Tag in multi company + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + diff --git a/sale_order_tag/static/description/icon.png b/sale_order_tag/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_order_tag/static/description/icon.png differ diff --git a/sale_order_tag/static/description/index.html b/sale_order_tag/static/description/index.html new file mode 100644 index 00000000000..fd26a74dd42 --- /dev/null +++ b/sale_order_tag/static/description/index.html @@ -0,0 +1,449 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Sale Order Tags

+ +

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

+

This module adds tags to Sales Orders that are not related to +Opportunity.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Have Manager rights for Sales group to create tags.
  2. +
  3. Go to the sales order form and add the necessary tags.
  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

+
    +
  • Patrick Wilson
  • +
+
+
+

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.

+

Current maintainer:

+

patrickrwilson

+

This module is part of the OCA/sale-workflow project on GitHub.

+

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

+
+
+
+
+ + diff --git a/sale_order_tag/views/sale_order.xml b/sale_order_tag/views/sale_order.xml new file mode 100644 index 00000000000..5e681994e87 --- /dev/null +++ b/sale_order_tag/views/sale_order.xml @@ -0,0 +1,42 @@ + + + + sale.order.tag.list + sale.order + + list + + + + + + + + sale.order.tag.form + sale.order + + form + + + + + + + + sale.order.tag.search + sale.order + + + + + + + + diff --git a/sale_order_tag/views/sale_order_tag.xml b/sale_order_tag/views/sale_order_tag.xml new file mode 100644 index 00000000000..c9d2a3751b3 --- /dev/null +++ b/sale_order_tag/views/sale_order_tag.xml @@ -0,0 +1,66 @@ + + + + sale.order.tag.list + sale.order.tag + + + + + + + + + + + + sale.order.tag.form + sale.order.tag + +
+ +
+ +
+
+
+ + + + + + + +
+
+
+
+ + Sale Order Tags + sale.order.tag + list,form + + +