@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-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/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
import models |
||||
|
|
@ -0,0 +1,44 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-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': 'Recurrent Task In Project', |
||||
|
'version': '9.0.1.0.0', |
||||
|
'summary': """Create Recurrent Task in Project""", |
||||
|
'description': 'This module helps you to create recurrent task in project', |
||||
|
'category': 'Project Management', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'website': "http://www.cybrosys.com", |
||||
|
'depends': ['base', 'project', 'subscription'], |
||||
|
'data': [ |
||||
|
'demo/demo_data.xml', |
||||
|
'views/recurrent_task_view.xml', |
||||
|
'views/approve_recurrent_task_view.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'LGPL-3', |
||||
|
'demo': [], |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
<record id="recurrent_document_22" model="subscription.document"> |
||||
|
<field name="name">Recurrent Task</field> |
||||
|
<field name="model" ref="project.model_project_task"/> |
||||
|
</record> |
||||
|
</data> |
||||
|
</openerp> |
@ -0,0 +1,26 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-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/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
import recurrent_task_wizard |
||||
|
import approve_recurrent_task |
||||
|
|
||||
|
|
@ -0,0 +1,69 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-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/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from openerp import models, fields, api, _ |
||||
|
|
||||
|
|
||||
|
class ApproveRecurrentTask(models.Model): |
||||
|
_name = 'approve.recurrent.task' |
||||
|
|
||||
|
task = fields.Many2one('project.task', string='Task') |
||||
|
project = fields.Many2one('project.project', string='Project') |
||||
|
user_id = fields.Many2one('res.users', string='Requested user') |
||||
|
team_lead = fields.Many2one('res.users', string='Team lead') |
||||
|
from_date = fields.Datetime(string='Start time') |
||||
|
interval_number = fields.Integer(string='Interval Qty') |
||||
|
interval_type = fields.Selection([('days', 'Days'), |
||||
|
('weeks', 'Weeks'), |
||||
|
('months', 'Months')], string='Interval Unit') |
||||
|
name = fields.Char(string='Name') |
||||
|
state = fields.Selection([ |
||||
|
('waiting', 'Waiting For Approval '), |
||||
|
('approved', 'Approved'), |
||||
|
('rejected', 'Rejected'), |
||||
|
], 'Status', readonly=True, default='waiting', select=True) |
||||
|
reason = fields.Text(string='Reason') |
||||
|
|
||||
|
@api.multi |
||||
|
def approve_recurrent_task(self): |
||||
|
doc_id = self.env.ref('project_recurrent_task.recurrent_document_22') |
||||
|
rec_inv_doc = self.env['subscription.subscription'] |
||||
|
rec_inv_doc_id = rec_inv_doc.create({'name': self.name + ' ' + 'Task', |
||||
|
'interval_type': self.interval_type, |
||||
|
'interval_number': self.interval_number, |
||||
|
'doc_source': doc_id.model.model + ',' + str(self.task.id), |
||||
|
}) |
||||
|
rec_inv_doc_id.set_process() |
||||
|
self.state = 'approved' |
||||
|
|
||||
|
|
||||
|
class WizardReason(models.Model): |
||||
|
_name = 'wizard.reason' |
||||
|
|
||||
|
@api.multi |
||||
|
def send_reason(self): |
||||
|
context = self._context |
||||
|
approval_obj = self.env['approve.recurrent.task'].search([('id', '=', context.get('approval_id'))]) |
||||
|
approval_obj.write({'state': 'rejected', |
||||
|
'reason': self.reason}) |
||||
|
|
||||
|
reason = fields.Text(string="Reason") |
@ -0,0 +1,52 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-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/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
from datetime import datetime |
||||
|
from openerp import models, fields, api, _ |
||||
|
|
||||
|
|
||||
|
class RecurrentTaskWizard(models.TransientModel): |
||||
|
_name = "wizard.recurrent.task" |
||||
|
_description = "Recurrent Task" |
||||
|
|
||||
|
name = fields.Char(string='Recurrent document name') |
||||
|
interval_number = fields.Integer(string='Interval Qty') |
||||
|
interval_type = fields.Selection([('days', 'Days'), |
||||
|
('weeks', 'Weeks'), |
||||
|
('months', 'Months')], string='Interval Unit') |
||||
|
|
||||
|
@api.multi |
||||
|
def create_recurrent_task(self): |
||||
|
obj = self.env['approve.recurrent.task'] |
||||
|
task_id = self.env['project.task'].browse(self._context.get('task_id')) |
||||
|
obj.create({ |
||||
|
'task': task_id.id, |
||||
|
'project': task_id.project_id.id, |
||||
|
'user_id': self.env.user.id, |
||||
|
'team_lead': task_id.project_id.user_id.id, |
||||
|
'from_date': datetime.today(), |
||||
|
'interval_number': self.interval_number, |
||||
|
'interval_type': self.interval_type, |
||||
|
'name': self.name |
||||
|
}) |
||||
|
|
||||
|
|
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,120 @@ |
|||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h2 class="oe_slogan">Recurrent Task In Project</h2> |
||||
|
<h3 class="oe_slogan">Create Recurrent Task in Project</h3> |
||||
|
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4> |
||||
|
<div> |
||||
|
<h4><p>Features:</p></h4> |
||||
|
<ul> |
||||
|
<li style="list-style:none !important;"><span style="color:green;"> ☑</span> Create recurrent task in project.</li> |
||||
|
<li style="list-style:none !important;"><span style="color:green;"> ☑</span> Send recurrent task request to team lead.</li> |
||||
|
<li style="list-style:none !important;"><span style="color:green;"> ☑</span> Approve request by team lead</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h3 class="oe_slogan">Create recurrent task in project</h3> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="rec_task.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<p class="oe_mt32"> |
||||
|
Users can send a request to corresponding project manager for creating recurrent task from task's form. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="wizard.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<p class="oe_mt32"> |
||||
|
Here users can give specific interval type and interval quantity for recurrence. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="tasks.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h3 class="oe_slogan">Approve request by team lead</h3> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="req.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<p class="oe_mt32"> |
||||
|
<p>Project ---> Recurrent Task Requests ---> Recurrent Task Requests</p> |
||||
|
<p>Here current user can get recurrent task request. So he can approve request or reject |
||||
|
request with a reason. If he approve the request task will be recurrently created |
||||
|
according to the interval type and interval quantity.</p> |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="reason.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h3 class="oe_slogan">My Requests</h3> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="myreq.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<p class="oe_mt32"> |
||||
|
<p>Project ---> Recurrent Task Requests ---> My Requests</p> |
||||
|
<p>Here current user can track their requests</p> |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container"> |
||||
|
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
||||
|
<div class="oe_slogan" style="margin-top:10px !important;"> |
||||
|
<div> |
||||
|
<a class="btn btn-primary btn-lg mt8" |
||||
|
style="color: #FFFFFF !important;border-radius: 0;" href="http://www.cybrosys.com"><i |
||||
|
class="fa fa-envelope"></i> Email </a> <a |
||||
|
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
||||
|
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;border-radius: 0;" |
||||
|
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i |
||||
|
class="fa fa-check-square"></i> Request Customization </a> |
||||
|
</div> |
||||
|
<br> |
||||
|
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
||||
|
<div> |
||||
|
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> |
||||
|
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> |
||||
|
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> |
||||
|
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> |
||||
|
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 105 KiB |
After Width: | Height: | Size: 77 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,145 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
<record model='ir.ui.view' id='wizard_reason_form'> |
||||
|
<field name="name">wizard.reason.form</field> |
||||
|
<field name="model">wizard.reason</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Update Reason"> |
||||
|
<group> |
||||
|
<field name="reason" required="True"/> |
||||
|
</group> |
||||
|
<footer> |
||||
|
<button name="send_reason" string="Send" type="object" class="oe_highlight"/> |
||||
|
or |
||||
|
<button string="Cancel" class="oe_link" special="cancel" /> |
||||
|
</footer> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model='ir.actions.act_window' id='wizard_reason_act'> |
||||
|
<field name="name">Update Reason</field> |
||||
|
<field name="res_model">wizard.reason</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="view_id" ref="wizard_reason_form"/> |
||||
|
<field name="target">new</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model='ir.ui.view' id='approve_recurrent_task_form_view'> |
||||
|
<field name="name">approve.recurrent.task.form</field> |
||||
|
<field name="model">approve.recurrent.task</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form create="false" edit="false"> |
||||
|
<header> |
||||
|
<button name="approve_recurrent_task" string="Approve" class="btn-primary" type="object" states="waiting"/> |
||||
|
<button class="btn-primary" name="%(wizard_reason_act)d" string="Reject" type="action" states="waiting" |
||||
|
context="{'approval_id':id}"/> |
||||
|
<field name="state" widget="statusbar" statusbar_visible="waiting,approved,rejected"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="name" readonly="1"/> |
||||
|
<field name="task" readonly="1"/> |
||||
|
<field name="project" readonly="1"/> |
||||
|
<field name="user_id" readonly="1"/> |
||||
|
<field name="team_lead" readonly="1" invisible="1"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="from_date" readonly="1"/> |
||||
|
<field name="interval_number" readonly="1"/> |
||||
|
<field name="interval_type" readonly="1"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="reason" readonly="1" attrs="{'invisible': [('state', '!=', 'rejected')]}"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model='ir.ui.view' id='approve_recurrent_task_form_view1'> |
||||
|
<field name="name">approve.recurrent.task.form1</field> |
||||
|
<field name="model">approve.recurrent.task</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form create="false" edit="false"> |
||||
|
<header> |
||||
|
<field name="state" widget="statusbar" statusbar_visible="waiting,approved,rejected"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="name" readonly="1"/> |
||||
|
<field name="task" readonly="1"/> |
||||
|
<field name="project" readonly="1"/> |
||||
|
<field name="user_id" readonly="1"/> |
||||
|
<field name="team_lead" readonly="1" invisible="1"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="from_date" readonly="1"/> |
||||
|
<field name="interval_number" readonly="1"/> |
||||
|
<field name="interval_type" readonly="1"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="reason" readonly="1" attrs="{'invisible': [('state', '!=', 'rejected')]}"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model='ir.ui.view' id='approve_recurrent_task_tree_view'> |
||||
|
<field name="name">approve.recurrent.task.tree</field> |
||||
|
<field name="model">approve.recurrent.task</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree create="false" edit="false" colors="green:state == 'approved';red:state == 'rejected';"> |
||||
|
<field name="user_id" /> |
||||
|
<field name="task" /> |
||||
|
<field name="project" /> |
||||
|
<field name="team_lead" /> |
||||
|
<field name="state" /> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="action_approve_recurrent_task" model="ir.actions.act_window"> |
||||
|
<field name="name">Approve Recurrent Task</field> |
||||
|
<field name="type">ir.actions.act_window</field> |
||||
|
<field name="res_model">approve.recurrent.task</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="domain">[('team_lead','=', uid)]</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="action_approve_recurrent_task1" model="ir.actions.act_window"> |
||||
|
<field name="name">My Requests</field> |
||||
|
<field name="type">ir.actions.act_window</field> |
||||
|
<field name="res_model">approve.recurrent.task</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
<field name="domain">[('user_id','=', uid)]</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.actions.act_window.view" id="action_approve_recurrent_task11"> |
||||
|
<field name="sequence" eval="2"/> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="view_id" ref="approve_recurrent_task_form_view1"/> |
||||
|
<field name="act_window_id" ref="action_approve_recurrent_task1"/> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.actions.act_window.view" id="action_approve_recurrent_task12"> |
||||
|
<field name="sequence" eval="1"/> |
||||
|
<field name="view_mode">tree</field> |
||||
|
<field name="view_id" ref="approve_recurrent_task_tree_view"/> |
||||
|
<field name="act_window_id" ref="action_approve_recurrent_task1"/> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem name="Recurrent Task Requests" parent="base.menu_main_pm" id="approve_recurrent_task_menu" sequence="4"/> |
||||
|
<menuitem name="Recurrent Task Requests" parent="project_recurrent_task.approve_recurrent_task_menu" id="approve_recurrent_task_sub_menu" action="action_approve_recurrent_task" sequence="1"/> |
||||
|
<menuitem name="My Requests" parent="project_recurrent_task.approve_recurrent_task_menu" id="amy_requests_sub_menu" action="action_approve_recurrent_task1" sequence="2"/> |
||||
|
</data> |
||||
|
</openerp> |
@ -0,0 +1,50 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
<record model='ir.ui.view' id='wizard_recurrent_task_form_view'> |
||||
|
<field name="name">wizard.recurrent.task.form</field> |
||||
|
<field name="model">wizard.recurrent.task</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Recurrent Task"> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="name"/> |
||||
|
<field name="interval_number"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="interval_type"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<footer> |
||||
|
<button name="create_recurrent_task" type="object" default_focus="1" |
||||
|
string="Proceed" class="oe_highlight" |
||||
|
icon="fa-tasks"/> |
||||
|
or |
||||
|
<button string="Cancel" class="oe_link" special="cancel" /> |
||||
|
</footer> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model='ir.actions.act_window' id='wizard_recurrent_task_act'> |
||||
|
<field name="name">Recurrent Task</field> |
||||
|
<field name="res_model">wizard.recurrent.task</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="view_id" ref="wizard_recurrent_task_form_view"/> |
||||
|
<field name="target">new</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="project_task_inherit_form_view"> |
||||
|
<field name="name">Task Form</field> |
||||
|
<field name="model">project.task</field> |
||||
|
<field name="inherit_id" ref="project.view_task_form2"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//header/field[@name='stage_id']" position="before"> |
||||
|
<button string="Create Recurrent Task" name="%(wizard_recurrent_task_act)d" |
||||
|
type="action" class="btn-primary" context="{'task_id':id}"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</openerp> |