Browse Source

[ADD] Initial Commit

pull/116/head
AjmalCybro 7 years ago
parent
commit
c49d6a2b2a
  1. 36
      legal_case_management/README.rst
  2. 21
      legal_case_management/__init__.py
  3. 43
      legal_case_management/__manifest__.py
  4. 6
      legal_case_management/doc/RELEASE_NOTES.md
  5. 21
      legal_case_management/models/__init__.py
  6. 129
      legal_case_management/models/legal.py
  7. 5
      legal_case_management/security/ir.model.access.csv
  8. BIN
      legal_case_management/static/description/banner.png
  9. BIN
      legal_case_management/static/description/icon.png
  10. 410
      legal_case_management/static/description/index.html
  11. BIN
      legal_case_management/static/description/legal-case-cybrosys-1.png
  12. BIN
      legal_case_management/static/description/legal-case-cybrosys-2.png
  13. BIN
      legal_case_management/static/description/legal-case-cybrosys-3.png
  14. BIN
      legal_case_management/static/description/legal-case-cybrosys-4.png
  15. BIN
      legal_case_management/static/description/legal-case-cybrosys-5.png
  16. BIN
      legal_case_management/static/description/legal-case-cybrosys-6.png
  17. BIN
      legal_case_management/static/description/legal-case-cybrosys-7.png
  18. BIN
      legal_case_management/static/description/legal-case-cybrosys-8.png
  19. BIN
      legal_case_management/static/description/legal-case-cybrosys-9.png
  20. 177
      legal_case_management/views/legal_views.xml
  21. 36
      legal_case_management/views/res_partner_views.xml
  22. 11
      legal_case_management/views/sequence.xml

36
legal_case_management/README.rst

