Browse Source

[ADD] Initial Commit

pull/81/head
SHEREEF PT 8 years ago
parent
commit
14b7b6f447
  1. 25
      project_scrum_report/__init__.py
  2. 46
      project_scrum_report/__openerp__.py
  3. 24
      project_scrum_report/models/__init__.py
  4. 145
      project_scrum_report/models/project_scrum.py
  5. 117
      project_scrum_report/reports/project_scrum_report.xml
  6. 11
      project_scrum_report/security/ir.model.access.csv
  7. BIN
      project_scrum_report/static/description/banner.jpg
  8. BIN
      project_scrum_report/static/description/cybro_logo.png
  9. BIN
      project_scrum_report/static/description/email.png
  10. BIN
      project_scrum_report/static/description/icon.png
  11. 183
      project_scrum_report/static/description/index.html
  12. BIN
      project_scrum_report/static/description/my_scrum.png
  13. BIN
      project_scrum_report/static/description/report.png
  14. BIN
      project_scrum_report/static/description/scrum2.png
  15. BIN
      project_scrum_report/static/description/scrum_3.png
  16. BIN
      project_scrum_report/static/description/scrum_discuss.png
  17. BIN
      project_scrum_report/static/description/scrum_plan.png
  18. BIN
      project_scrum_report/static/description/scrum_report.png
  19. 191
      project_scrum_report/views/project_scrum_view.xml
  20. 61
      project_scrum_report/views/scrum_plan_view.xml
  21. 61
      project_scrum_report/views/scrum_report_view.xml
  22. 10
      salon_management/views/salon_data.xml

25
project_scrum_report/__init__.py

@ -0,0 +1,25 @@
# -*- 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

46
project_scrum_report/__openerp__.py

@ -0,0 +1,46 @@
# -*- 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': 'Scrum Plan & Report in Project',
'version': '9.0.2.0.0',
'summary': """Implementation of Scrum Plan and Scrum Report in Project""",
'description': 'This module helps you to track scrum plan and scrum report',
'category': 'Project Management',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com",
'depends': ['base', 'project', 'mail'],
'data': [
'security/ir.model.access.csv',
'views/project_scrum_view.xml',
'views/scrum_plan_view.xml',
'views/scrum_report_view.xml',
'reports/project_scrum_report.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'demo': [],
'installable': True,
'auto_install': False,
'application': False,
}

24
project_scrum_report/models/__init__.py

@ -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 project_scrum

145
project_scrum_report/models/project_scrum.py

