Khushboo Bhatt(openerp) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-calendar-phase2-cal_todo_search_view-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_search_view-kbh/+merge/93769
Hello,
====calendar_todo====
- I have implemented search view for calendar.todo object.
Thank you,
KBH.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-calendar-phase2-cal_todo_search_view-kbh/+merge/93769
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-calendar-phase2.
=== modified file 'calendar_todo/calendar_todo_view.xml'
--- calendar_todo/calendar_todo_view.xml 2012-02-20 05:00:02 +0000
+++ calendar_todo/calendar_todo_view.xml 2012-02-20 06:30:26 +0000
@@ -143,6 +143,7 @@
<field name="location" />
<field name="calendar_id" />
<field name="organizer_id"/>
+ <field name="task_id" invisible="1"/>
<field name="user_id" invisible="1"/>
<field name="category_id"/>
<field name="state"/>
@@ -170,6 +171,54 @@
</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">
+ <filter name="new" string="New"
+ domain="[('state','=','draft')]"
+ help="New Todo" icon="terp-check"/>
+ <filter name="open" string="Open"
+ domain="[('state','=','open')]"
+ help="open Todo" icon="terp-camera_test"/>
+ <filter string="Pending" domain="[('state','=','pending')]"
+ help="Pending Todo" icon="terp-gtk-media-pause"/>
+ <separator orientation="vertical"/>
+ <filter icon="terp-go-today" string="Today"
+ domain="[('date','>=',datetime.date.today().strftime('%%Y-%%m-%%d 00:00:00')),('date','<=',datetime.date.today().strftime('%%Y-%%m-%%d 23:59:59'))]"
+ name="today"
+ help="Todays's Todos"
+ />
+ <filter icon="terp-go-week" string="7 Days"
+ help="Todos creating during last 7 days"
+ domain="[('date','<', time.strftime('%%Y-%%m-%%d 23:59:59')),('date','>=',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d 00:00:00'))]"
+ />
+ <separator orientation="vertical"/>
+ <field name="name" string="Name"/>
+ <field name="calendar_id" string="Calendar"/>
+ <field name="location" string="Location"/>
+ </group>
+ <newline/>
+ <group expand="0" string="Group By...">
+ <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'}" />
+ <separator orientation="vertical" />
+ <filter string="Task" domain="[]"
+ context="{'group_by':'task_id'}" />
+ <separator orientation="vertical" />
+ <filter string="Category" icon="terp-stock_symbol-selection"
+ context="{'group_by':'category_id'}" />
+ </group>
+ </search>
+ </field>
+ </record>
<!-- todo Calendar View -->
<record model="ir.ui.view" id="event_todo_calendar_view">
<field name="name">Events Calendar</field>
_______________________________________________
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