@ -0,0 +1,2 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
import block_archeived_contacts |
@ -0,0 +1,39 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
||||
|
# Author: Jesni Banu(<http://www.cybrosys.com>) |
||||
|
# 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 <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
{ |
||||
|
'name': 'Block Archived or Inactive Users', |
||||
|
'version': '8.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', |
||||
|
'category': 'Project Management', |
||||
|
'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, |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
from openerp import models, fields, api, _, tools |
||||
|
|
||||
|
|
||||
|
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')]) |
||||
|
reviewer_id = fields.Many2one('res.users', 'Reviewer', select=True, track_visibility='onchange', |
||||
|
domain=[('active', '=', 'True'), ('partner_id.active', '=', 'True')]) |
||||
|
partner_id = fields.Many2one('res.partner', 'Customer', domain=[('active', '=', 'True')]) |
||||
|
|
||||
|
|
||||
|
class ProjectProjectInherit(models.Model): |
||||
|
_inherit = 'project.project' |
||||
|
|
||||
|
user_id = fields.Many2one('res.users', 'Project Manager', |
||||
|
domain=[('active', '=', 'True'), ('partner_id.active', '=', 'True')]) |
||||
|
members = fields.Many2many('res.users', 'project_user_rel', 'project_id', 'uid', 'Project Members', |
||||
|
help="Project's members are users who can have an access to the tasks related to this project.", |
||||
|
states={'close': [('readonly', True)], 'cancelled': [('readonly', True)]}, |
||||
|
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')]) |
||||
|
|
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 125 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,130 @@ |
|||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h2 class="oe_slogan">Block Archived or Inactive Users</h2> |
||||
|
<h3 class="oe_slogan">Block Archived or Inactive users from Assignee</h3> |
||||
|
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4> |
||||
|
</div> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div> |
||||
|
♠This module allows you to block Archived or Inactive users from assigning task and set as project manager. </div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<p class='oe_mt32'> |
||||
|
☛You can Archive or Inactive your users |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="2.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="4.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<p class='oe_mt32'> |
||||
|
☛Task |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<p class='oe_mt32'> |
||||
|
Before |
||||
|
</p> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="1.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<p class='oe_mt32'> |
||||
|
After |
||||
|
</p> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="3.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<p class='oe_mt32'> |
||||
|
☛Project |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<p class='oe_mt32'> |
||||
|
Before |
||||
|
</p> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="7.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<p class='oe_mt32'> |
||||
|
After |
||||
|
</p> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="8.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<p class='oe_mt32'> |
||||
|
☛Issue |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<p class='oe_mt32'> |
||||
|
Before |
||||
|
</p> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="10.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span6"> |
||||
|
<p class='oe_mt32'> |
||||
|
After |
||||
|
</p> |
||||
|
<div class="oe_demo oe_picture oe_screenshot"> |
||||
|
<img style="border:10px solid white;" src="9.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<h2 class="oe_slogan">Need Any Help?</h2> |
||||
|
<div class="oe_slogan"> |
||||
|
<a class="btn btn-primary btn-lg mt8" |
||||
|
style="color: #FFFFFF !important;" href="http://www.cybrosys.com/contact/"><i |
||||
|
class="fa fa-envelope"></i> Email </a> <a |
||||
|
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;" |
||||
|
href="http://www.cybrosys.com/contact/"><i |
||||
|
class="fa fa-phone"></i> Contact Us </a> <a |
||||
|
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;" |
||||
|
href="http://www.cybrosys.com/contact/"><i |
||||
|
class="fa fa-check-square"></i> Request Customization </a> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
|
||||
|
|