diff --git a/project_block_archived_contacts/__init__.py b/project_block_archived_contacts/__init__.py new file mode 100644 index 000000000..24d81ea8f --- /dev/null +++ b/project_block_archived_contacts/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2015-TODAY Cybrosys Technologies(). +# Author: Jesni Banu() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +import block_archeived_contacts diff --git a/project_block_archived_contacts/__openerp__.py b/project_block_archived_contacts/__openerp__.py new file mode 100644 index 000000000..3af1c4e7c --- /dev/null +++ b/project_block_archived_contacts/__openerp__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2015-TODAY Cybrosys Technologies(). +# Author: Jesni Banu() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Block Inactive Users in Project', + 'version': '9.0.1.0', + 'summary': 'Block Archived or Inactive users from Assignation of Project/Task/Issue', + 'description': 'This module allows you to block Archived or Inactive users from Assignation of project', + 'category': 'Project', + 'author': 'Cybrosys Techno Solutions', + 'website': 'http://www.cybrosys.com', + 'company': 'Cybrosys Techno Solutions', + 'depends': ['base', 'project_issue'], + 'data': [], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/project_block_archived_contacts/__openerp__.py~ b/project_block_archived_contacts/__openerp__.py~ new file mode 100644 index 000000000..e5106e1c3 --- /dev/null +++ b/project_block_archived_contacts/__openerp__.py~ @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2015-TODAY Cybrosys Technologies(). +# Author: Jesni Banu() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Block Inactive Users in Project', + 'version': '9.0.1.0', + 'summary': 'Block archived or Inactive users from Assignation of project', + 'description': 'This module allows you to block Archived or Inactive users from Assignation of project', + 'category': 'Project', + 'author': 'Cybrosys Techno Solutions', + 'website': 'http://www.cybrosys.com', + 'company': 'Cybrosys Techno Solutions', + 'depends': ['base', 'project_issue'], + 'data': [], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/project_block_archived_contacts/block_archeived_contacts.py b/project_block_archived_contacts/block_archeived_contacts.py new file mode 100644 index 000000000..3ce823630 --- /dev/null +++ b/project_block_archived_contacts/block_archeived_contacts.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2015-TODAY Cybrosys Technologies(). +# Author: Jesni Banu() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +from openerp import models, fields, api, _ + + +class ProjectTaskInherit(models.Model): + _inherit = 'project.task' + + user_id = fields.Many2one('res.users', 'Assigned to', select=True, track_visibility='onchange', + domain=[('active', '=', 'True'), ('partner_id.active', '=', 'True')]) + + +class ProjectProjectInherit(models.Model): + _inherit = 'project.project' + + user_id = fields.Many2one('res.users', 'Project Manager', + domain=[('active', '=', 'True'), ('partner_id.active', '=', 'True')]) + + +class ProjectIssueInherit(models.Model): + _inherit = 'project.issue' + + user_id = fields.Many2one('res.users', 'Assigned to', required=False, select=1, track_visibility='onchange', + domain=[('active', '=', 'True'), ('partner_id.active', '=', 'True')]) + partner_id = fields.Many2one('res.partner', 'Contact', select=1, + domain=[('active', '=', 'True')]) + + +class AccountAnalyticLine(models.Model): + _inherit = 'account.analytic.line' + + @api.model + def _default_user(self): + return self.env.context.get('user_id', self.env.user.id) + + user_id = fields.Many2one('res.users', string='User', default=_default_user, + domain=[('active', '=', 'True'), ('partner_id.active', '=', 'True')]) + diff --git a/project_block_archived_contacts/static/description/1.png b/project_block_archived_contacts/static/description/1.png new file mode 100644 index 000000000..fa7a191ef Binary files /dev/null and b/project_block_archived_contacts/static/description/1.png differ diff --git a/project_block_archived_contacts/static/description/10.png b/project_block_archived_contacts/static/description/10.png new file mode 100644 index 000000000..36925bbc2 Binary files /dev/null and b/project_block_archived_contacts/static/description/10.png differ diff --git a/project_block_archived_contacts/static/description/2.png b/project_block_archived_contacts/static/description/2.png new file mode 100644 index 000000000..ab4fdc8fe Binary files /dev/null and b/project_block_archived_contacts/static/description/2.png differ diff --git a/project_block_archived_contacts/static/description/3.png b/project_block_archived_contacts/static/description/3.png new file mode 100644 index 000000000..fdfca0105 Binary files /dev/null and b/project_block_archived_contacts/static/description/3.png differ diff --git a/project_block_archived_contacts/static/description/4.png b/project_block_archived_contacts/static/description/4.png new file mode 100644 index 000000000..ef6cdc1d9 Binary files /dev/null and b/project_block_archived_contacts/static/description/4.png differ diff --git a/project_block_archived_contacts/static/description/7.png b/project_block_archived_contacts/static/description/7.png new file mode 100644 index 000000000..d284645d0 Binary files /dev/null and b/project_block_archived_contacts/static/description/7.png differ diff --git a/project_block_archived_contacts/static/description/8.png b/project_block_archived_contacts/static/description/8.png new file mode 100644 index 000000000..228b148a0 Binary files /dev/null and b/project_block_archived_contacts/static/description/8.png differ diff --git a/project_block_archived_contacts/static/description/9.png b/project_block_archived_contacts/static/description/9.png new file mode 100644 index 000000000..62539314f Binary files /dev/null and b/project_block_archived_contacts/static/description/9.png differ diff --git a/project_block_archived_contacts/static/description/banner.jpg b/project_block_archived_contacts/static/description/banner.jpg new file mode 100644 index 000000000..9d7b777d2 Binary files /dev/null and b/project_block_archived_contacts/static/description/banner.jpg differ diff --git a/project_block_archived_contacts/static/description/icon.png b/project_block_archived_contacts/static/description/icon.png new file mode 100644 index 000000000..2064a4150 Binary files /dev/null and b/project_block_archived_contacts/static/description/icon.png differ diff --git a/project_block_archived_contacts/static/description/index.html b/project_block_archived_contacts/static/description/index.html new file mode 100644 index 000000000..f585de710 --- /dev/null +++ b/project_block_archived_contacts/static/description/index.html @@ -0,0 +1,140 @@ +
+
+

Block Archived or Inactive Users in Project Module

+

Author : Cybrosys Techno Solutions , www.cybrosys.com

+
+
+
+ This module allows you to block Archived or Inactive users from assigning task/issue and set as project manager.
+
+ +
+ +
+
+
+

+ ☛ You can Archive or Inactive your users +

+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+

+ ☛Task +

+
+
+

+ Before +

+
+ +
+
+
+

+ After +

+
+ +
+
+
+
+ +
+
+
+

+ ☛Project +

+
+
+

+ Before +

+
+ +
+
+
+

+ After +

+
+ +
+
+
+
+ +
+
+
+

+ ☛Issue +

+
+
+

+ Before +

+
+ +
+
+
+

+ After +

+
+ +
+
+
+
+ +
+

Need Any Help?

+ +
+ + + + +