@ -0,0 +1,36 @@
Legal Case Management
=====================
Module for managing Legal Processes
Installation
============
- www.odoo.com/documentation/11.0/setup/install.html
- Install our custom addon
License
=======
GNU Lesser General Public License, Version 3 (LGPLv3)
(http://www.gnu.org/licenses/agpl.html)
Bug Tracker
===========
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Credits
=======
* Cybrosys Techno Solutions <https://www.cybrosys.com>
Author
------
Developer: Sayooj A O(odoo@cybrosys.com) @ Cybrosys
Maintainer
----------
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com.

21
legal_case_management/__init__.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
###################################################################################
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Sayooj A O(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Lesser General Public License(LGPLv3) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import models

43
legal_case_management/__manifest__.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
###################################################################################
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Sayooj A O(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Lesser General Public License(LGPLv3) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
{
'name': 'Legal Case Management',
'summary': """Module for managing LEGAL Processes""",
'version': '11.0.1.0.0',
'description': """ALL LEGAL FIRM BASED PROBLEMS GET SOLVED HERE""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'category': 'Tools',
'depends': ['base', 'hr_payroll', 'document', 'hr'],
'license': 'LGPL-3',
'data': [
'views/legal_views.xml',
'views/res_partner_views.xml',
'views/sequence.xml',
'security/ir.model.access.csv',
],
'demo': [],
'images': ['static/description/banner.png'],
'installable': True,
'auto_install': False,
}

6
legal_case_management/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <legal_case_management>
#### 23.01.2019
#### Version 11.0.1.0.0
##### ADD
- Initial commit for Legal Case Managment

21
legal_case_management/models/__init__.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
###################################################################################
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Sayooj A O(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Lesser General Public License(LGPLv3) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import legal

129
legal_case_management/models/legal.py

@ -0,0 +1,129 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api,_
class LawyerRecords(models.Model):
_name = 'case.case'
_description = 'Case Register'
_inherit = ['mail.thread', 'mail.activity.mixin']
_rec_name = "name"
case_category = fields.Selection([('f', 'Family Cases'), ('c', 'Criminal Cases'), ('b', 'Traffic Cases'),
('j', 'Civil Cases')], string='Category of Case', required=True)
case_details = fields.Text(string='Details Of Case (SECTION)', required=True)
case_lawyer = fields.Many2one('hr.employee', string=" Lawyer", required=True, track_visibility='onchange')
case_client = fields.Many2one('res.partner', string='Client', required=True, track_visibility='onchange',
domain=[['customer', '=', 1]])
case_court = fields.Many2one('court.court', string='Court', required=True)
case_next = fields.Date(string='Sitting Date', required=True)
case_menu = fields.One2many('case.case.line', 'connect_id', string="Sitting")
case_note = fields.One2many('notes.notes', 'connect_id1', string="Internal Notes")
name = fields.Char(string='Reference', required=True, copy=False, readonly=True,
default=lambda self: _('New'))
obj_attachment = fields.Integer(string='attachment', compute='attachments1')
state = fields.Selection([('draft', 'Draft'),
('invoiced', 'Invoiced'),
('completed', 'Completed')], default='draft', track_visibility='onchange')
@api.model
def create(self, vals):
vals['name'] = self.env['ir.sequence'].next_by_code('case.case')
return super(LawyerRecords, self).create(vals)
@api.one
def attachments1(self):
obj_attachment = self.env['ir.attachment']
for record in self:
record.attachment_count = 0
attachment_ids = obj_attachment.search([('res_model', '=', 'case.case'), ('res_id', '=', record.id)])
if attachment_ids:
record.obj_attachment = len(attachment_ids)
@api.multi
def count_attachments(self):
self.ensure_one()
domain = [('res_model', '=', 'case.case'), ('res_id', 'in', self.ids)]
return {
'name': 'ir.attachment tree',
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'ir.attachment',
'type': 'ir.actions.act_window',
'target': 'current',
'domain': domain,
'context': "{'default_res_model': '%s','default_res_id': %d}" % (self._name, self.id)
}
@api.multi
def make_payment(self):
self.ensure_one()
self.sudo().write({
'state': 'invoiced'
})
ctx = {
'default_corres_customer': self.case_client.id, 'default_employee_id': self.case_lawyer.id
}
return {
'name': 'my.form',
'view_type': 'form',
'view_mode': 'form,tree',
'res_model': 'hr.payslip',
'type': 'ir.actions.act_window',
'target': 'current',
'context': ctx,
}
@api.multi
def add_sittings(self):
self.ensure_one()
self.sudo().write({
'state': 'draft'
})
@api.multi
def mark_done(self):
self.ensure_one()
self.sudo().write({
'state': 'completed'
})
class LawyerRecordsline(models.Model):
_name = 'case.case.line'
case_description = fields.Text(string='Description', required=True)
connect_id = fields.Many2one('case.case', string='Description', required=True)
case_date = fields.Date(string='Date', required=True)
class InternalNotes(models.Model):
_name = 'notes.notes'
case_internal = fields.Text(string='Internal Notes', required=True)
connect_id1 = fields.Many2one('case.case', string='Internal Notes', required=True)
class Court(models.Model):
_name = 'court.court'
_rec_name = 'case_court'
case_court = fields.Text(string='Court', required=True)
class PartnerForm(models.Model):
_inherit = 'res.partner'
class PartnerForm(models.Model):
_inherit = 'res.partner'
customer = fields.Boolean(string='Is a Client', default=True)
class Payslip(models.Model):
_inherit = 'hr.payslip'
corres_customer = fields.Many2one('res.partner',string='Customer')

5
legal_case_management/security/ir.model.access.csv

@ -0,0 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_case_id,access_case,legal_case_management.model_case_case,base.group_user,1,1,1,0
access_case_line_id,access_case_line,legal_case_management.model_case_case_line,base.group_user,1,1,1,0
access_note_id,access_note,legal_case_management.model_notes_notes,base.group_user,1,1,1,0
access_court_id,access_court,legal_case_management.model_court_court,base.group_user,1,1,1,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_case_id access_case legal_case_management.model_case_case base.group_user 1 1 1 0
3 access_case_line_id access_case_line legal_case_management.model_case_case_line base.group_user 1 1 1 0
4 access_note_id access_note legal_case_management.model_notes_notes base.group_user 1 1 1 0
5 access_court_id access_court legal_case_management.model_court_court base.group_user 1 1 1 0

BIN
legal_case_management/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
legal_case_management/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

410
legal_case_management/static/description/index.html

@ -0,0 +1,410 @@
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-header-banner.png);background-repeat:no-repeat;background-size:100%;padding: 4% 0% 2% 15%;background-position-y: -107px;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="font-size: 35px;color: #fff;font-weight: 900;text-transform: uppercase;text-align: left;margin: 0;margin-bottom: 16px;">
Legal Case Management
</h2>
<h3 class="oe_slogan" style="font-size: 25px;color: #fff;font-weight: 600;text-align: left;opacity: 1;margin: 0 !important;">
Module for managing Legal Processes
</h3>
<h5 class="oe_slogan" style="text-align: left;background: #fff;width: 293px;padding: 10px;color: #080808 !important;opacity: 1 !important;font-weight: 600;font-size: 20px;">
<a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">Cybrosys Technologies</a>
</h5>
<a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">
<div style="width: 215px;margin-left: 57%;text-align: center;background: #ffffff;height: 215px;border-radius: 100%;display: flex;justify-content: center;align-items: center;box-shadow: 0 0 12px 4px #00000059;">
<img src="https://www.cybrosys.com/images/cybro-logo-oca.png" alt="cybrosys technologies" style="width: 180px;"/>
</div>
</a>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 3% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Overview
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
Legal case management module helps to manage the Clients,Lawyers,Case Registration,Payments and
provides pivot reports of the process.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;padding: 2% 0% 0% 0%;">
Configuration
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
No additional configuration required
</h3>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-banner1.png); background-repeat:no-repeat; background-size:cover;padding: 10% 0% 25% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Features
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Creating Lawyers and Clients.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Featuring Case Registration.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Arrange Sittings for the case
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Provision to add case related attachments
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Payment Of the case and Payslip generation for lawyers
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Offering a pivot report.
</h3>
</div>
</section>
<section class="oe_container" style="padding: 3% 0% 0% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Screenshots
</h2>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
We can create or view the clients from the menu "Clients" under Master Data
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-1.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
We can create or view the lawyers from the menu "Lawyers" under Master Data
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-2.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
A new case can be registered from the menu "Case Register" by filling the mandatory fields.
And can attach any documents if needed.
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-3.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
And we can add multiple sittings to the same case from the tab "Sittings"
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-4.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
An Internal Note field is added for adding any notes related to case
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-5.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
By clicking on the button "Make Payment" we were lead into a form of making payment to the
corresponding lawyer.
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-6.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
If we want to add sittings after the payment there is button "Add Sittings" is provided and
if the case is over we can mark it as by clicking on "Mark as Done"
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-7.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
The state changes from "Invoiced" to "Completed" after clicking of "Mark As Done"
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-8.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
We can view the pivot report based on Lawyer,Client,Case Category etc..
</h3>
<div class="oe_row oe_spaced">
<img src="legal-case-cybrosys-9.png" alt="" style="width: 95%;"/>
</div>
</div>
</section>
<section class="oe_container" style="padding: 7px 0% 0% 3%;">
<div class="oe_row oe_spaced">
<a style="color: #080808 !important;" href="https://apps.odoo.com/apps/modules/browse?search=cybrosys" target="_blank"><img src="https://www.cybrosys.com/images/view-more-apps.jpg" alt="cybrosys technologies" style="width: 100%;margin-bottom: 50px;"/></a>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 0% 3%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Our Services
</h2>
<div style="display:flex;padding-top: 20px;justify-content: space-between;">
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-customization.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
Odoo Customization
</a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-implementation.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
Odoo Implementation </a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-integration.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
Odoo Integration
</a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-support.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
Odoo Support</a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
<img src="https://www.cybrosys.com/images/hire-odoo-developer.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
Hire Odoo Developers</a>
</h3>
</a>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 0% 3%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Our Industries
</h2>
<div style="display:flex;justify-content: space-between;flex-wrap:wrap;">
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
Trading
</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Easily procure and sell your products.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-2.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
Manufacturing</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Plan, track and schedule your operations.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
Restaurant</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Run your bar or restaurant methodical.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
POS</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Easy configuring and convivial selling.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
E-commerce & Website</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Mobile friendly, awe-inspiring product pages.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
Hotel Management</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
An all-inclusive hotel management application.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
Education</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
A Collaborative platform for educational management.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
Service Management</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Keep track of services and invoice accordingly.
</h3>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-footer-bg.png); background-repeat:no-repeat; background-size:100%;padding: 13% 0% 6% 0%;">
<div class="oe_slogan" style="margin-top:10px !important;margin-bottom: 0px;">
<div>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="mailto:odoo@cybrosys.com"><i class="fa fa-envelope"></i> Email us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" 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 style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;" 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;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></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;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></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; ;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></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;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></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;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
</div>
</div>
</section>

BIN
legal_case_management/static/description/legal-case-cybrosys-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

BIN
legal_case_management/static/description/legal-case-cybrosys-9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

177
legal_case_management/views/legal_views.xml

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="view_case_tree" model="ir.ui.view">
<field name="name">case.case.tree</field>
<field name="model">case.case</field>
<field name="priority" eval="8" />
<field name="arch" type="xml">
<tree string="Register Case">
<field name="case_client" />
<field name="case_lawyer" />
<field name="case_category" />
<field name="case_court" />
<field name="case_details" placeholder="eg: IPC 376/13" />
<field name="case_next" />
</tree>
</field>
</record>
<record id="view_case_form" model="ir.ui.view">
<field name="name">case.case.form</field>
<field name="model">case.case</field>
<field name="priority" eval="8" />
<field name="arch" type="xml">
<form string="Register Case">
<header>
<field name="state" widget="statusbar" statusbar_visible="draft,invoiced"/>
</header>
<sheet>
<button name="make_payment" string="Make Payment" type="object" class="btn-primary"
attrs="{'invisible':[('state','!=','draft')]}"/>
<button name="add_sittings" string="Add Sittings" type="object" class="btn-primary"
attrs="{'invisible':[('state','!=','invoiced')]}"/>
<button name="mark_done" string="Mark As Done" type="object" class="oe_stat_button"
attrs="{'invisible':[('state','!=','invoiced')]}"/>
<div class="oe_button_box" name="button_box">
<button name="count_attachments" type="object" class="oe_stat_button" icon="fa-pencil-square-o" >
<field name="obj_attachment" widget="statinfo" string="Attachments"/>
</button>
</div>
<group col="4" colspan="4">
<field name="case_client" placeholder="Select Client"/>
<field name="case_lawyer" placeholder="Select Lawyer"/>
<field name="case_category" />
<field name="name" invisible="1"/>
</group>
<notebook colspan="4">
<page name="personal_information"
string="Case Information">
<group col="4" colspan="4"
name="personal_detail">
<field name="case_court" placeholder="eg:High Court" />
<field name="case_details" placeholder="eg: IPC 376/13" />
<field name="case_next" />
</group>
</page>
<page name="case" string="Sittings">
<field name="case_menu" mode="tree">
<form string="Sittings">
<group>
<field name="case_description" />
<field name="case_date"/>
<field name="connect_id" invisible="1"/>
</group>
</form>
<tree string="Sittings" editable="bottom">
<field name="case_description" />
<field name="case_date"/>
</tree>
</field>
</page>
<page name="Notes" string="Internal Notes">
<field name="case_note" mode="tree">
<form string="Internal Notes">
<group>
<field name="case_internal" />
<field name="connect_id1" invisible="1"/>
</group>
</form>
<tree string="Internal Notes" editable="bottom">
<field name="case_internal" />
</tree>
</field>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_view_cases">
<field name="name">Register</field>
<field name="res_model">case.case</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,kanban</field>
<field name="domain">[]</field>
<field name="help" type="html">
<p class="oe_view_no_content_create">Register new case
</p>
</field>
</record>
<record model="ir.actions.act_window" id="action_view_lawyers">
<field name="name">Lawyers</field>
<field name="res_model">hr.employee</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="domain">[]</field>
<field name="context">{"default_x_hide": 1}</field>
<field name="help" type="html">
<p class="oe_view_no_content_create">Create new Lawyer
</p>
</field>
</record>
<record model="ir.actions.act_window" id="action_view_clients">
<field name="name">Clients</field>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="domain">[['customer', '=', 1]]</field>
<field name="help" type="html">
<p class="oe_view_no_content_create">Create new client
</p>
</field>
</record>
<record id="projection_view_pivot" model="ir.ui.view">
<field name="name">pivot</field>
<field name="model">case.case</field>
<field name="type">pivot</field>
<field name="arch" type="xml">
<pivot string="Pivot View">
<field name="case_category" type="row"/>
<field name="case_lawyer" type="row"/>
<field name="case_client" type="row"/>
<field name="case_court" type="row"/>
</pivot>
</field>
</record>
<record id="action_view_pivot" model="ir.actions.act_window">
<field name="name">View Pivot</field>
<field name="res_model">case.case</field>
<field name="view_type">form</field>
<field name="view_mode">pivot</field>
<field name="domain">[]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Enter the target
</p>
</field>
</record>
<menuitem id="menu_legal_firm" name="Legal Firm"/>
<menuitem id="menu_masters" name="Master Data" parent="menu_legal_firm"/>
<menuitem id="menu_operations" name="Operations" parent="menu_legal_firm"/>
<menuitem id="menu_master_data" name="Master Data" parent="menu_legal_firm"/>
<menuitem id="menu_pivot_report" name="Reporting" parent="menu_legal_firm"/>
<menuitem id="legal_firm_report" name="Pivot Report" parent="legal_case_management.menu_pivot_report"
action="action_view_pivot" />
<menuitem id="legal_firm_case" name="Case Register" parent="legal_case_management.menu_operations"
action="action_view_cases" />
<menuitem id="legal_firm_lawyer" name="Lawyers" parent="legal_case_management.menu_master_data"
action="action_view_lawyers"/>
<menuitem id="legal_firm_client" name="Clients" parent="legal_case_management.menu_master_data"
action="action_view_clients"/>
</data>
</odoo>

36
legal_case_management/views/res_partner_views.xml

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_fee_tree" model="ir.ui.view">
<field name="name">partner inherit</field>
<field name="model">res.partner</field>
<field name="priority" eval="8" />
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='sales_purchases']" position="after">
<page name='clients_lawyers' string="Clients &amp; Lawyers">
<group name="container_row_2">
<group string="Clients" name="sale">
<field name="customer"/>
</group>
</group>
</page>
</xpath>
<xpath expr="//page[@name='sales_purchases']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
<record id="view_payslips_tree" model="ir.ui.view">
<field name="name">partner inherit</field>
<field name="model">hr.payslip</field>
<field name="priority" eval="8" />
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='contract_id']" position="after">
<field name="corres_customer"/>
</xpath>
</field>
</record>
</odoo>

11
legal_case_management/views/sequence.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="seq_legal_sequence" model="ir.sequence">
<field name="name">Legal Firm Management</field>
<field name="code">case.case</field>
<field name="prefix">LF</field>
<field name="padding">4</field>
</record>
</data>
</odoo>
Loading…
Cancel
Save