Khushboo Bhatt(openerp) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-calendar-phase2-cal_todo-kbh into 
lp:~openerp-dev/openobject-addons/trunk-calendar-phase2.

Requested reviews:
  Jigar Amin  (OpenERP) (jam-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-calendar-phase2-cal_todo-kbh/+merge/91799

Hello,
 
 =====calendar_todo=====
 - I have added calendar_todo_view.xml.
 - In this file I have added form,tree,search,calendar,Gantt views for 
calendar.todo object.

Thank you,
KBH.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-calendar-phase2-cal_todo-kbh/+merge/91799
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-calendar-phase2.
=== added directory 'calendar_todo'
=== added file 'calendar_todo/__init__.py'
--- calendar_todo/__init__.py	1970-01-01 00:00:00 +0000
+++ calendar_todo/__init__.py	2012-02-07 11:34:21 +0000
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#    
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License 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 <http://www.gnu.org/licenses/>.     
+#
+##############################################################################
+
+import calendar_todo
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'calendar_todo/__openerp__.py'
--- calendar_todo/__openerp__.py	1970-01-01 00:00:00 +0000
+++ calendar_todo/__openerp__.py	2012-02-07 11:34:21 +0000
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+    "name" : "Calendar TODO Application",
+    "version" : "1.0",
+    "depends" : ["base_calendar", "project"],
+    'description': """
+Calendar TODO List application :
+========================================
+This Application in based on Calendar which supports
+    - Defining List Of Task on Multi User Calendar
+    - MultiAlarm on TODO
+    - Recurring TODO
+    - ...
+    """,
+    "author" : "OpenERP SA",
+    'category': 'Tools',
+    'website': 'http://www.openerp.com',
+    "init_xml" : [
+    ],
+    "demo_xml" : [
+    ],
+    "update_xml" : [
+        #TODO: Compose the TODO views by Combining the view of the calendar.event and project.ask
+        'calendar_todo_view.xml',
+    ],
+    "test" : [
+    ],
+    "installable" : True,
+    'auto_install': False,
+    "certificate" : False,
+    'images': []
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'calendar_todo/calendar_todo.py'
--- calendar_todo/calendar_todo.py	1970-01-01 00:00:00 +0000
+++ calendar_todo/calendar_todo.py	2012-02-07 11:34:21 +0000
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+from osv import fields, osv
+
+class calendar_todo(osv.osv):
+    """ Calendar TODO """
+
+    _name = "calendar.todo"
+    _inherit = ["calendar.event", "project.task"]
+    _description = "Calendar TODO"
+
+    _columns = {
+    }
+

=== added file 'calendar_todo/calendar_todo_view.xml'
--- calendar_todo/calendar_todo_view.xml	1970-01-01 00:00:00 +0000
+++ calendar_todo/calendar_todo_view.xml	2012-02-07 11:34:21 +0000
@@ -0,0 +1,241 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+            <!-- Todo Form View-->
+        <record model="ir.ui.view" id="event_todo_form_view">
+            <field name="name">Event Form</field>
+            <field name="model">calendar.todo</field>
+            <field name="type">form</field>
+            <field name="arch" type="xml">
+                <form string="Events">
+
+                    <group col="6" colspan="4" attrs="{'readonly':[('attendee_request_id','!=', False)]}">
+                        <field name="name" string="Summary"
+                            colspan="4" />
+                        <field name="allday" colspan="2" on_change="onchange_dates(date,False,False,allday)" />
+                        <newline/>
+                        <field name="date" string="Start Date" required="1"
+                            on_change="onchange_dates(date,duration,False,allday)" />
+                        <field name="duration" widget="float_time"
+                            on_change="onchange_dates(date,duration,False,allday)" attrs="{'invisible': [('allday', '=', True)]}"/>
+                        <field name="date_deadline" string="End Date" required="1"
+                            on_change="onchange_dates(date,False,date_deadline)"/>
+                        <field name="location"/>
+
+                        <field name="category_id" widget="selection" />
+                        <field name="recurrency"/>
+                        <field name="edit_all" attrs="{'invisible':[('recurrency','=', False)]}"/>
+
+                    </group>
+                    <notebook colspan="4">
+                    <page string="Event Information">
+                        <separator colspan="4" string="Visibility" />
+                        <group col="6" colspan="4" attrs="{'readonly':[('attendee_request_id','!=', False)]}">
+                             <field name="calendar_id" required="1" domain="[('user_id','=',user_id),('type','=','vevent')]" string="Calendar" />
+                             <field name="user_id" string="Responsible User" attrs="{'invisible':[('attendee_request_id','!=', False)]}"/>
+                             <field name="organizer_id" string="Organizer" />
+                             <field name="show_as" string="Show time as" attrs="{'invisible':[('attendee_request_id','!=', False)]}"/>
+                             <field name="class" attrs="{'invisible':[('attendee_request_id','!=', False)]}"/>
+                        </group>
+                    </page>
+                    <page string="Task Information">
+                        <group colspan="6" col="6">
+                            <field name="project_id" select="1"  on_change="onchange_project(project_id)"/>
+                            <field name="total_hours" widget="float_time"/>
+                            <field name="progress" widget="progressbar"/>
+                        </group>
+                        <group col="2" colspan="2">
+                            <field
+                                name="planned_hours"
+                                widget="float_time"/>
+                            <field
+                                name="effective_hours"
+                                widget="float_time" invisible="1"/>
+                        </group>
+                        <group col="3" colspan="2">
+                            <field name="remaining_hours" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" colspan="2"/>
+                        </group>
+                    </page>
+                    <page string="Recurrency Option" attrs="{'invisible':[('recurrency','=', False)]}">
+                        <group col="4" colspan="4" name="rrule">
+                            <group col="4" colspan="4">
+                                <field name="rrule_type" string="Recurrency period"
+                                   attrs="{'readonly':[('recurrent_uid','!=',False)]}" />
+                                <field name="interval" />
+                                <separator string="End of recurrency" colspan="4"/>
+                                <field name="end_type" />
+                                <label string=" " colspan="2" />
+                                <newline />
+                                <field name="count" attrs="{'invisible' : [('end_type', '!=', 'count')] }"/>
+                                <label string=" " colspan="2" />
+                                <newline />
+                                <field name="end_date" attrs="{'invisible' : [('end_type', '!=', 'end_date')],'required' : [('end_type', '=', 'end_date')],}"/>
+                                <newline />
+                            </group>
+                            <group col="8" colspan="4" name="Select weekdays" attrs="{'invisible' :[('rrule_type','not in', ['weekly'])]}">
+                                <separator string="Choose day where repeat the meeting" colspan="8"/>
+                                <field name="mo" colspan="1" />
+                                <field name="tu" colspan="1" />
+                                <field name="we" colspan="1" />
+                                <field name="th" colspan="1" />
+                                <newline/>
+                                <field name="fr" colspan="1" />
+                                <field name="sa" colspan="1"  />
+                                <field name="su" colspan="1"  />
+                                <newline />
+                            </group>
+                            <group col="10" colspan="4"
+                                attrs="{'invisible' : [('rrule_type','!=','monthly')]}">
+                                <separator string="Choose day in the month where repeat the meeting" colspan="12"/>
+                                <group col="2" colspan="1">
+                                    <field name="select1" />
+                                </group>
+                                <group col="2" colspan="1">
+                                    <field name="day"
+                                        attrs="{'required' : [('select1','=','date'), ('rrule_type','=','monthly')],
+                                            'invisible' : ['|', ('select1','=','day'), ('rrule_type','!=','monthly')]}" />
+                                </group>
+                                <group col="3" colspan="1"
+                                    attrs="{'invisible' : ['|', ('select1','=','date'), ('rrule_type','!=','monthly')]}">
+                                    <field name="byday" string="The"
+                                        attrs="{'required' : [('select1','=','day'), ('rrule_type','=','monthly')]}" />
+                                    <field name="week_list" nolabel="1"
+                                        attrs="{'required' : [('select1','=','day'), ('rrule_type','=','monthly')]}" />
+                                </group>
+                            </group>
+                        </group>
+                    </page>
+                    <page string="Notes">
+                    <separator string="Event details" colspan="4" />
+                        <field name="description" nolabel="1" widget="text_wiki" colspan="4" />
+                    <separator colspan="4" string="Task Information"/>
+                        <field colspan="4" name="notes" nolabel="1" widget="text_wiki" />
+                    </page>
+                    </notebook>
+                </form>
+            </field>
+        </record>
+     <!-- Todo Tree View  -->
+     <record model="ir.ui.view" id="event_tree_todo_view">
+            <field name="name">Todo Tree</field>
+            <field name="model">calendar.todo</field>
+            <field name="type">tree</field>
+            <field name="arch" type="xml">
+                <tree string="Events">
+                    <field name="name" string="Subject" />
+                    <field name="date" string="Event Date" />
+                    <field name="location" />
+                    <field name="calendar_id" />
+                    <field name="category_id" />
+                    <field name="organizer_id" invisible="1"/>
+                    <field name="sequence" invisible="not context.get('seq_visible', False)"/>
+                    <field name="project_id" icon="gtk-indent" invisible="context.get('user_invisible', False)"/>
+                    <field name="user_id" invisible="context.get('user_invisible', False)"/>
+                    <field name="delegated_user_id" invisible="context.get('show_delegated', True)"/>
+                    <field name="total_hours" invisible="1"/>
+                    <field name="planned_hours" invisible="context.get('set_visible',False)"/>
+                    <field name="effective_hours" widget="float_time" sum="Spent Hours" invisible="1"/>
+                    <field name="remaining_hours" widget="float_time" sum="Remaining Hours" on_change="onchange_remaining(remaining_hours,planned_hours)" invisible="context.get('set_visible',False)"/>
+                    <field name="date_deadline" invisible="1"/>
+                    <field name="type_id" invisible="1"/>
+                    <field name="date_start" invisible="1"/>
+                    <field name="date_end" invisible="1"/>
+                    <field name="progress" widget="progressbar" invisible="context.get('set_visible',False)"/>
+                 </tree>
+            </field>
+     </record>
+
+        <!--     Todo Search View-->
+
+        <record id="view_calendar_todo_filter" model="ir.ui.view">
+            <field name="name">Calendar Todo Search</field>
+            <field name="model">calendar.todo</field>
+            <field name="type">search</field>
+            <field name="arch" type="xml">
+                <search string="Search Todo">
+                    <group col="12" colspan="4">
+                           <field name="user_id" groups="base.group_extended">
+                               <filter icon="terp-personal" groups="base.group_extended"
+                                   domain="[('user_id','=',uid)]"
+                                   help="My Meetings" />
+                           </field>
+                           <field name="project_id" context="{'project_id':self}">
+                             <filter domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-personal"/>
+                           </field>
+                           <separator orientation="vertical"/>
+                           <field name="calendar_id" string="Calendar"/>
+                           <field name="name" string="Summary"/>
+                           <separator orientation="vertical"/>
+                           <field name="location" string="Location"/>
+                    </group>
+                    <newline/>
+                    <group expand="0" string="Group By Event...">
+                            <filter string="Calendar" icon="terp-personal" domain="[]"
+                                context="{'group_by':'calendar_id'}" />
+                            <separator orientation="vertical" />
+                            <filter string="Responsible" icon="terp-personal" domain="[]"
+                                context="{'group_by':'user_id'}" />
+                            <filter string="Organizer" icon="terp-personal"
+                                context="{'group_by':'organizer_id'}" />
+                            <separator orientation="vertical" />
+                            <filter string="Category" icon="terp-stock_symbol-selection"
+                                context="{'group_by':'category_id'}" />
+                        <separator orientation="vertical"/>
+                    </group>
+                    <newline/>
+                    <group expand="0" string="Group By Task...">
+                        <filter string="Users" name="group_user_id" icon="terp-personal" domain="[]"  context="{'group_by':'user_id'}"/>
+                        <separator orientation="vertical"/>
+                        <filter string="Project" name="group_project_id" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
+                        <separator orientation="vertical"/>
+                        <filter string="Stage" name="group_stage_id" icon="terp-stage" domain="[]" context="{'group_by':'type_id'}"/>
+                        <separator orientation="vertical"/>
+                        <filter string="Deadline" icon="terp-gnome-cpu-frequency-applet+" domain="[]" context="{'group_by':'date_deadline'}"/>
+                        <separator orientation="vertical"/>
+                        <filter string="Start Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}"/>
+                        <filter string="End Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_end'}"/>
+                    </group>
+                </search>
+            </field>
+        </record>
+
+        <!-- Todo Calendar View  -->
+
+        <record model="ir.ui.view" id="todo_calendar_view">
+            <field name="name">Events Todo Calendar</field>
+            <field name="model">calendar.todo</field>
+            <field name="type">calendar</field>
+            <field name="priority" eval="2"/>
+            <field name="arch" type="xml">
+                <calendar string="Todo" date_start="date" color="calendar_id" date_delay="duration">
+                    <field name="name"/>
+                    <field name="project_id"/>
+                </calendar>
+            </field>
+        </record>
+
+        <!-- Todo Gantt View  -->
+        <record id="view_todo_gantt" model="ir.ui.view">
+            <field name="name">Events Todo Gantt</field>
+            <field name="model">calendar.todo</field>
+            <field name="type">gantt</field>
+            <field eval="2" name="priority"/>
+            <field name="arch" type="xml">
+                <gantt date_start="date_start" date_stop="date_end" string="Calendar Todo" default_group_by="project_id">
+                </gantt>
+            </field>
+        </record>
+
+        <!-- Todo action  -->
+
+        <record id="action_view_event_todo" model="ir.actions.act_window">
+                <field name="name">Todo Meetings</field>
+                <field name="type">ir.actions.act_window</field>
+                <field name="res_model">calendar.todo</field>
+                <field name="view_type">form</field>
+                <field name="view_mode">gantt,calendar,tree,form</field>
+        </record>
+
+        <menuitem id="menu_todo_config" action="action_view_event_todo" name="Todo" parent="project.menu_project_management"/>
+        </data>
+    </openerp>
\ No newline at end of file

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to