diff --git a/todo_list/README.rst b/todo_list/README.rst new file mode 100644 index 000000000..1daf10135 --- /dev/null +++ b/todo_list/README.rst @@ -0,0 +1,42 @@ +ToDo List +========= +* ToDo List for Odoo 14 community editions + +Installation +============ + - www.odoo.com/documentation/14.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 + + +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..22f2f7372 --- /dev/null +++ b/todo_list/__manifest__.py @@ -0,0 +1,48 @@ +# -*- 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", + 'category': 'Tools', + 'version': '14.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/arrow-circle-black.png b/todo_list/static/description/assets/arrow-circle-black.png new file mode 100644 index 000000000..e8948eb73 Binary files /dev/null and b/todo_list/static/description/assets/arrow-circle-black.png differ diff --git a/todo_list/static/description/assets/arrow-circle-magenta.png b/todo_list/static/description/assets/arrow-circle-magenta.png new file mode 100644 index 000000000..91c3c11b8 Binary files /dev/null and b/todo_list/static/description/assets/arrow-circle-magenta.png differ diff --git a/todo_list/static/description/assets/hero.gif b/todo_list/static/description/assets/hero.gif new file mode 100644 index 000000000..a832ade8e Binary files /dev/null and b/todo_list/static/description/assets/hero.gif differ diff --git a/todo_list/static/description/assets/icons/ecom.png b/todo_list/static/description/assets/icons/ecom.png new file mode 100644 index 000000000..6e720d50e Binary files /dev/null and b/todo_list/static/description/assets/icons/ecom.png differ diff --git a/todo_list/static/description/assets/icons/education.png b/todo_list/static/description/assets/icons/education.png new file mode 100644 index 000000000..f0de98eb0 Binary files /dev/null and b/todo_list/static/description/assets/icons/education.png differ diff --git a/todo_list/static/description/assets/icons/hotel.png b/todo_list/static/description/assets/icons/hotel.png new file mode 100644 index 000000000..917c6a63e Binary files /dev/null and b/todo_list/static/description/assets/icons/hotel.png differ diff --git a/todo_list/static/description/assets/icons/manufacturing.png b/todo_list/static/description/assets/icons/manufacturing.png new file mode 100644 index 000000000..68c3722f8 Binary files /dev/null and b/todo_list/static/description/assets/icons/manufacturing.png differ diff --git a/todo_list/static/description/assets/icons/pos.png b/todo_list/static/description/assets/icons/pos.png new file mode 100644 index 000000000..600bfe4f9 Binary files /dev/null and b/todo_list/static/description/assets/icons/pos.png differ diff --git a/todo_list/static/description/assets/icons/restaurant.png b/todo_list/static/description/assets/icons/restaurant.png new file mode 100644 index 000000000..680acf29e Binary files /dev/null and b/todo_list/static/description/assets/icons/restaurant.png differ diff --git a/todo_list/static/description/assets/icons/service.png b/todo_list/static/description/assets/icons/service.png new file mode 100644 index 000000000..bfbe7a6d2 Binary files /dev/null and b/todo_list/static/description/assets/icons/service.png differ diff --git a/todo_list/static/description/assets/icons/trading.png b/todo_list/static/description/assets/icons/trading.png new file mode 100644 index 000000000..a741219b5 Binary files /dev/null and b/todo_list/static/description/assets/icons/trading.png differ diff --git a/todo_list/static/description/assets/modules/advanced_ecom.png b/todo_list/static/description/assets/modules/advanced_ecom.png new file mode 100644 index 000000000..9913652e1 Binary files /dev/null and b/todo_list/static/description/assets/modules/advanced_ecom.png differ diff --git a/todo_list/static/description/assets/modules/export_excel.png b/todo_list/static/description/assets/modules/export_excel.png new file mode 100644 index 000000000..d09dd347f Binary files /dev/null and b/todo_list/static/description/assets/modules/export_excel.png differ diff --git a/todo_list/static/description/assets/modules/functional_tutorial.png b/todo_list/static/description/assets/modules/functional_tutorial.png new file mode 100644 index 000000000..ff6b701b5 Binary files /dev/null and b/todo_list/static/description/assets/modules/functional_tutorial.png differ diff --git a/todo_list/static/description/assets/modules/gantt_view.png b/todo_list/static/description/assets/modules/gantt_view.png new file mode 100644 index 000000000..0b3e0bc3f Binary files /dev/null and b/todo_list/static/description/assets/modules/gantt_view.png differ diff --git a/todo_list/static/description/assets/modules/mobile_service.png b/todo_list/static/description/assets/modules/mobile_service.png new file mode 100644 index 000000000..68d11114c Binary files /dev/null and b/todo_list/static/description/assets/modules/mobile_service.png differ diff --git a/todo_list/static/description/assets/modules/shopify_connector.png b/todo_list/static/description/assets/modules/shopify_connector.png new file mode 100644 index 000000000..e734546e4 Binary files /dev/null and b/todo_list/static/description/assets/modules/shopify_connector.png differ diff --git a/todo_list/static/description/assets/respnsive-img.png b/todo_list/static/description/assets/respnsive-img.png new file mode 100644 index 000000000..7c294318e Binary files /dev/null and b/todo_list/static/description/assets/respnsive-img.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.png b/todo_list/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..fe8e6de01 Binary files /dev/null and b/todo_list/static/description/assets/screenshots/hero.png 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..5cce99b49 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..b1b98e432 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..69571a949 --- /dev/null +++ b/todo_list/static/description/index.html @@ -0,0 +1,618 @@ +
+
+
+
+

+ ToDo List +

+

+ Scheduling & Listing out Activities in Odoo. +

+

Key Highlights +

+ +
+
+ +
+
+

+ Recurrance on each activity.

+
+
+
+
+ +
+
+

+ Prioritize each activity.

+
+
+ +
+
+ +
+
+

+ Schedule general ToDo activities.

+
+
+ +
+
+ +
+
+

+ Activities can filtered based on user.

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

+ 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 filtered based on created user.

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

+ SCREENSHOTS +

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

+ Suggested Products +

+
+
+
+ +
+
+ + +
+
+
+ Odoo Gold Partner + +
+
+
+ + +
+ +
+ + +
+
+
+

+ Need Help? +

+
+
+
+ + +
+ +
+

Do you have any queries regarding + our + products & services? Let us know.

+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
\ 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