@ -0,0 +1,145 @@
# -*- 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, api, fields, _
class ProjectScrum(models.Model):
_name = 'project.scrum'
name = fields.Char(string='Scrum Code')
user_id = fields.Many2one('res.users', string='User')
date = fields.Date(string='Date')
scrum_plan = fields.One2many('scrum.plan', 'scrum_plan_obj', string='Scrum Plan')
scrum_report = fields.One2many('scrum.report', 'scrum_report_obj', string='Scrum Report')
state = fields.Selection([('plan', 'Scrum Plan'),
('working', 'Working'),
('report', 'Scrum Report'),
('done', 'Done')], string='State', default='plan', readonly=1)
_sql_constraints = [('scrum_unique', 'unique(user_id, date)', 'A user can only have one Scrum with same date')]
_defaults = {
'user_id': lambda obj, cr, uid, context: uid,
'date': lambda *a: datetime.now().strftime('%Y-%m-%d')
}
@api.multi
def create_scrum_report(self):
scrum_report_obj = self.env['scrum.report']
for each in self.scrum_plan:
scrum_report_obj.create({'task': each.task.id,
'project': each.project.id,
'scrum_report_obj': each.scrum_plan_obj.id,
'worked_hrs': each.planned_hrs,
'remarks': each.remarks,
'date': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
'status': each.status
})
self.state = 'report'
@api.model
def create(self, vals):
result = super(ProjectScrum, self).create(vals)
result['name'] = 'Scrum_' + result['date'] + '_' + result['user_id'].name
result['state'] = 'working'
return result
@api.multi
def send(self):
email_from = self.env['mail.message']._get_default_from()
partner_ids = [3]
mail_content = "Hi sir, <br/> Please go through the work report of today.<br/> <br/>"
mail_content += "<table border='3px solid black' width='100%'>" \
"<tr>" \
"<th>SI NO</th><th>TASK</th><th>PROJECT</th><th>WORKED HOURS</th><th>STATUS</th><th>REMARKS" \
"</th></tr>"
count = 1
for each in self.scrum_report:
if each.project.user_id.partner_id.id not in partner_ids:
partner_ids.append(each.project.user_id.partner_id.id)
mail_content += "<tr>" \
"<td style='text-align: center;'>%s</td><td>%s</td><td>%s</td>" \
"<td style='text-align: center;'>%s</td><td>%s</td><td>%s</td></tr>"\
% (count, each.task.name, each.project.name, each.worked_hrs,
dict(self.env['scrum.report'].fields_get(['status'])['status']['selection'])[each.status]
, each.remarks)
count += 1
mail_content += "</table>"
message = self.env['mail.message'].create({
'subject': _('Daily Work Report_%s_%s') % (self.date, self.user_id.name),
'body': mail_content,
'email_from': email_from,
'reply_to': self.user_id.email,
'no_auto_thread': True,
'model': 'project.scrum'
})
message.write({'needaction_partner_ids': [(4, pid) for pid in partner_ids]})
message.write({'partner_ids': [(4, pid) for pid in partner_ids]})
admin_partner = self.env['res.partner'].browse(3)
main_content1 = {
'subject': _('Daily Work Report_%s_%s') % (self.date, self.user_id.name),
'author_id': self.user_id.partner_id.id,
'body_html': mail_content,
'email_to': admin_partner.email,
}
self.env['mail.mail'].create(main_content1).send()
self.state = 'done'
class ScrumPlan(models.Model):
_name = 'scrum.plan'
name = fields.Char(string='Scrum Code', related='scrum_plan_obj.name', store=1)
user_id = fields.Many2one('res.users', string='User', related='scrum_plan_obj.user_id', store=1)
project_manager = fields.Many2one('res.users', related='project.user_id', store=1)
date = fields.Datetime(string='Date', store=1, default=datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
task = fields.Many2one('project.task', string='Task', required=1)
project = fields.Many2one('project.project', string='Project', related='task.project_id')
status = fields.Selection([('scheduled', 'Scheduled'),
('on_going', 'On going'),
('halted', 'Halted'),
], required=1, string='Status')
remarks = fields.Text(string='Remarks', required=1)
planned_hrs = fields.Float(string='Planned Hours', required=1)
scrum_plan_obj = fields.Many2one('project.scrum', invisible=1)
class ScrumReport(models.Model):
_name = 'scrum.report'
project_manager = fields.Many2one('res.users', related='project.user_id', store=1)
name = fields.Char(string='Scrum Code', related='scrum_report_obj.name', store=1)
user_id = fields.Many2one('res.users', string='User', related='scrum_report_obj.user_id', store=1)
date = fields.Datetime(string='Date', store=1)
task = fields.Many2one('project.task', string='Task', required=1)
project = fields.Many2one('project.project', string='Project', related='task.project_id')
status = fields.Selection([('scheduled', 'Scheduled'),
('on_going', 'On going'),
('halted', 'Halted'),
('completed', 'Completed')], required=1, string='Status')
remarks = fields.Text(string='Remarks', required=1)
worked_hrs = fields.Float(string='Worked Hours', required=1)
scrum_report_obj = fields.Many2one('project.scrum', invisible=1)

117
project_scrum_report/reports/project_scrum_report.xml

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_scrum">
<t t-call="report.html_container">
<t t-call="report.internal_layout">
<t t-foreach="docs" t-as="data">
<div class="page">
<div class="header" style="text-align:center;"><h1><strong><p t-esc="data.name"/></strong></h1></div>
<div class="row mt32 mb32" style="text-align:center;">
<t t-if="data">
<div class="col-xs-6">
<strong>User</strong>
<p t-esc="data.user_id.name"/>
</div>
<div class="col-xs-6">
<strong>Date</strong>
<p t-esc="data.date"/>
</div>
</t>
</div>
<div style="text-align:center;"><h3><strong>Scrum Plan</strong></h3></div>
<br/>
<table class="table table-condensed" border='3px solid black' width='100%'>
<thead>
<tr>
<th>SI NO</th>
<th>TASK</th>
<th>PROJECT</th>
<th>PLANNED HOURS</th>
<th>STATUS</th>
<th>REMARKS</th>
</tr>
</thead>
<t t-set="i" t-value="1" />
<tbody>
<t t-foreach="data.scrum_plan" t-as="workload">
<tr>
<td>
<span t-esc="i"/>
<t t-set="i" t-value="i+1"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.task.name"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.project.name"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.planned_hrs"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.status"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.remarks"/>
</td>
</tr>
</t>
</tbody>
</table>
<br/>
<br/>
<div style="text-align:center;"><h3><strong>Scrum Report</strong></h3></div>
<br/>
<table class="table table-condensed" border='3px solid black' width='100%'>
<thead>
<tr>
<th>SI NO</th>
<th>TASK</th>
<th>PROJECT</th>
<th>WORKED HOURS</th>
<th>STATUS</th>
<th>REMARKS</th>
</tr>
</thead>
<t t-set="i" t-value="1" />
<tbody>
<t t-foreach="data.scrum_report" t-as="workload">
<tr>
<td>
<span t-esc="i"/>
<t t-set="i" t-value="i+1"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.task.name"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.project.name"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.worked_hrs"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.status"/>
</td>
<td>
<span t-att-style="style" t-esc="workload.remarks"/>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</t>
</t>
</t>
</template>
<report id="action_scrum_report1"
model="project.scrum"
report_type="qweb-pdf"
string="Project Scrum"
name="project_scrum_report.report_scrum"
file="project_scrum_report.report_scrum"/>
</data>
</openerp>

11
project_scrum_report/security/ir.model.access.csv

@ -0,0 +1,11 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_scrum_plan_user,scrum.plan.user,model_scrum_plan,base.group_user,1,0,0,0
access_scrum_plan_project_user,scrum.plan.project.user,model_scrum_plan,project.group_project_user,1,1,1,1
access_scrum_plan_manager,scrum.plan.manager,model_scrum_plan,project.group_project_manager,1,0,0,0
access_scrum_report_user,scrum.report.user,model_scrum_report,base.group_user,1,0,0,0
access_scrum_report_project_user,scrum.report.project.user,model_scrum_report,project.group_project_user,1,1,1,1
access_scrum_report_manager,scrum.report.manager,model_scrum_report,project.group_project_manager,1,0,0,0
access_project_scrum_user,project.scrum.user,model_project_scrum,base.group_user,1,0,0,0
access_project_scrum_project_user,project.scrum.project.user,model_project_scrum,project.group_project_user,1,1,1,1
access_project_scrum_manager,project.scrum.manager,model_project_scrum,project.group_project_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_scrum_plan_user scrum.plan.user model_scrum_plan base.group_user 1 0 0 0
3 access_scrum_plan_project_user scrum.plan.project.user model_scrum_plan project.group_project_user 1 1 1 1
4 access_scrum_plan_manager scrum.plan.manager model_scrum_plan project.group_project_manager 1 0 0 0
5 access_scrum_report_user scrum.report.user model_scrum_report base.group_user 1 0 0 0
6 access_scrum_report_project_user scrum.report.project.user model_scrum_report project.group_project_user 1 1 1 1
7 access_scrum_report_manager scrum.report.manager model_scrum_report project.group_project_manager 1 0 0 0
8 access_project_scrum_user project.scrum.user model_project_scrum base.group_user 1 0 0 0
9 access_project_scrum_project_user project.scrum.project.user model_project_scrum project.group_project_user 1 1 1 1
10 access_project_scrum_manager project.scrum.manager model_project_scrum project.group_project_manager 1 1 1 1

BIN
project_scrum_report/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
project_scrum_report/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
project_scrum_report/static/description/email.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
project_scrum_report/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

183
project_scrum_report/static/description/index.html

@ -0,0 +1,183 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Scrum Plan & Report in Project</h2>
<h3 class="oe_slogan">Implementation of Scrum plan and Scrum Report in Project</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
<div>
<h4><p>Features:</p></h4>
<ul>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Create your own scrum.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Scrum plan.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Scrum report.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Notifications of scrum report.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Sending mail with scrum report to admin.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Pdf report for Scrum report.</li>
</ul>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">My Scrum</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="my_scrum.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
You can create your own scrum through Project -> Scrum -> My scrum. <br/>Here you can add your scrum plan
by specifying task name,
planned hours, current status and remarks. Then click on 'Save' button.
</p>
</div>
</div>
<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="scrum2.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
You can also create scrum report thorough 'Scrum Report' button. Then you can edit worked hours,
current state and remarks.
</p>
</div>
</div>
<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="scrum_3.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
You have an option to send this scrum report to admin via 'Send Report' button.
</p>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Scrum Plan</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="scrum_plan.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
<p>Project ---> Scrum ---> Scrum Plan</p>
<p>This is only for project managers. They can see all scrum plans associated with him.</p>
</p>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Scrum Report</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="scrum_report.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
<p>Project ---> Scrum ---> Scrum Plan</p>
<p>This is only for project managers. They can see all scrum reports associated with him.</p>
</p>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Notifications of Scrum Report</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="scrum_discuss.png">
</div>
</div>
</div>
<div class="oe_row oe_spaced">
<p>
Admin and Corresponding Project Managers will get Notifications
</p>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">E-mail</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="email.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
Admin will get all scrum reports via email.
</p>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Pdf Report</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="report.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
Here you can take the pdf report of your scrum.
</p>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<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="https://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="https://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="https://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>

BIN
project_scrum_report/static/description/my_scrum.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
project_scrum_report/static/description/report.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
project_scrum_report/static/description/scrum2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
project_scrum_report/static/description/scrum_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
project_scrum_report/static/description/scrum_discuss.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
project_scrum_report/static/description/scrum_plan.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
project_scrum_report/static/description/scrum_report.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

191
project_scrum_report/views/project_scrum_view.xml

@ -0,0 +1,191 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="project_scrum_form_view">
<field name="name">project.scrum.form</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<form>
<header>
<button name="send" string="Send Report" states='report' type="object" class="oe_highlight"/>
<button name="create_scrum_report" string="Scrum Report" states='working' type="object" class="oe_highlight"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<field name="name" readonly="1"/>
</group>
<group>
<group>
<field name="user_id" readonly="1"/>
</group>
<group>
<field name="date" readonly="1"/>
</group>
</group>
<notebook>
<page name="scrum_plan_page" string="Scrum Plan">
<field name="scrum_plan" attrs="{'readonly':[('state', 'not in', 'plan')]}">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="planned_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
<page name="scrum_report_page" string="Scrum Report" attrs="{'invisible':[('state', 'in', ('plan', 'working'))]}">
<field name="scrum_report">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="worked_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_form_view1">
<field name="name">project.scrum.form1</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<form create="false" edit="false">
<header>
<button name="send" string="Send Report" states='report' type="object" class="oe_highlight"/>
<button name="create_scrum_report" string="Scrum Report" states='working' type="object" class="oe_highlight"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<field name="name" readonly="1"/>
</group>
<group>
<group>
<field name="user_id" readonly="1"/>
</group>
<group>
<field name="date" readonly="1"/>
</group>
</group>
<notebook>
<page name="scrum_plan_page" string="Scrum Plan">
<field name="scrum_plan" attrs="{'readonly':[('state', 'in', 'report')]}">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="planned_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
<page name="scrum_report_page" string="Scrum Report" attrs="{'invisible':[('state', 'in', 'plan')]}">
<field name="scrum_report">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="worked_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_tree_view">
<field name="name">project.scrum.tree</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_tree_view1">
<field name="name">project.scrum.tree1</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<tree create="false">
<field name="name"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_search_view">
<field name="name">project.scrum.search</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<search string="Search Scrum">
<field name="name"/>
<field name="user_id"/>
<field name="date"/>
<field name="state"/>
<group expand="0" string="Group By">
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
<filter string="Today's Scrum" domain="[('date', '=', datetime.datetime.today())]"/>
</group>
</search>
</field>
</record>
<record id="my_scrum_action" model="ir.actions.act_window">
<field name="name">Scrum Plan and Report</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">project.scrum</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="project_scrum_search_view"/>
<field name="domain">[('user_id','=', uid)]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add new Scrum.
</p>
</field>
</record>
<record id="project_scrum_action" model="ir.actions.act_window">
<field name="name">Scrum Plan and Report</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">project.scrum</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_ids"
eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('project_scrum_tree_view1')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('project_scrum_form_view1')})]"/>
</record>
<menuitem id="scrum_main_menu" name="Scrum" parent="base.menu_main_pm" sequence="99"/>
<menuitem id="my_plan_menu" name="My Scrum" parent="scrum_main_menu" sequence="1" action="my_scrum_action"/>
<menuitem id="scrum_plan_report_menu" name="Scrum Plan and Report" parent="scrum_main_menu" sequence="2"
action="project_scrum_action" groups="base.group_user"/>
</data>
</openerp>

