Browse Source

Jan 11 : [FIX] Bug Fixed 'todo_list'

pull/231/head
AjmalCybro 2 years ago
parent
commit
04c9b37e4f
  1. 4
      todo_list/__manifest__.py
  2. 2
      todo_list/models/todo.py
  3. BIN
      todo_list/static/description/assets/screenshots/5.png
  4. 67
      todo_list/static/description/index.html
  5. 7
      todo_list/views/views.xml

4
todo_list/__manifest__.py

@ -32,8 +32,8 @@
'website': "https://www.cybrosys.com",
'live_test_url': 'https://youtu.be/LGiDWPFdkbks',
'category': 'Tools',
'version': '16.0.1.0.0',
'depends': ['base', 'mail'],
'version': '16.0.2.0.0',
'depends': ['base','sale','mail'],
'data': [
'security/security.xml',
'security/ir.model.access.csv',

2
todo_list/models/todo.py

@ -42,7 +42,7 @@ class MailActivity(models.Model):
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'))
'todo_list.general_activities',False))
priority = fields.Selection([
('0', 'Normal'),
('1', 'Important'),

BIN
todo_list/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

67
todo_list/static/description/index.html

@ -1,31 +1,41 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
<!-- END OF TITLE BAR -->
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
ToDo List</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">Scheduling & Listing out Activities in Odoo</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;" />
</div>
</div>
</div>
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">ToDo List</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">Scheduling & Listing out Activities in Odoo</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;" />
</div>
@ -165,6 +175,11 @@
<img src="assets/screenshots/4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">If we don't have any activities, we have to remove the default group by filter: State to create new record from kanban view</h3>
<img src="assets/screenshots/5.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->

7
todo_list/views/views.xml

@ -43,8 +43,7 @@
<field name="name">mail.activity.kanban.inherit</field>
<field name="model">mail.activity</field>
<field name="arch" type="xml">
<kanban default_order="state desc" default_group_by="state"
class="mail_activity_kanban_view" sample="1">
<kanban default_order="state desc" class="mail_activity_kanban_view" sample="1">
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click">
@ -103,7 +102,7 @@
<tree string="Activities"
decoration-danger="date_deadline &lt; current_date"
decoration-success="date_deadline == current_date"
default_order="date_deadline" create="false">
default_order="date_deadline">
<field name="priority" widget="priority" class="mr-3"/>
<field name="summary"/>
<field name="activity_type_id"/>
@ -173,7 +172,7 @@
<field name="res_model">mail.activity</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context"
eval="{'default_res_model_id': ref('todo_list.model_activity_general')}"/>
eval="{'default_res_model_id': ref('todo_list.model_activity_general'),'search_default_groupby_state':1}"/>
<field name="search_view_id"
ref="todo_list.mail_activity_model_view_search"/>
<field name="help" type="html">

Loading…
Cancel
Save