diff --git a/helpdesk_product/README.rst b/helpdesk_product/README.rst new file mode 100644 index 0000000000..470a5cbeff --- /dev/null +++ b/helpdesk_product/README.rst @@ -0,0 +1,78 @@ +================ +Helpdesk Product +================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:983e2da3958dce9f93ff5f71722bd5ad3c6c26518120291e1f7973246d3d3e6e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github + :target: https://github.com/OCA/helpdesk/tree/17.0/helpdesk_product + :alt: OCA/helpdesk +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_product + :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/helpdesk&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the option to select product in the helpdesk tickets. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ForgeFlow + +Contributors +------------ + +- `ForgeFlow `__: + + - Maria Buscallà + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/helpdesk `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/helpdesk_product/__init__.py b/helpdesk_product/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/helpdesk_product/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/helpdesk_product/__manifest__.py b/helpdesk_product/__manifest__.py new file mode 100644 index 0000000000..ec46a7cd4a --- /dev/null +++ b/helpdesk_product/__manifest__.py @@ -0,0 +1,14 @@ +{ + "name": "Helpdesk Product", + "summary": "Add the option to select product in the tickets.", + "author": "ForgeFlow, " "Odoo Community Association (OCA)", + "version": "17.0.1.0.0", + "license": "AGPL-3", + "category": "After-Sales", + "website": "https://github.com/OCA/helpdesk", + "depends": ["helpdesk_mgmt", "product"], + "data": ["views/product_view.xml", "views/helpdesk_ticket_view.xml"], + "demo": ["demo/helpdesk_product_demo.xml"], + "development_status": "Beta", + "auto_install": True, +} diff --git a/helpdesk_product/demo/helpdesk_product_demo.xml b/helpdesk_product/demo/helpdesk_product_demo.xml new file mode 100644 index 0000000000..92094d8f15 --- /dev/null +++ b/helpdesk_product/demo/helpdesk_product_demo.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/helpdesk_product/i18n/helpdesk_product.pot b/helpdesk_product/i18n/helpdesk_product.pot new file mode 100644 index 0000000000..11d8eda7a7 --- /dev/null +++ b/helpdesk_product/i18n/helpdesk_product.pot @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.product_template_search_view_helpdesk +msgid "Available for Helpdesk" +msgstr "" + +#. module: helpdesk_product +#: model:ir.model.fields,field_description:helpdesk_product.field_product_product__ticket_active +#: model:ir.model.fields,field_description:helpdesk_product.field_product_template__ticket_active +msgid "Available for Helpdesk Tickets" +msgstr "" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "Create a new product" +msgstr "" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_product_template +#: model:ir.model.fields,field_description:helpdesk_product.field_helpdesk_ticket__product_id +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product" +msgstr "" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product Related" +msgstr "" + +#. module: helpdesk_product +#: model:ir.actions.act_window,name:helpdesk_product.product_template_action_helpdesk +#: model:ir.ui.menu,name:helpdesk_product.action_menu_view_products +msgid "Products" +msgstr "" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "" +"You currently have no products available for Helpdesk Tickets.\n" +"
\n" +" A product can be either a physical product or a service that you sell to your customers." +msgstr "" diff --git a/helpdesk_product/i18n/it.po b/helpdesk_product/i18n/it.po new file mode 100644 index 0000000000..5bf15fc801 --- /dev/null +++ b/helpdesk_product/i18n/it.po @@ -0,0 +1,69 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-04-29 16: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.17\n" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.product_template_search_view_helpdesk +msgid "Available for Helpdesk" +msgstr "Disponibile per assistenza" + +#. module: helpdesk_product +#: model:ir.model.fields,field_description:helpdesk_product.field_product_product__ticket_active +#: model:ir.model.fields,field_description:helpdesk_product.field_product_template__ticket_active +msgid "Available for Helpdesk Tickets" +msgstr "Disponibile per ticket assistenza clienti" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "Create a new product" +msgstr "Crea un nuovo prodotto" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Ticket assistenza clienti" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_product_template +#: model:ir.model.fields,field_description:helpdesk_product.field_helpdesk_ticket__product_id +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product" +msgstr "Prodotto" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product Related" +msgstr "Prodotto relativo" + +#. module: helpdesk_product +#: model:ir.actions.act_window,name:helpdesk_product.product_template_action_helpdesk +#: model:ir.ui.menu,name:helpdesk_product.action_menu_view_products +msgid "Products" +msgstr "Prodotti" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "" +"You currently have no products available for Helpdesk Tickets.\n" +"
\n" +" A product can be either a physical product or a service that you sell to your customers." +msgstr "" +"Attualmente non ci sono prodotti disponibili per i ticket di assistenza " +"clienti.\n" +"
\n" +" Un prodotto può essere sia un prodotto fisico sia un " +"servizio che si vende ai clienti." diff --git a/helpdesk_product/i18n/pt.po b/helpdesk_product/i18n/pt.po new file mode 100644 index 0000000000..cb0682dca5 --- /dev/null +++ b/helpdesk_product/i18n/pt.po @@ -0,0 +1,68 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-07-27 05:58+0000\n" +"Last-Translator: Peter Romão \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" +"X-Generator: Weblate 5.6.2\n" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.product_template_search_view_helpdesk +msgid "Available for Helpdesk" +msgstr "Disponível para Helpdesk" + +#. module: helpdesk_product +#: model:ir.model.fields,field_description:helpdesk_product.field_product_product__ticket_active +#: model:ir.model.fields,field_description:helpdesk_product.field_product_template__ticket_active +msgid "Available for Helpdesk Tickets" +msgstr "Disponível para Tickets de Helpdesk" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "Create a new product" +msgstr "Criar um novo artigo" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Ticket de Helpdesk" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_product_template +#: model:ir.model.fields,field_description:helpdesk_product.field_helpdesk_ticket__product_id +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product" +msgstr "Artigo" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product Related" +msgstr "Artigos Relacionados" + +#. module: helpdesk_product +#: model:ir.actions.act_window,name:helpdesk_product.product_template_action_helpdesk +#: model:ir.ui.menu,name:helpdesk_product.action_menu_view_products +msgid "Products" +msgstr "Artigos" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "" +"You currently have no products available for Helpdesk Tickets.\n" +"
\n" +" A product can be either a physical product or a service that you sell to your customers." +msgstr "" +"De momento, não dispõe de artigos disponíveis para Tickets de Helpdesk.\n" +"
\n" +" Um artigo pode ser um artigo físico ou um serviço que vende " +"aos seus clientes." diff --git a/helpdesk_product/i18n/pt_BR.po b/helpdesk_product/i18n/pt_BR.po new file mode 100644 index 0000000000..50a655d955 --- /dev/null +++ b/helpdesk_product/i18n/pt_BR.po @@ -0,0 +1,70 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-07-05 17:59+0000\n" +"Last-Translator: rodrigosottomaiormacedo " +"\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.17\n" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.product_template_search_view_helpdesk +msgid "Available for Helpdesk" +msgstr "Disponível para suporte técnico" + +#. module: helpdesk_product +#: model:ir.model.fields,field_description:helpdesk_product.field_product_product__ticket_active +#: model:ir.model.fields,field_description:helpdesk_product.field_product_template__ticket_active +msgid "Available for Helpdesk Tickets" +msgstr "Disponível para tickets de suporte técnico" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "Create a new product" +msgstr "Crie um novo produto" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Tíquete de suporte técnico" + +#. module: helpdesk_product +#: model:ir.model,name:helpdesk_product.model_product_template +#: model:ir.model.fields,field_description:helpdesk_product.field_helpdesk_ticket__product_id +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product" +msgstr "Produto" + +#. module: helpdesk_product +#: model_terms:ir.ui.view,arch_db:helpdesk_product.helpdesk_ticket_view_search +msgid "Product Related" +msgstr "Produto Relacionado" + +#. module: helpdesk_product +#: model:ir.actions.act_window,name:helpdesk_product.product_template_action_helpdesk +#: model:ir.ui.menu,name:helpdesk_product.action_menu_view_products +msgid "Products" +msgstr "Produtos" + +#. module: helpdesk_product +#: model_terms:ir.actions.act_window,help:helpdesk_product.product_template_action_helpdesk +msgid "" +"You currently have no products available for Helpdesk Tickets.\n" +"
\n" +" A product can be either a physical product or a service that you sell to your customers." +msgstr "" +"No momento você não tem produtos disponíveis para tickets de suporte técnico." +"\n" +"
\n" +" Um produto pode ser um produto físico " +"ou um serviço que você vende aos seus clientes." diff --git a/helpdesk_product/models/__init__.py b/helpdesk_product/models/__init__.py new file mode 100644 index 0000000000..210758986a --- /dev/null +++ b/helpdesk_product/models/__init__.py @@ -0,0 +1 @@ +from . import helpdesk_ticket, product diff --git a/helpdesk_product/models/helpdesk_ticket.py b/helpdesk_product/models/helpdesk_ticket.py new file mode 100644 index 0000000000..26c91e2dbc --- /dev/null +++ b/helpdesk_product/models/helpdesk_ticket.py @@ -0,0 +1,7 @@ +from odoo import fields, models + + +class HelpdeskTicket(models.Model): + _inherit = "helpdesk.ticket" + + product_id = fields.Many2one(string="Product", comodel_name="product.product") diff --git a/helpdesk_product/models/product.py b/helpdesk_product/models/product.py new file mode 100644 index 0000000000..fa4ec4f15a --- /dev/null +++ b/helpdesk_product/models/product.py @@ -0,0 +1,9 @@ +from odoo import fields, models + + +class Product(models.Model): + _inherit = "product.template" + + ticket_active = fields.Boolean( + "Available for Helpdesk Tickets", default=True, required=True + ) diff --git a/helpdesk_product/pyproject.toml b/helpdesk_product/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/helpdesk_product/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/helpdesk_product/readme/CONTRIBUTORS.md b/helpdesk_product/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..109df4a27e --- /dev/null +++ b/helpdesk_product/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- [ForgeFlow](https://www.forgeflow.com): + - Maria Buscallà \<\> diff --git a/helpdesk_product/readme/DESCRIPTION.md b/helpdesk_product/readme/DESCRIPTION.md new file mode 100644 index 0000000000..522e1c55dc --- /dev/null +++ b/helpdesk_product/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds the option to select product in the helpdesk tickets. diff --git a/helpdesk_product/static/description/icon.png b/helpdesk_product/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/helpdesk_product/static/description/icon.png differ diff --git a/helpdesk_product/static/description/index.html b/helpdesk_product/static/description/index.html new file mode 100644 index 0000000000..a759580bd2 --- /dev/null +++ b/helpdesk_product/static/description/index.html @@ -0,0 +1,426 @@ + + + + + +Helpdesk Product + + + +
+