61
project_scrum_report/views/scrum_plan_view.xml

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="scrum_plan_form_view">
<field name="name">scrum.plan.form</field>
<field name="model">scrum.plan</field>
<field name="arch" type="xml">
<form create="false" edit="false">
<sheet>
<group>
<field name="name"/>
</group>
<group>
<group>
<field name="user_id"/>
<field name="task"/>
<field name="project"/>
<field name="planned_hrs"/>
</group>
<group>
<field name="date"/>
<field name="status"/>
<field name="remarks"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="scrum_plan_tree_view">
<field name="name">scrum.plan.tree</field>
<field name="model">scrum.plan</field>
<field name="arch" type="xml">
<tree create="false" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="name"/>
<field name="date"/>
<field name="task"/>
<field name="project"/>
<field name="planned_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</record>
<record id="scrum_plan_action" model="ir.actions.act_window">
<field name="name">Scrum Plans</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">scrum.plan</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('project_manager','=', uid)]</field>
</record>
<menuitem id="scrum_plan_menu" name="Scrum Plans" parent="scrum_main_menu" sequence="3"
action="scrum_plan_action" groups="project.group_project_manager"/>
</data>
</openerp>

61
project_scrum_report/views/scrum_report_view.xml

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="scrum_report_form_view">
<field name="name">scrum.report.form</field>
<field name="model">scrum.report</field>
<field name="arch" type="xml">
<form create="false" edit="false">
<sheet>
<group>
<field name="name"/>
</group>
<group>
<group>
<field name="user_id"/>
<field name="task"/>
<field name="project"/>
<field name="worked_hrs"/>
</group>
<group>
<field name="date"/>
<field name="status"/>
<field name="remarks"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="scrum_report_tree_view">
<field name="name">scrum.report.tree</field>
<field name="model">scrum.report</field>
<field name="arch" type="xml">
<tree create="false" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="name"/>
<field name="date"/>
<field name="task"/>
<field name="project"/>
<field name="worked_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</record>
<record id="scrum_report_action" model="ir.actions.act_window">
<field name="name">Scrum Reports</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">scrum.report</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('project_manager','=', uid)]</field>
</record>
<menuitem id="scrum_report_menu" name="Scrum Reports" parent="scrum_main_menu" sequence="4"
action="scrum_report_action" groups="project.group_project_manager"/>
</data>
</openerp>

10
salon_management/views/salon_data.xml

@ -1,16 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<openerp> <openerp>
<data> <data>
<record id="user_salon_boolean" model="ir.ui.view">
<field name="name">user_salon_boolean.view</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='in_group_12']" position="after">
<field name="user_salon_active"/>
</xpath>
</field>
</record>
<record id="salon_stages_form" model="ir.ui.view"> <record id="salon_stages_form" model="ir.ui.view">
<field name="name">salon_stages_form.form</field> <field name="name">salon_stages_form.form</field>
<field name="model">salon.stages</field> <field name="model">salon.stages</field>

Loading…
Cancel
Save