[IMP]: base_calendar: Minor improvements
authorrpa (Open ERP) <rpa@tinyerp.com>
Fri, 2 Jul 2010 09:10:42 +0000 (14:40 +0530)
committerrpa (Open ERP) <rpa@tinyerp.com>
Fri, 2 Jul 2010 09:10:42 +0000 (14:40 +0530)
bzr revid: rpa@tinyerp.com-20100702091042-zgzsdboa1eazrn0y

addons/base_calendar/__openerp__.py
addons/base_calendar/base_calendar.py
addons/base_calendar/base_calendar_view.xml
addons/base_calendar/security/ir.model.access.csv

index 052e0f4..2d18f67 100644 (file)
@@ -42,7 +42,7 @@
         'wizard/base_calendar_set_exrule_view.xml',
         'base_calendar_view.xml'
     ],
-   # "test" : ['test/base_calendar_test.yml'],
+    "test" : ['test/base_calendar_test.yml'],
     "installable" : True,
     "active" : False,
 }
index 10a7bcf..d7cbabc 100644 (file)
@@ -1544,7 +1544,7 @@ true, it will allow you to hide the event alarm information without removing it.
         @param self: The object pointer
         @param cr: the current row, from the database cursor,
         @param uid: the current user’s ID for security checks,
-        @param ids: List of calendar attendee’s IDs
+        @param ids: List of Event IDs
         @param *args: Get Tupple value
         @param context: A standard dictionary for contextual values 
         """
@@ -1555,7 +1555,7 @@ true, it will allow you to hide the event alarm information without removing it.
         @param self: The object pointer
         @param cr: the current row, from the database cursor,
         @param uid: the current user’s ID for security checks,
-        @param ids: List of calendar attendee’s IDs
+        @param ids: List of Event IDs
         @param *args: Get Tupple value
         @param context: A standard dictionary for contextual values 
         """
@@ -1566,7 +1566,7 @@ true, it will allow you to hide the event alarm information without removing it.
         @param self: The object pointer
         @param cr: the current row, from the database cursor,
         @param uid: the current user’s ID for security checks,
-        @param ids: List of calendar attendee’s IDs
+        @param ids: List of Event IDs
         @param *args: Get Tupple value
         @param context: A standard dictionary for contextual values 
         """
index a6789e5..7e23686 100644 (file)
                     <field name="show_as" />
                     <field name="class" string="Privacy" />
                     <field name="user_id" invisible="1"/>
+                    <field name="state" invisible="1"/>
                 </tree>
             </field>
         </record>
                                domain="[('user_id','=',uid)]"
                                help="My Events" />
                            <separator orientation="vertical"/>
+                           <filter icon="terp-check" string="Confirmed"
+                               domain="[('state','=','confirmed')]"
+                               help="Confirmed Events" />
+                           <separator orientation="vertical"/>
                            <field name="name" select="1" string="Summary"/>
                            <field name="location" select="1" string="Location"/>
                            <separator orientation="vertical"/>
                        </group>
                        <newline/>
                         <group expand="0" string="Group By...">
+                            <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]"
+                                context="{'group_by':'state'}" />
                             <filter string="Date" icon="terp-go-month"
                                 domain="[]" context="{'group_by':'date'}" />
                             <filter string="Availability" icon="terp-camera_test"
index a334fd9..8638226 100644 (file)
@@ -3,3 +3,4 @@
 "access_calendar_alarm","calendar.alarm","model_calendar_alarm","base.group_user",1,1,1,1
 "access_res_alarm","res.alarm","model_res_alarm","base.group_user",1,1,1,1
 "access_calendar_todo","calendar.todo","model_calendar_todo","base.group_user",1,1,1,1
+"access_calendar_event","calendar.event.user","model_calendar_event","base.group_user",1,1,1,1