diff --git a/crm_tag_team/README.rst b/crm_tag_team/README.rst new file mode 100644 index 00000000000..1cada29b40a --- /dev/null +++ b/crm_tag_team/README.rst @@ -0,0 +1,77 @@ +=================== +CRM Tags Sales Team +=================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0ab52e7891d6e7ad33427390ac0353b0d33619e632d6d61b4edb123de3db9f16 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcrm-lightgray.png?logo=github + :target: https://github.com/OCA/crm/tree/17.0/crm_tag_team + :alt: OCA/crm +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_tag_team + :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/crm&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows assigning crm tags to sales teams, making them +filtered in CRM leads. + +**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 +------- + +* INVITU + +Contributors +------------ + +Cyril VINH-TUNG Vehiana TEPUHIARII + +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/crm `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_tag_team/__init__.py b/crm_tag_team/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/crm_tag_team/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/crm_tag_team/__manifest__.py b/crm_tag_team/__manifest__.py new file mode 100644 index 00000000000..6859e7ba88f --- /dev/null +++ b/crm_tag_team/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2024 Invitu SARL +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "CRM Tags Sales Team", + "summary": "This module allows crm tags to be assigned to sales teams.", + "author": "INVITU, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/crm", + "version": "17.0.1.0.0", + "license": "AGPL-3", + "category": "Customer Relationship Management", + "depends": [ + "crm", + ], + "data": [ + "views/crm_tag_views.xml", + "views/crm_lead_views.xml", + ], + "installable": True, +} diff --git a/crm_tag_team/i18n/crm_tag_team.pot b/crm_tag_team/i18n/crm_tag_team.pot new file mode 100644 index 00000000000..100ec522c85 --- /dev/null +++ b/crm_tag_team/i18n/crm_tag_team.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_tag_team +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-12-23 19:30+0000\n" +"PO-Revision-Date: 2024-12-23 19:30+0000\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: crm_tag_team +#: model:ir.model,name:crm_tag_team.model_crm_tag +msgid "CRM Tag" +msgstr "" + +#. module: crm_tag_team +#: model:ir.model.fields,field_description:crm_tag_team.field_crm_tag__sales_team_ids +msgid "Teams" +msgstr "" diff --git a/crm_tag_team/models/__init__.py b/crm_tag_team/models/__init__.py new file mode 100644 index 00000000000..cb3133d602e --- /dev/null +++ b/crm_tag_team/models/__init__.py @@ -0,0 +1 @@ +from . import crm_tag diff --git a/crm_tag_team/models/crm_tag.py b/crm_tag_team/models/crm_tag.py new file mode 100644 index 00000000000..30af1847590 --- /dev/null +++ b/crm_tag_team/models/crm_tag.py @@ -0,0 +1,12 @@ +from odoo import fields, models + + +class Tag(models.Model): + _inherit = [ + "crm.tag", + ] + + sales_team_ids = fields.Many2many( + "crm.team", + string="Teams", + ) diff --git a/crm_tag_team/pyproject.toml b/crm_tag_team/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/crm_tag_team/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/crm_tag_team/readme/CONTRIBUTORS.md b/crm_tag_team/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..a481c3c33ab --- /dev/null +++ b/crm_tag_team/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +Cyril VINH-TUNG \<\> +Vehiana TEPUHIARII \<\> diff --git a/crm_tag_team/readme/DESCRIPTION.md b/crm_tag_team/readme/DESCRIPTION.md new file mode 100644 index 00000000000..4610cc22000 --- /dev/null +++ b/crm_tag_team/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module allows assigning crm tags to sales teams, making them filtered in CRM leads. diff --git a/crm_tag_team/static/description/index.html b/crm_tag_team/static/description/index.html new file mode 100644 index 00000000000..46007c7c5f9 --- /dev/null +++ b/crm_tag_team/static/description/index.html @@ -0,0 +1,422 @@ + + + + + +CRM Tags Sales Team + + + +
+

CRM Tags Sales Team

+ + +

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

+

This module allows assigning crm tags to sales teams, making them +filtered in CRM leads.

+

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

+
    +
  • INVITU
  • +
+
+
+

Contributors

+

Cyril VINH-TUNG <cyril@invitu.com> Vehiana TEPUHIARII <vehi@invitu.com>

+
+
+

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/crm project on GitHub.

+

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

+
+
+
+ + diff --git a/crm_tag_team/views/crm_lead_views.xml b/crm_tag_team/views/crm_lead_views.xml new file mode 100644 index 00000000000..10b114d192c --- /dev/null +++ b/crm_tag_team/views/crm_lead_views.xml @@ -0,0 +1,24 @@ + + + + crm.lead.form.tag + crm.lead + + + + + + ['|', ('sales_team_ids', '=', False),('sales_team_ids', 'in', team_id)] + + + + + ['|', ('sales_team_ids', '=', False),('sales_team_ids', 'in', team_id)] + + + + + diff --git a/crm_tag_team/views/crm_tag_views.xml b/crm_tag_team/views/crm_tag_views.xml new file mode 100644 index 00000000000..83089256351 --- /dev/null +++ b/crm_tag_team/views/crm_tag_views.xml @@ -0,0 +1,25 @@ + + + + crm.tag.form.sales.team + crm.tag + + + + + + + + + + crm.tag.tree.sales.team + crm.tag + + + + + + + + +