@ -0,0 +1,41 @@ |
|||
Open HRMS Reminders Todo V15 |
|||
============================ |
|||
|
|||
HR Reminder For OHRMS |
|||
|
|||
Depends |
|||
======= |
|||
[hr] addon Odoo |
|||
|
|||
Tech |
|||
==== |
|||
* [Python] - Models |
|||
* [XML] - Odoo views |
|||
|
|||
Installation |
|||
============ |
|||
- www.odoo.com/documentation/14.0/setup/install.html |
|||
- Install our custom addon |
|||
|
|||
|
|||
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: Treesa Maria Jude @ cybrosys |
|||
V14 - Naveen V @ cybrosys, odoo@cybrosys.in |
|||
V15 - Mily @ cybrosys, odoo@cybrosys.in |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
|
|||
For support and more information, please visit https://www.cybrosys.com. |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# A part of OpenHRMS Project <https://www.openhrms.com> |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Treesa Maria Jude (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero 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 |
|||
from . import controllers |
@ -0,0 +1,51 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# A part of Open HRMS Project <https://www.openhrms.com> |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2021-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) 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 Affero 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': 'Open HRMS Reminders Todo', |
|||
'version': '15.0.1.0.0', |
|||
'category': 'Generic Modules/Human Resources', |
|||
'summary': 'HR Reminder For OHRMS', |
|||
'author': 'Cybrosys Techno solutions,Open HRMS', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.openhrms.com", |
|||
'depends': ['base', 'hr'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'security/hr_reminder_security.xml', |
|||
'views/hr_reminder_view.xml', |
|||
|
|||
], |
|||
'assets': { |
|||
'web.assets_backend': [ |
|||
'hr_reminder/static/src/scss/reminder.scss', |
|||
'hr_reminder/static/src/js/reminder_topbar.js', |
|||
], |
|||
'web.assets_qweb': [ |
|||
'hr_reminder/static/src/xml/reminder_topbar.xml', |
|||
], |
|||
}, |
|||
'images': ['static/description/banner.png'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from . import main |
@ -0,0 +1,46 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from odoo import http,fields |
|||
from odoo.http import request |
|||
|
|||
|
|||
class Reminders(http.Controller): |
|||
|
|||
@http.route('/hr_reminder/all_reminder', type='json', auth="public") |
|||
def all_reminder(self): |
|||
print("33") |
|||
reminder = [] |
|||
for i in request.env['hr.reminder'].search([]): |
|||
if i.reminder_active: |
|||
reminder.append({ |
|||
'id':i.id, |
|||
'name':i.name, |
|||
}) |
|||
|
|||
print('reminder',reminder) |
|||
return reminder |
|||
|
|||
|
|||
|
|||
@http.route('/hr_reminder/reminder_active', type='json', auth="public") |
|||
def reminder_active(self, **kwargs): |
|||
print("active",kwargs) |
|||
reminder_value = kwargs.get('reminder_name') |
|||
print("11",reminder_value) |
|||
value = [] |
|||
i = request.env['hr.reminder'].search([]) |
|||
print("iiiii",i) |
|||
|
|||
for i in request.env['hr.reminder'].sudo().search([('name', '=', reminder_value)]): |
|||
value.append(i.model_name.model) |
|||
value.append(i.model_field.name) |
|||
|
|||
value.append(i.search_by) |
|||
value.append(i.date_set) |
|||
value.append(i.date_from) |
|||
value.append(i.date_to) |
|||
value.append(i.id) |
|||
value.append(fields.Date.today()) |
|||
|
|||
print("222",value) |
|||
return value |
@ -0,0 +1,30 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from odoo import http |
|||
from odoo.http import request |
|||
|
|||
|
|||
class Reminders(http.Controller): |
|||
|
|||
@http.route('/hr_reminder/all_reminder', type='json', auth="public") |
|||
def all_reminder(self): |
|||
reminder = [] |
|||
for i in request.env['hr.reminder'].search([]): |
|||
if i.reminder_active: |
|||
reminder.append(i.name) |
|||
return reminder |
|||
|
|||
@http.route('/hr_reminder/reminder_active', type='json', auth="public") |
|||
def reminder_active(self, **kwargs): |
|||
reminder_value = kwargs.get('reminder_name') |
|||
value = [] |
|||
|
|||
for i in request.env['hr.reminder'].search([('name', '=', reminder_value)]): |
|||
value.append(i.model_name.model) |
|||
value.append(i.model_field.name) |
|||
value.append(i.search_by) |
|||
value.append(i.date_set) |
|||
value.append(i.date_from) |
|||
value.append(i.date_to) |
|||
# value.append(i.exclude_year) |
|||
return value |
@ -0,0 +1,69 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
|||
|
|||
import werkzeug |
|||
|
|||
from odoo.api import Environment |
|||
import odoo.http as http |
|||
|
|||
from odoo.http import request |
|||
from odoo import SUPERUSER_ID |
|||
from odoo import registry as registry_get |
|||
|
|||
|
|||
class CalendarController(http.Controller): |
|||
|
|||
@http.route('/calendar/meeting/accept', type='http', auth="calendar") |
|||
def accept(self, db, token, action, id, **kwargs): |
|||
registry = registry_get(db) |
|||
with registry.cursor() as cr: |
|||
env = Environment(cr, SUPERUSER_ID, {}) |
|||
attendee = env['calendar.attendee'].search([('access_token', '=', token), ('state', '!=', 'accepted')]) |
|||
if attendee: |
|||
attendee.do_accept() |
|||
return self.view(db, token, action, id, view='form') |
|||
|
|||
@http.route('/calendar/meeting/decline', type='http', auth="calendar") |
|||
def declined(self, db, token, action, id): |
|||
registry = registry_get(db) |
|||
with registry.cursor() as cr: |
|||
env = Environment(cr, SUPERUSER_ID, {}) |
|||
attendee = env['calendar.attendee'].search([('access_token', '=', token), ('state', '!=', 'declined')]) |
|||
if attendee: |
|||
attendee.do_decline() |
|||
return self.view(db, token, action, id, view='form') |
|||
|
|||
@http.route('/calendar/meeting/view', type='http', auth="calendar") |
|||
def view(self, db, token, action, id, view='calendar'): |
|||
registry = registry_get(db) |
|||
with registry.cursor() as cr: |
|||
# Since we are in auth=none, create an env with SUPERUSER_ID |
|||
env = Environment(cr, SUPERUSER_ID, {}) |
|||
attendee = env['calendar.attendee'].search([('access_token', '=', token)]) |
|||
timezone = attendee.partner_id.tz |
|||
lang = attendee.partner_id.lang or 'en_US' |
|||
event = env['calendar.event'].with_context(tz=timezone, lang=lang).browse(int(id)) |
|||
|
|||
# If user is logged, redirect to form view of event |
|||
# otherwise, display the simplifyed web page with event informations |
|||
if request.session.uid: |
|||
return werkzeug.utils.redirect('/web?db=%s#id=%s&model=calendar.event' % (db, id)) |
|||
|
|||
# NOTE : we don't use request.render() since: |
|||
# - we need a template rendering which is not lazy, to render before cursor closing |
|||
# - we need to display the template in the language of the user (not possible with |
|||
# request.render()) |
|||
return env['ir.ui.view'].with_context(lang=lang).render_template( |
|||
'calendar.invitation_page_anonymous', { |
|||
'event': event, |
|||
'attendee': attendee, |
|||
}) |
|||
|
|||
# Function used, in RPC to check every 5 minutes, if notification to do for an event or not |
|||
@http.route('/calendar/notify', type='json', auth="user") |
|||
def notify(self): |
|||
return request.env['calendar.alarm_manager'].get_next_notif() |
|||
|
|||
@http.route('/calendar/notify_ack', type='json', auth="user") |
|||
def notify_ack(self, type=''): |
|||
return request.env['res.partner']._set_calendar_last_notif_ack() |
@ -0,0 +1,6 @@ |
|||
## Module hr_reminder |
|||
|
|||
#### 06.11.2020 |
|||
#### Version 15.0.1.0.0 |
|||
##### ADD |
|||
- Initial commit for OpenHrms Project |
@ -0,0 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
from . import hr_reminder |
@ -0,0 +1,59 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from datetime import datetime |
|||
from odoo import models, fields |
|||
|
|||
|
|||
class HrPopupReminder(models.Model): |
|||
_name = 'hr.reminder' |
|||
|
|||
name = fields.Char(string='Title', required=True) |
|||
model_name = fields.Many2one('ir.model', help="Choose the model name", string="Model", required=True, ondelete='cascade', domain="[('model', 'like','hr')]") |
|||
model_field = fields.Many2one('ir.model.fields', string='Field', help="Choose the field", |
|||
domain="[('model_id', '=',model_name),('ttype', 'in', ['datetime','date'])]", |
|||
required=True, ondelete='cascade') |
|||
search_by = fields.Selection([('today', 'Today'), |
|||
('set_period', 'Set Period'), |
|||
('set_date', 'Set Date'), ], |
|||
required=True, string="Search By") |
|||
days_before = fields.Integer(string='Reminder before', help="NUmber of days before the reminder") |
|||
active = fields.Boolean(string="Active", default=True) |
|||
# exclude_year = fields.Boolean(string="Consider day alone") |
|||
reminder_active = fields.Boolean(string="Reminder Active", help="Reminder active") |
|||
date_set = fields.Date(string='Select Date', help="Select the reminder set date") |
|||
date_from = fields.Date(string="Start Date", help="Start date") |
|||
date_to = fields.Date(string="End Date", help="End date") |
|||
expiry_date = fields.Date(string="Reminder Expiry Date", help="Expiry date") |
|||
company_id = fields.Many2one('res.company', string='Company', required=True, help="Company", |
|||
default=lambda self: self.env.user.company_id) |
|||
|
|||
def reminder_scheduler(self): |
|||
print("hlooo") |
|||
now = fields.Datetime.from_string(fields.Datetime.now()) |
|||
print("8888",now) |
|||
today = fields.Date.today() |
|||
print("2222") |
|||
obj = self.env['hr.reminder'].search([]) |
|||
for i in obj: |
|||
if i.search_by != "today": |
|||
if i.expiry_date and datetime.strptime(str(today), "%Y-%m-%d") == datetime.strptime(str(i.expiry_date), "%Y-%m-%d"): |
|||
i.active = False |
|||
else: |
|||
if i.search_by == "set_date": |
|||
d1 = datetime.strptime(str(i.date_set), "%Y-%m-%d") |
|||
d2 = datetime.strptime(str(today), "%Y-%m-%d") |
|||
daydiff = abs((d2 - d1).days) |
|||
if daydiff <= i.days_before: |
|||
i.reminder_active = True |
|||
else: |
|||
i.reminder_active = False |
|||
elif i.search_by == "set_period": |
|||
d1 = datetime.strptime(str(i.date_from), "%Y-%m-%d") |
|||
d2 = datetime.strptime(str(today), "%Y-%m-%d") |
|||
daydiff = abs((d2 - d1).days) |
|||
if daydiff <= i.days_before: |
|||
i.reminder_active = True |
|||
else: |
|||
i.reminder_active = False |
|||
else: |
|||
i.reminder_active = True |
|||
|
@ -0,0 +1,10 @@ |
|||
<?xml version="1.0" ?> |
|||
<odoo> |
|||
<record id="property_rule_hr_shift" model="ir.rule"> |
|||
<field name="name">Hr Reminder Company</field> |
|||
<field name="model_id" ref="model_hr_reminder"/> |
|||
<field eval="True" name="global"/> |
|||
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> |
|||
</record> |
|||
|
|||
</odoo> |
|
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 408 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 115 KiB |
@ -0,0 +1,585 @@ |
|||
<div style="padding: 3.5rem 1.5rem !important; background-color: #ffffff !important;"> |
|||
<div class="container"> |
|||
<!-- HERO --> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center" |
|||
style="text-align: center; padding: 1rem !important;"> |
|||
<h1 class="text-center" style="color: #00438B !important; font-size: 3rem !important;"><span |
|||
style="font-weight: 700 !important;">OpenHRMS</span><span style="font-weight: 300 !important;"> |
|||
HR Reminder</span></h1> |
|||
<p class="text-center" |
|||
style="color: #212529 !important; font-size: 1.5rem !important; letter-spacing: 2px !important;"> |
|||
Reminders |
|||
Forget about Forgetting.</p> |
|||
<img src="./images/rem.png" class="img-responsive"> |
|||
</div> |
|||
</div> |
|||
<!-- END OF HERO --> |
|||
|
|||
<!-- OVERVIEW --> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center" |
|||
style="text-align: center; padding: 2.5rem 1rem !important;"> |
|||
<h2 style="color: #212529 !important;">Overview</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
<p class="text-center" style="color: #212529 !important; font-size: 1.5rem !important;"> |
|||
Reminders is an effective module,helps to memorise all your important dates. We can set reminders to any model (eg: Sales,HR,Project etc..) and also their corresponding date fields to compare.This eases the company work load to memorize the special dates (eg: Expiration date,Deadline date,Assigned Date etc...). |
|||
</p> |
|||
</div> |
|||
</div> |
|||
<!-- END OF OVERVIEW --> |
|||
|
|||
|
|||
<!-- KEY FEATURES --> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center" style="padding: 2.5rem 1rem !important;"> |
|||
<h2 class="text-center" style="color: #212529 !important;">Key Features</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
<div class="row"> |
|||
<div class="col-lg-6"> |
|||
|
|||
<div class="d-flex deep-2" |
|||
style="height: 60px !important; padding: 1rem 1.5rem !important; border-radius: 0 !important; margin: 1.5rem 0"> |
|||
<img src="./images/checked.png" style="height: 24px !important; width: 24px !important;" |
|||
class="mt-1 mr-2" height="24px" width="24px"> |
|||
<p style="color: #212529 !important; font-size: 1.3rem !important;"> |
|||
Set the reminder for different models. |
|||
</p> |
|||
</div> |
|||
|
|||
<div class="d-flex deep-2" |
|||
style="height: 60px !important; padding: 1rem 1.5rem !important; border-radius: 0 !important; margin: 1.5rem 0"> |
|||
<img src="./images/checked.png" style="height: 24px !important; width: 24px !important;" |
|||
class="mt-1 mr-2" height="24px" width="24px"> |
|||
<p style="color: #212529 !important; font-size: 1.3rem !important;"> |
|||
Different types of search options |
|||
</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-6"> |
|||
<div class="d-flex deep-2" |
|||
style="height: 60px !important; padding: 1rem 1.5rem !important; border-radius: 0 !important; margin: 1.5rem 0"> |
|||
<img src="./images/checked.png" style="height: 24px !important; width: 24px !important;" |
|||
class="mt-1 mr-2" height="24px" width="24px"> |
|||
<p style="color: #212529 !important; font-size: 1.3rem !important;"> |
|||
→ Today: Compares to the current date. |
|||
</p> |
|||
</div> |
|||
|
|||
<div class="d-flex deep-2" |
|||
style="height: 60px !important; padding: 1rem 1.5rem !important; border-radius: 0 !important; margin: 1.5rem 0"> |
|||
<img src="./images/checked.png" style="height: 24px !important; width: 24px !important;" |
|||
class="mt-1 mr-2" height="24px" width="24px"> |
|||
<p style="color: #212529 !important; font-size: 1.3rem !important;"> |
|||
→ Set Date: Compares with the given date. |
|||
</p> |
|||
</div> |
|||
<div class="d-flex deep-2" |
|||
style="height: 60px !important; padding: 1rem 1.5rem !important; border-radius: 0 !important; margin: 1.5rem 0"> |
|||
<img src="./images/checked.png" style="height: 24px !important; width: 24px !important;" |
|||
class="mt-1 mr-2" height="24px" width="24px"> |
|||
<p style="color: #212529 !important; font-size: 1.3rem !important;"> |
|||
→ Set Period: Reminder is set between a time range(Start date - End date). |
|||
</p> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
<!-- END OF KEY FEATURES --> |
|||
|
|||
<!-- SCREENSHOTS --> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center" style="padding: 2.5rem 1rem !important;"> |
|||
<h2 style="text-align: center; color: #212529 !important;">Screenshots</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
|
|||
<!-- img --> |
|||
<div class="d-flex m-0"> |
|||
<div class="mr-3"> |
|||
<h3 |
|||
style="font-size: 2rem !important; font-weight: 800 !important; color: #ffffff !important; background-color: #00438B !important; padding: 1rem !important; width: 70px !important; height: 80px !important;"> |
|||
01</h3> |
|||
</div> |
|||
<div> |
|||
<p style="font-size: 1.7rem !important; font-weight: 600 !important;"> Set your reminders for any model and the corresponding date field. Also this module allows different methods to search. |
|||
click. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
<img src="./images/1rem.png" class="img-responsive" |
|||
style="margin-top: -15px !important; border-top: 5px solid #00438B !important; margin-bottom: 4rem !important;"> |
|||
<!-- endo of img --> |
|||
|
|||
<!-- img --> |
|||
<div class="d-flex m-0"> |
|||
<div class="mr-3"> |
|||
<h3 |
|||
style="font-size: 2rem !important; font-weight: 800 !important; color: #ffffff !important; background-color: #00438B !important; padding: 1rem !important; width: 70px !important; height: 80px !important;"> |
|||
02</h3> |
|||
</div> |
|||
<div> |
|||
<p style="font-size: 1.7rem !important; font-weight: 600 !important;">Setting the search by today. |
|||
</p> |
|||
|
|||
</div> |
|||
</div> |
|||
<img src="./images/2rem.png" class="img-responsive" |
|||
style="margin-top: -15px !important; border-top: 5px solid #00438B !important; margin-bottom: 4rem !important;"> |
|||
<!-- endo of img --> |
|||
|
|||
<!-- img --> |
|||
<div class="d-flex m-0"> |
|||
<div class="mr-3"> |
|||
<h3 |
|||
style="font-size: 2rem !important; font-weight: 800 !important; color: #ffffff !important; background-color: #00438B !important; padding: 1rem !important; width: 70px !important; height: 80px !important;"> |
|||
03</h3> |
|||
</div> |
|||
<div> |
|||
<h3 style="font-size: 1.7rem !important; font-weight: 600 !important;">Setting the search by date. |
|||
</h3> |
|||
</div> |
|||
</div> |
|||
<img src="./images/3rem.png" class="img-responsive" |
|||
style="margin-top: -15px !important; border-top: 5px solid #00438B !important; margin-bottom: 4rem !important;"> |
|||
<!-- endo of img --> |
|||
|
|||
<!-- img --> |
|||
<div class="d-flex m-0"> |
|||
<div class="mr-3"> |
|||
<h3 |
|||
style="font-size: 2rem !important; font-weight: 800 !important; color: #ffffff !important; background-color: #00438B !important; padding: 1rem !important; width: 70px !important; height: 80px !important;"> |
|||
04</h3> |
|||
</div> |
|||
<div> |
|||
<h3 style="font-size: 1.7rem !important; font-weight: 600 !important;">Setting the search by period. |
|||
</h3> |
|||
</div> |
|||
</div> |
|||
<img src="./images/4rem.png" class="img-responsive" |
|||
style="margin-top: -15px !important; border-top: 5px solid #00438B !important; margin-bottom: 4rem !important;"> |
|||
<div class="d-flex m-0"> |
|||
<div class="mr-3"> |
|||
<h3 |
|||
style="font-size: 2rem !important; font-weight: 800 !important; color: #ffffff !important; background-color: #00438B !important; padding: 1rem !important; width: 70px !important; height: 80px !important;"> |
|||
05</h3> |
|||
</div> |
|||
<div> |
|||
<h3 style="font-size: 1.7rem !important; font-weight: 600 !important;">Select the Reminder from the list of Reminders. |
|||
</h3> |
|||
</div> |
|||
</div> |
|||
<img src="./images/5rem.png" class="img-responsive" |
|||
style="margin-top: -15px !important; border-top: 5px solid #00438B !important; margin-bottom: 4rem !important;"> |
|||
<div class="d-flex m-0"> |
|||
<div class="mr-3"> |
|||
<h3 |
|||
style="font-size: 2rem !important; font-weight: 800 !important; color: #ffffff !important; background-color: #00438B !important; padding: 1rem !important; width: 70px !important; height: 80px !important;"> |
|||
06</h3> |
|||
</div> |
|||
<div> |
|||
<h3 style="font-size: 1.7rem !important; font-weight: 600 !important;">Related Result of search. |
|||
</h3> |
|||
</div> |
|||
</div> |
|||
<img src="./images/6rem.png" class="img-responsive" |
|||
style="margin-top: -15px !important; border-top: 5px solid #00438B !important; margin-bottom: 4rem !important;"> |
|||
<!-- endo of img --> |
|||
</div> |
|||
</div> |
|||
<!-- END OF SCREENSHOTS --> |
|||
|
|||
|
|||
<!-- SUGGESTED PRODUCTS --> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center" |
|||
style="text-align: center; padding: 2.5rem 1rem !important;"> |
|||
<h2 style="color: #212529 !important;">Suggested Products</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
|
|||
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
|||
<!-- The slideshow --> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active" style="min-height:0px"> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/14.0/ohrms_core/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|||
src="./images/core_image.gif"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/14.0/ohrms_salary_advance/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|||
src="./images/advance_image.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/13.0/oh_hr_zk_attendance/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|||
src="./images/bio_image.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item" style="min-height:0px"> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/14.0/ohrms_loan/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|||
src="./images/loan_image.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/14.0/hr_custody/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|||
src="./images/custody_image.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/13.0/ohrms_salary_advance/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|||
src="./images/salary_image.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- Left and right controls --> |
|||
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
|||
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i |
|||
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a |
|||
class="carousel-control-next" href="#demo1" data-slide="next" |
|||
style="right:-25px;width: 35px;color: #000;"> |
|||
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" |
|||
style="font-size:24px"></i></span> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- END OF SUGGESTED PRODUCTS --> |
|||
|
|||
<!-- OUR SERVICES --> |
|||
<section class="container" style="margin-top: 6rem !important;"> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
|||
<h2 style="color: #212529 !important;">Our Services</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Customization</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Implementation</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Support</h6> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Hire |
|||
Odoo |
|||
Developer</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Integration</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Migration</h6> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Consultancy</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Implementation</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">Odoo |
|||
Licensing Consultancy</h6> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- END OF END OF OUR SERVICES --> |
|||
|
|||
<!-- OUR INDUSTRIES --> |
|||
<section class="container" style="margin-top: 6rem !important;"> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
|||
<h2 style="color: #212529 !important;">Our Industries</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Trading |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Easily procure |
|||
and |
|||
sell your products</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
POS |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Easy |
|||
configuration |
|||
and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Education |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
A platform for |
|||
educational management</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Manufacturing |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Plan, track and |
|||
schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
E-commerce & Website |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Mobile |
|||
friendly, |
|||
awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Service Management |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Keep track of |
|||
services and invoice</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Restaurant |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Run your bar or |
|||
restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 |
|||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Hotel Management |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
An |
|||
all-inclusive |
|||
hotel management application</p> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</section> |
|||
|
|||
<!-- END OF END OF OUR INDUSTRIES --> |
|||
|
|||
<!-- FOOTER --> |
|||
<!-- Footer Section --> |
|||
<section class="container" style="margin: 5rem auto 2rem;"> |
|||
<div class="row" style="max-width:1540px;"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
|||
<h2 style="color: #212529 !important;">Need Help?</h2> |
|||
<hr |
|||
style="border: 3px solid #00438B !important; background-color: #00438B !important; width: 80px !important; margin-bottom: 2rem !important;" /> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- Contact Cards --> |
|||
<div class="row d-flex justify-content-center align-items-center" |
|||
style="max-width:1540px; margin: 0 auto 2rem auto;"> |
|||
|
|||
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; "> |
|||
|
|||
<div class="row mt-4"> |
|||
<div class="col-lg-4"> |
|||
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover" |
|||
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i |
|||
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a> |
|||
</div> |
|||
<div class="col-lg-4"> |
|||
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank" |
|||
class="btn btn-block mb-2 deep_hover" |
|||
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i |
|||
class="fa fa-whatsapp mr-2"></i>WhatsApp</a> |
|||
</div> |
|||
<div class="col-lg-4"> |
|||
<a href="mailto:info@cybrosys.com" target="_blank" class="btn btn-block deep_hover" |
|||
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i |
|||
class="fa fa-envelope mr-2"></i>info@cybrosys.com</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
<!-- End of Contact Cards --> |
|||
</section> |
|||
<!-- Footer --> |
|||
<section class="oe_container" style="padding: 2rem 3rem 1rem;"> |
|||
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; "> |
|||
<!-- Logo --> |
|||
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;"> |
|||
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" /> |
|||
</div> |
|||
<!-- End of Logo --> |
|||
<div class="col-lg-12"> |
|||
<hr |
|||
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;"> |
|||
<!-- End of Footer Section --> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- END OF FOOTER --> |
|||
|
|||
|
|||
</div> |
|||
</div> |
After Width: | Height: | Size: 29 KiB |
@ -0,0 +1,40 @@ |
|||
|
|||
.oe_webclient_notification_action t { |
|||
color: white; |
|||
} |
|||
.oe_webclient_notification_action p { |
|||
color: white; |
|||
margin-top: 1em; |
|||
} |
|||
.label { |
|||
display: inline-block; |
|||
color: white; |
|||
max-width: 100%; |
|||
margin-bottom: 4px; |
|||
font-weight: bold; |
|||
font-size: larger; |
|||
} |
|||
.reminder-dropdown { |
|||
.o-flex(0, 1, auto); |
|||
background: #FFFFFF; |
|||
max-height: 400px; |
|||
min-height: 50px; |
|||
overflow-y: auto; |
|||
|
|||
@media (max-width: @screen-xs-max) { |
|||
max-height: none; |
|||
} |
|||
|
|||
.detail-client-address-country { |
|||
color: black; |
|||
} |
|||
.o_main_navbar .dropdown-menu, .o_main_navbar .o_menu_sections .dropdown-menu, .o_main_navbar .o_menu_systray .dropdown-menu { |
|||
margin-top: 0; |
|||
border-top: 0; |
|||
border-top-left-radius: 0; |
|||
border-top-right-radius: 0; |
|||
padding: 10px; |
|||
border-radius: 10px; |
|||
} |
|||
|
|||
|
@ -0,0 +1,112 @@ |
|||
odoo.define('hr_reminder.reminder_topbar', function (require) { |
|||
"use strict"; |
|||
|
|||
var core = require('web.core'); |
|||
var SystrayMenu = require('web.SystrayMenu'); |
|||
var Widget = require('web.Widget'); |
|||
var QWeb = core.qweb; |
|||
var rpc = require('web.rpc'); |
|||
var ajax = require('web.ajax'); |
|||
//var rem;
|
|||
var reminder_menu = Widget.extend({ |
|||
template:'reminder_menu', |
|||
|
|||
events: { |
|||
"click .dropdown-toggle": "on_click_reminder", |
|||
"click .reminders_list": "reminder_active", |
|||
}, |
|||
|
|||
willStart: function(){ |
|||
var self = this; |
|||
self.all_reminder = []; |
|||
return this._super() |
|||
.then(function() { |
|||
var def1 = ajax.jsonRpc("/hr_reminder/all_reminder", 'call',{} |
|||
|
|||
).then(function(all_reminder){ |
|||
self.all_reminder = all_reminder |
|||
|
|||
}); |
|||
}); |
|||
}, |
|||
|
|||
|
|||
on_click_reminder: function (event) { |
|||
var self = this |
|||
self.all_reminder = [] |
|||
ajax.jsonRpc("/hr_reminder/all_reminder", 'call',{} |
|||
).then(function(all_reminder){ |
|||
self.all_reminder = all_reminder |
|||
|
|||
self.$('.reminders_list').html(QWeb.render('reminder_menu',{ |
|||
values: self.all_reminder, |
|||
widget: self |
|||
|
|||
})); |
|||
}); |
|||
}, |
|||
|
|||
|
|||
reminder_active: function(){ |
|||
|
|||
var self = this; |
|||
var value =$("#reminder_select").val(); |
|||
|
|||
ajax.jsonRpc("/hr_reminder/reminder_active", 'call',{'reminder_name':value} |
|||
).then(function(reminder){ |
|||
self.reminder = reminder |
|||
console.log('reminder on click selection',self.reminder) |
|||
|
|||
|
|||
for (var i=0;i<1;i++){ |
|||
var model = self.reminder[i] |
|||
|
|||
var date = self.reminder[i+2] |
|||
var field = self.reminder[i+1] |
|||
|
|||
var id = self.reminder[i+6] |
|||
var today = self.reminder[i+7] |
|||
|
|||
|
|||
if (self.reminder[i+2] == 'today'){ |
|||
|
|||
return self.do_action({ |
|||
type: 'ir.actions.act_window', |
|||
res_model: model, |
|||
view_mode: 'list', |
|||
|
|||
domain: [[field,'=',today]], |
|||
views: [[false, 'list']], |
|||
target: 'new',}) |
|||
} |
|||
|
|||
else if (self.reminder[i+2] == 'set_date'){ |
|||
return self.do_action({ |
|||
type: 'ir.actions.act_window', |
|||
res_model: model, |
|||
view_mode: 'list', |
|||
domain: [[date, '=', self.reminder[i+3]]], |
|||
views: [[false, 'list']], |
|||
target: 'new', |
|||
}) |
|||
} |
|||
|
|||
else if (self.reminder[i+2] == 'set_period'){ |
|||
return self.do_action({ |
|||
type: 'ir.actions.act_window', |
|||
res_model: model, |
|||
view_mode: 'list', |
|||
domain: [[date, '<', self.reminder[i+5]],[date, '>', self.reminder[i+4]]], |
|||
views: [[false, 'list']], |
|||
target: 'new', |
|||
}) |
|||
} |
|||
|
|||
} |
|||
|
|||
}); |
|||
}, |
|||
}); |
|||
|
|||
SystrayMenu.Items.push(reminder_menu); |
|||
}); |
@ -0,0 +1,8 @@ |
|||
.o_main_navbar .dropdown-menu, .o_main_navbar .o_menu_sections .dropdown-menu, .o_main_navbar .o_menu_systray .dropdown-menu { |
|||
margin-top: 0; |
|||
border-top: 0; |
|||
border-top-left-radius: 0; |
|||
border-top-right-radius: 0; |
|||
padding: 10px; |
|||
border-radius: 10px; |
|||
} |
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<templates> |
|||
<t t-name="reminder_menu"> |
|||
|
|||
<div class="o_mail_navbar_item"> |
|||
|
|||
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="#" title="Reminders"> |
|||
<i class="fa fa-bell"/> |
|||
<span class="o_notification_counter"/> |
|||
|
|||
|
|||
</a> |
|||
<ul class="o_mail_navbar_dropdown dropdown-menu" role="menu"> |
|||
<li class="o_mail_navbar_dropdown_top"> |
|||
<h2> Reminders</h2> |
|||
|
|||
|
|||
<div> |
|||
<li></li> |
|||
|
|||
<select id="reminder_select" name="Reminder" class='reminders_list form-control'> |
|||
<t t-foreach='widget.all_reminder' t-as='val'> |
|||
<option class="dropdown-options" > |
|||
|
|||
<t t-esc="val.name"/> |
|||
</option> |
|||
|
|||
</t> |
|||
|
|||
|
|||
|
|||
|
|||
</select> |
|||
|
|||
</div> |
|||
|
|||
</li> |
|||
|
|||
</ul> |
|||
</div> |
|||
</t> |
|||
</templates> |
@ -0,0 +1,79 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="ir_cron_scheduler_reminder_action" model="ir.cron"> |
|||
<field name="name">Reminder scheduler</field> |
|||
<field name="model_id" ref="model_hr_reminder"/> |
|||
<field name="state">code</field> |
|||
<field name="code">model.reminder_scheduler()</field> |
|||
<field name="user_id" ref="base.user_root"/> |
|||
<field name="interval_number">1</field> |
|||
<field name="interval_type">minutes</field> |
|||
<field name="numbercall">-1</field> |
|||
<field eval="False" name="doall"/> |
|||
<!--<field eval="'hr.reminder'" name="model"/>--> |
|||
<!--<field eval="'reminder_scheduler'" name="function"/>--> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="hr_reminder_form_view"> |
|||
<field name="name">hr.reminder.form.view</field> |
|||
<field name="model">hr.reminder</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="HR Reminder"> |
|||
<sheet> |
|||
<div class="oe_title"> |
|||
<h1 class="o_row"> |
|||
<field name="name" placeholder="Reminder Title..." /> |
|||
</h1> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="model_name" /> |
|||
<field name="search_by"/> |
|||
<field name="date_from" attrs="{'invisible': [('search_by','not in','set_period')], 'required': [('search_by', '=', 'set_period')]}"/> |
|||
<field name="date_set" attrs="{'invisible': [('search_by','not in','set_date')], 'required': [('search_by', '=', 'set_date')]}"/> |
|||
<field name="date_to" attrs="{'invisible': [('search_by','not in','set_period')], 'required': [('search_by', '=', 'set_period')]}"/> |
|||
<!--<field name="exclude_year" attrs="{'invisible': [('search_by','in','set_period')]}"/>--> |
|||
<field name="company_id"/> |
|||
</group> |
|||
<group> |
|||
<field name="model_field"/> |
|||
<field name="days_before" attrs="{'invisible': [('search_by','=','today')]}"/> |
|||
<field name="expiry_date" attrs="{'invisible': [('search_by','=','today')]}"/> |
|||
<field name="active"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="hr_reminder_tree_view"> |
|||
<field name="name">hr.reminder.tree.view</field> |
|||
<field name="model">hr.reminder</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Pop-Up Reminder"> |
|||
<field name="name"/> |
|||
<field name="model_name" /> |
|||
<field name="model_field"/> |
|||
<field name="company_id"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="action_hr_reminder"> |
|||
<field name="name">Reminders</field> |
|||
<field name="res_model">hr.reminder</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click here to configure new periodic reminder. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<menuitem name ="Reminders" id="hr_reminder_menu" web_icon="hr_reminder,static/description/reminder_icon.png" |
|||
action="action_hr_reminder" sequence="8"/> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,11 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<template id="assets_backend" name="mail assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<link rel="stylesheet" href="/hr_reminder/static/src/css/notification.css"/> |
|||
<script type="text/javascript" src="/hr_reminder/static/src/js/reminder_topbar.js"></script> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</openerp> |