diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..c1a80d34efc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer diff --git a/__init__.py b/__init__.py index 7e79dff33ad..0650744f6bc 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1 @@ -# Part of Odoo. See LICENSE file for full copyright and licensing details. - - from . import models diff --git a/__manifest__.py b/__manifest__.py index 0384b0863e5..cf562dd3fb6 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,19 +1,19 @@ -# Part of Odoo. See LICENSE file for full copyright and licensing details. +# Copyright 2024 Invitu SARL +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { - 'name': 'CRM Tags Sales Team', - 'author': 'INVITU, Cyril VINH-TUNG', - 'website': 'https://www.invitu.com', - 'version': '1.0', - 'category': 'CRM', - 'description': """ -This module adds a filter by sales_team for crm_tag. -=========================================================================== - - """, - 'depends': ['crm'], - 'data': [ - 'views/crm_tag_views.xml', - 'views/crm_lead_views.xml', + "name": "CRM Tags Sales Team", + "summary": "This module adds a filter by sales_team for crm_tags", + "author": "INVITU, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/crm", + "version": "17.0.1.0", + "license": "AGPL-3", + "category": "Customer Relationship Management", + "depends": [ + "crm", ], - 'installable': True, + "data": [ + "views/crm_tag_views.xml", + "views/crm_lead_views.xml", + ], + "installable": True, } diff --git a/models/__init__.py b/models/__init__.py index 0976393784e..cb3133d602e 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,4 +1 @@ -# Part of Odoo. See LICENSE file for full copyright and licensing details. - - from . import crm_tag diff --git a/models/crm_tag.py b/models/crm_tag.py index a4089b876a7..731200d8526 100644 --- a/models/crm_tag.py +++ b/models/crm_tag.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - from odoo import fields, models diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000000..e69de29bb2d diff --git a/views/crm_lead_views.xml b/views/crm_lead_views.xml index 9c1d8c05619..28bf9bad309 100644 --- a/views/crm_lead_views.xml +++ b/views/crm_lead_views.xml @@ -6,6 +6,11 @@ + + + ['|', ('sales_team_ids', '=', False),('sales_team_ids', 'in', team_id)] + + ['|', ('sales_team_ids', '=', False),('sales_team_ids', 'in', team_id)]