diff --git a/todo_list/README.rst b/todo_list/README.rst new file mode 100644 index 000000000..b2d1e468a --- /dev/null +++ b/todo_list/README.rst @@ -0,0 +1,43 @@ +ToDo List +========= +* ToDo List for Odoo 15 community editions + +Installation +============ + - www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/14.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v14) Mily Shajan @ Cybrosys +(v15) Neethu U M @ Cybrosys + + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/todo_list/__init__.py b/todo_list/__init__.py new file mode 100644 index 000000000..f2c5a4636 --- /dev/null +++ b/todo_list/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models diff --git a/todo_list/__manifest__.py b/todo_list/__manifest__.py new file mode 100644 index 000000000..bb79decef --- /dev/null +++ b/todo_list/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': "To Do List", + 'summary': """ + Create Todo List Using Activities""", + 'description': """ + Scheduling Activities For each model and General Activities. + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'live_test_url': 'https://youtu.be/LGiDWPFdkbks', + 'category': 'Tools', + 'version': '15.0.1.0.0', + 'depends': ['base', 'mail'], + 'data': [ + 'security/security.xml', + 'security/ir.model.access.csv', + 'data/recurring.xml', + 'data/general.xml', + 'views/views.xml', + ], + 'license': 'LGPL-3', + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/todo_list/data/general.xml b/todo_list/data/general.xml new file mode 100644 index 000000000..df17b1c87 --- /dev/null +++ b/todo_list/data/general.xml @@ -0,0 +1,8 @@ + + + + + Activity + + + diff --git a/todo_list/data/recurring.xml b/todo_list/data/recurring.xml new file mode 100644 index 000000000..487b20a2d --- /dev/null +++ b/todo_list/data/recurring.xml @@ -0,0 +1,14 @@ + + + + Recurring Todo Activity + + code + model.action_date() + + 1 + days + -1 + + + \ No newline at end of file diff --git a/todo_list/models/__init__.py b/todo_list/models/__init__.py new file mode 100644 index 000000000..0c4eccefd --- /dev/null +++ b/todo_list/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import todo diff --git a/todo_list/models/todo.py b/todo_list/models/todo.py new file mode 100644 index 000000000..50e586811 --- /dev/null +++ b/todo_list/models/todo.py @@ -0,0 +1,150 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from datetime import timedelta + +from odoo import models, fields, api +from odoo.tools import DEFAULT_SERVER_DATE_FORMAT + + +class MailActivity(models.Model): + _name = 'mail.activity' + _inherit = ['mail.activity', 'mail.thread'] + _rec_name = 'summary' + + date_deadline = fields.Date('Due Date', index=True, required=True, + default=fields.Date.context_today, store=True) + user_id = fields.Many2one('res.users', string='user', index=True, + tracking=True, default=lambda self: self.env.user) + res_model_id = fields.Many2one( + 'ir.model', 'Document Model', + index=True, ondelete='cascade', required=True, + default=lambda self: self.env.ref('todo_list.model_activity_general')) + res_id = fields.Many2oneReference(string='Related Document ID', index=True, + required=True, model_field='res_model', + default=lambda self: self.env.ref( + 'todo_list.general_activities')) + priority = fields.Selection([ + ('0', 'Normal'), + ('1', 'Important'), + ('2', 'Very Important'), + ('3', 'Urgent'), + ], default='0', index=True, store=True) + recurring = fields.Boolean(string="Recurring", store=True) + state = fields.Selection([ + ('today', 'Today'), + ('planned', 'Planned'), + ('done', 'Done'), + ('overdue', 'Expired'), + ('cancel', 'Cancelled'), ], 'State', + compute='_compute_state', store=True) + interval = fields.Selection( + [('Daily', 'Daily'), + ('Weekly', 'Weekly'), + ('Monthly', 'Monthly'), + ('Quarterly', 'Quarterly'), + ('Yearly', 'Yearly')], + string='Recurring Interval', ) + new_date = fields.Date(string="Next Due Date", store=True) + + def action_done(self): + """Function done button""" + self.write({'state': 'done'}) + if self.recurring: + self.env['mail.activity'].create({ + 'res_id': self.res_id, + 'res_model_id': self.res_model_id.id, + 'summary': self.summary, + 'priority': self.priority, + 'date_deadline': self.new_date, + 'recurring': self.recurring, + 'interval': self.interval, + 'activity_type_id': self.activity_type_id.id, + 'new_date': self.get_date(), + 'user_id': self.user_id.id + }) + + def get_date(self): + """ function for get new due date on new record""" + date_deadline = self.new_date if self.new_date else self.date_deadline + new_date = False + if self.interval == 'Daily': + new_date = ( + date_deadline + timedelta(days=1)).strftime( + DEFAULT_SERVER_DATE_FORMAT) + elif self.interval == 'Weekly': + new_date = ( + date_deadline + timedelta(days=7)).strftime( + DEFAULT_SERVER_DATE_FORMAT) + elif self.interval == 'Monthly': + new_date = ( + date_deadline + timedelta(days=30)).strftime( + DEFAULT_SERVER_DATE_FORMAT) + elif self.interval == 'Quarterly': + new_date = ( + date_deadline + timedelta(days=90)).strftime( + DEFAULT_SERVER_DATE_FORMAT) + elif self.interval == 'Yearly': + new_date = ( + date_deadline + timedelta(days=365)).strftime( + DEFAULT_SERVER_DATE_FORMAT) + return new_date + + @api.onchange('interval', 'date_deadline') + def onchange_recurring(self): + """ function for show new due date""" + self.new_date = False + if self.recurring: + self.new_date = self.get_date() + + def action_date(self): + """ Function for automated actions for deadline""" + today = fields.date.today() + dates = self.env['mail.activity'].search( + [('state', 'in', ['today', 'planned']), + ('date_deadline', '=', today), + ('recurring', '=', True)]) + for rec in dates: + self.env['mail.activity'].create( + {'res_id': rec.res_id, + 'res_model_id': rec.res_model_id.id, + 'summary': rec.summary, + 'priority': rec.priority, + 'interval': rec.interval, + 'recurring': rec.recurring, + 'date_deadline': rec.new_date, + 'new_date': rec.get_date(), + 'activity_type_id': rec.activity_type_id.id, + 'user_id': rec.user_id.id + }) + rec.state = 'done' + + def action_cancel(self): + """ function for cancel button""" + return self.write({'state': 'cancel'}) + + +class ActivityGeneral(models.Model): + _name = 'activity.general' + _inherit = ['mail.thread', 'mail.activity.mixin'] + + name = fields.Char('Name') diff --git a/todo_list/security/ir.model.access.csv b/todo_list/security/ir.model.access.csv new file mode 100644 index 000000000..412a09bed --- /dev/null +++ b/todo_list/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_activity_general,access.activity.general,model_activity_general,base.group_user,1,1,1,1 diff --git a/todo_list/security/security.xml b/todo_list/security/security.xml new file mode 100644 index 000000000..fe7e3bb87 --- /dev/null +++ b/todo_list/security/security.xml @@ -0,0 +1,10 @@ + + + + Personal Todo + + [('user_id','=',user.id)] + + + + \ No newline at end of file diff --git a/todo_list/static/description/assets/icons/check.png b/todo_list/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/todo_list/static/description/assets/icons/check.png differ diff --git a/todo_list/static/description/assets/icons/chevron.png b/todo_list/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/todo_list/static/description/assets/icons/chevron.png differ diff --git a/todo_list/static/description/assets/icons/cogs.png b/todo_list/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/todo_list/static/description/assets/icons/cogs.png differ diff --git a/todo_list/static/description/assets/icons/consultation.png b/todo_list/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/todo_list/static/description/assets/icons/consultation.png differ diff --git a/todo_list/static/description/assets/icons/ecom-black.png b/todo_list/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/todo_list/static/description/assets/icons/ecom-black.png differ diff --git a/todo_list/static/description/assets/icons/education-black.png b/todo_list/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/todo_list/static/description/assets/icons/education-black.png differ diff --git a/todo_list/static/description/assets/icons/hotel-black.png b/todo_list/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/todo_list/static/description/assets/icons/hotel-black.png differ diff --git a/todo_list/static/description/assets/icons/license.png b/todo_list/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/todo_list/static/description/assets/icons/license.png differ diff --git a/todo_list/static/description/assets/icons/lifebuoy.png b/todo_list/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/todo_list/static/description/assets/icons/lifebuoy.png differ diff --git a/todo_list/static/description/assets/icons/logo.png b/todo_list/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/todo_list/static/description/assets/icons/logo.png differ diff --git a/todo_list/static/description/assets/icons/manufacturing-black.png b/todo_list/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/todo_list/static/description/assets/icons/manufacturing-black.png differ diff --git a/todo_list/static/description/assets/icons/pos-black.png b/todo_list/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/todo_list/static/description/assets/icons/pos-black.png differ diff --git a/todo_list/static/description/assets/icons/puzzle.png b/todo_list/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/todo_list/static/description/assets/icons/puzzle.png differ diff --git a/todo_list/static/description/assets/icons/restaurant-black.png b/todo_list/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/todo_list/static/description/assets/icons/restaurant-black.png differ diff --git a/todo_list/static/description/assets/icons/service-black.png b/todo_list/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/todo_list/static/description/assets/icons/service-black.png differ diff --git a/todo_list/static/description/assets/icons/trading-black.png b/todo_list/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/todo_list/static/description/assets/icons/trading-black.png differ diff --git a/todo_list/static/description/assets/icons/training.png b/todo_list/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/todo_list/static/description/assets/icons/training.png differ diff --git a/todo_list/static/description/assets/icons/update.png b/todo_list/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/todo_list/static/description/assets/icons/update.png differ diff --git a/todo_list/static/description/assets/icons/user.png b/todo_list/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/todo_list/static/description/assets/icons/user.png differ diff --git a/todo_list/static/description/assets/icons/wrench.png b/todo_list/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/todo_list/static/description/assets/icons/wrench.png differ diff --git a/todo_list/static/description/assets/modules/average_image.png b/todo_list/static/description/assets/modules/average_image.png new file mode 100644 index 000000000..8b94b68b9 Binary files /dev/null and b/todo_list/static/description/assets/modules/average_image.png differ diff --git a/todo_list/static/description/assets/modules/budget_image.png b/todo_list/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/todo_list/static/description/assets/modules/budget_image.png differ diff --git a/todo_list/static/description/assets/modules/crm_dashboard_image.png b/todo_list/static/description/assets/modules/crm_dashboard_image.png new file mode 100644 index 000000000..6547c3081 Binary files /dev/null and b/todo_list/static/description/assets/modules/crm_dashboard_image.png differ diff --git a/todo_list/static/description/assets/modules/crm_image.png b/todo_list/static/description/assets/modules/crm_image.png new file mode 100644 index 000000000..0e6f19573 Binary files /dev/null and b/todo_list/static/description/assets/modules/crm_image.png differ diff --git a/todo_list/static/description/assets/modules/quotation_image.png b/todo_list/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/todo_list/static/description/assets/modules/quotation_image.png differ diff --git a/todo_list/static/description/assets/modules/whatsapp_image.png b/todo_list/static/description/assets/modules/whatsapp_image.png new file mode 100644 index 000000000..f5174ab22 Binary files /dev/null and b/todo_list/static/description/assets/modules/whatsapp_image.png differ diff --git a/todo_list/static/description/assets/screenshots/Todo1.png b/todo_list/static/description/assets/screenshots/Todo1.png new file mode 100644 index 000000000..5ac4064a6 Binary files /dev/null and b/todo_list/static/description/assets/screenshots/Todo1.png differ diff --git a/todo_list/static/description/assets/screenshots/hero.gif b/todo_list/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..11f599bea Binary files /dev/null and b/todo_list/static/description/assets/screenshots/hero.gif differ diff --git a/todo_list/static/description/assets/screenshots/todo2.png b/todo_list/static/description/assets/screenshots/todo2.png new file mode 100644 index 000000000..343072454 Binary files /dev/null and b/todo_list/static/description/assets/screenshots/todo2.png differ diff --git a/todo_list/static/description/assets/screenshots/todo3.png b/todo_list/static/description/assets/screenshots/todo3.png new file mode 100644 index 000000000..289d44082 Binary files /dev/null and b/todo_list/static/description/assets/screenshots/todo3.png differ diff --git a/todo_list/static/description/assets/screenshots/todo4.png b/todo_list/static/description/assets/screenshots/todo4.png new file mode 100644 index 000000000..2782db1e6 Binary files /dev/null and b/todo_list/static/description/assets/screenshots/todo4.png differ diff --git a/todo_list/static/description/banner.png b/todo_list/static/description/banner.png new file mode 100644 index 000000000..12bec092a Binary files /dev/null and b/todo_list/static/description/banner.png differ diff --git a/todo_list/static/description/icon.png b/todo_list/static/description/icon.png new file mode 100644 index 000000000..23d120c6a Binary files /dev/null and b/todo_list/static/description/icon.png differ diff --git a/todo_list/static/description/index.html b/todo_list/static/description/index.html new file mode 100644 index 000000000..5df6a127b --- /dev/null +++ b/todo_list/static/description/index.html @@ -0,0 +1,587 @@ +
+
+
+
+ +
+
+
+ Community +
+ +
+
+
+
+ +
+
+
+