Helpdesk Product

+ + +

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

+

This module adds the option to select product in the helpdesk tickets.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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

+

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

+

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

+
+
+
+ + diff --git a/helpdesk_product/views/helpdesk_ticket_view.xml b/helpdesk_product/views/helpdesk_ticket_view.xml new file mode 100644 index 0000000000..867bf557be --- /dev/null +++ b/helpdesk_product/views/helpdesk_ticket_view.xml @@ -0,0 +1,62 @@ + + + + + + helpdesk.ticket.form + helpdesk.ticket + + + + + + + + + + + helpdesk.ticket.tree + helpdesk.ticket + + + + + + + + + + + helpdesk.ticket.search + helpdesk.ticket + + + + + + + + + + + + + + + + diff --git a/helpdesk_product/views/product_view.xml b/helpdesk_product/views/product_view.xml new file mode 100644 index 0000000000..b34ae24468 --- /dev/null +++ b/helpdesk_product/views/product_view.xml @@ -0,0 +1,49 @@ + + + + + + product.template.common.form + product.template + + + + + + + + + + product.template.search + product.template + + + + + + + + + + + Products + product.template + ir.actions.act_window + kanban,tree,form,activity + + {'search_default_helpdesk_active': 1} + +

+ Create a new product +

+

You currently have no products available for Helpdesk Tickets.
A product can + be either a physical product or a service that you sell to your customers.

+
+
+ +