+ ToDo List

+

+ Scheduling & Listing out Activities in Odoo +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ The ToDo list module in Odoo helps to schedule and listing out activities which should be done. You + can create general ToDo activities, prioritize each activity, assign recurrence on activities, + filtering activities based on the user.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Schedule general ToDo activities

+
+
+
+
+ +
+
+

+ Recurring option for each activity

+
+
+ +
+
+ +
+
+

+ Prioritize each activity

+
+
+ +
+
+ +
+
+

+ Activities can be filtered based on created user

+
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Default Kanban view of the activity menu

+ +
+ +
+

+ Color highlighted details tree view helping you to visualize activities which + are overdue and due today

+ + +
+ +
+

+ Activity prioritization and description tab

+ +
+
+

+ Activity filtering options based on creator, and due date

+ +
+ +
+ + +
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/todo_list/views/views.xml b/todo_list/views/views.xml new file mode 100644 index 000000000..8ab8da0ad --- /dev/null +++ b/todo_list/views/views.xml @@ -0,0 +1,224 @@ + + + + + + mail.activity.model.search + mail.activity + + + + + + + + + + + + + + + + + + + mail.activity.kanban.inherit + mail.activity + + + + +
+ +
+
+ + + +
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ + + mail.activity.tree + mail.activity + + + + + + + + + + + + + + + mail.activity.form + mail.activity + +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ + + Activity + mail.activity + kanban,tree,form + + + +

+ Create your ToDo List +

+
+
+ + + kanban + + + + + + + tree + + + + + + form + + + + + Activity Types + mail.activity.type + tree,form + + + + + + + +
+
\ No newline at end of file