[TYPO] Set the right category for the Point Of Sale
[odoo/odoo.git] / addons / base_calendar / base_calendar_view.xml
index 055b223..164331b 100644 (file)
@@ -8,63 +8,50 @@
             <field name="model">calendar.attendee</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <form layout="manual">
-                    <div class="oe_form_topbar">
-                        <button name="do_tentative"
-                            states="needs-action,declined,accepted"
-                            string="Uncertain" type="object"
-                            icon="terp-crm" />
-                        <button name="do_accept" string="Accept"
-                            states="needs-action,tentative,declined"
-                            type="object" icon="gtk-apply" />
-                        <button
-                            name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
-                            string="Delegate" type="action"
-                            icon="gtk-sort-descending"
-                            states="needs-action,tentative,declined,accepted"
-                            context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
-                        <button name="do_decline" string="Decline"
-                            states="needs-action,tentative,accepted"
-                            type="object" icon="gtk-cancel" />
-                        <div class="oe_right">
-                            <field name="state" widget="statusbar" nolabel="1" statusbar_visible="tentative,needs-action,accepted" statusbar_colors='{"proforma":"blue"}'/>
+                <form string="Invitation details" version="7.0">
+                    <header>
+                        <button name="do_tentative" states="needs-action,declined,accepted" string="Uncertain" type="object" class="oe_highlight"/>
+                        <button name="do_accept" string="Accept" states="needs-action,tentative,declined" type="object" class="oe_highlight"/>
+                        <button name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d" string="Delegate" type="action" states="needs-action,tentative,declined,accepted" context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
+                        <button name="do_decline" string="Decline" states="needs-action,tentative,accepted" type="object" class="oe_highlight"/>
+                        <field name="state" widget="statusbar"
+                            statusbar_visible="tentative,needs-action,accepted" statusbar_colors='{"proforma":"blue"}'/>
+                    </header>
+                    <sheet>
+
+                        <div class="oe_title">
+                            <label for="email" string="Invitation To" class="oe_edit_only" /> 
+                            <h1>
+                                <field name="email" class="oe_inline" />
+                                (<field name="language" class="oe_inline" />)
+                            </h1>
+                            
+                            <h2>
+                                From <field name="event_date" class="oe_inline" />
+                                to <field name="event_end_date" class="oe_inline"/>
+                            </h2>
                         </div>
-                        <div class="oe_clear"/>
-                    </div>
-                    <sheet string="Invitation details" layout="auto">
-                        <group col="6" colspan="4">
-                            <field name="email" string="Invitation To"/>
-                            <field name="cutype" string="Invitation Type" />
-                            <field name="rsvp" />
-                            <field name="role" string="Role" />
-                            <field name="sent_by_uid" string="Invitation From" />
+                        <group>
+                            <group>
+                                <field name="sent_by_uid" string="Invitation From" />
+                                <field name="user_id" string="Invited User"/>
+                                <field name="partner_id" string="Contact" />
+                            </group>
+                            <group>
+                                <field name="cutype" string="Invitation Type" />
+                                <field name="role" string="Role" />
+                                <field name="rsvp" />
+                                <field name="ref" readonly="1"/>
+                            </group>
+                        </group>
+                        <group>
+                            <group string="Delegated From">
+                                <field name="parent_ids" readonly="1" nolabel="1" />
+                            </group>
+                            <group string="Delegated To" >
+                                <field name="child_ids" readonly="1" nolabel="1" />
+                            </group>
                         </group>
-                        <notebook colspan="4">
-                            <page string="Invitation">
-                                <separator string="Invitation Detail" colspan="4" />
-                                <group colspan="4" col="4">
-                                    <field name="user_id" string="Invited User"/>
-                                    <newline/>
-                                    <field name="partner_id"
-                                        string="Contact" />
-                                </group>
-                                <separator string="Event Detail" colspan="4" />
-                                <group colspan="4" col="4">
-                                    <field name="event_date" />
-                                    <field name="event_end_date" />
-                                    <field name="language"/>
-                                    <field name="ref" colspan="4" readonly="1"/>
-                                </group>
-                            </page>
-                            <page string="Delegation Info">
-                                <separator string="Delegated From" colspan="4" />
-                                <field name="parent_ids" nolabel="1"
-                                    colspan="4" readonly="1" />
-                                <separator string="Delegated To" colspan="4" />
-                                <field name="child_ids" nolabel="1"
-                                    colspan="4" readonly="1" />
-                            </page>
-                        </notebook>
                     </sheet>
                 </form>
             </field>
                     <field name="cutype" string="Invitation Type"/>
                     <field name="state" />
                     <field name="rsvp" string="Required to Join"/>
-                    <button name="do_tentative" states="needs-action,declined,accepted"
-                                string="Uncertain" type="object"
-                                icon="terp-crm" />
-                    <button name="do_accept" string="Accept"
-                        states="needs-action,tentative,declined"
-                        type="object" icon="gtk-apply" />
-                    <button name="do_decline" string="Decline"
-                        states="needs-action,tentative,accepted"
-                        type="object" icon="gtk-cancel" />
-                    <button
-                        name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
-                        string="Delegate" type="action"
-                        icon="gtk-sort-descending"
-                        states="needs-action,tentative,declined,accepted"
-                        context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
                 </tree>
             </field>
         </record>
             <field name="type">search</field>
             <field name="arch" type="xml">
                 <search string="Search Invitations">
-                   <filter icon="terp-gtk-jump-to-ltr" name="toreview" string="To Review"
-                       domain="[('state','=', 'needs-action')]"
-                       help="Invitations To Review" />
-                   <filter icon="terp-check" string="Accepted"
-                       domain="[('state','=', 'accepted')]"
-                       help="Accepted Invitations" />
-                   <filter icon="terp-dialog-close" string="Declined"
-                       domain="[('state','=', 'declined')]"
-                       help="Declined Invitations" />
-                   <filter icon="gtk-sort-descending" string="Delegated"
-                       domain="[('state','=', 'delegated')]"
-                       help="Delegated Invitations" />
-                   <separator orientation="vertical"/>
-                   <field name="email"/>
-                   <field name="user_id" string="Responsible"/>
-                   <separator orientation="vertical"/>
-                   <field name="cutype" string="Invitation type"/>
-                   <field name="event_date"/>
-                   <newline/>
+                    <field name="email" string="Email"/>
+                    <field name="event_date"/>
+                    <filter icon="terp-gtk-jump-to-ltr" name="toreview" string="To Review" domain="[('state','=', 'needs-action')]" help="Invitations To Review" />
+                    <filter icon="terp-check" string="Accepted" domain="[('state','=', 'accepted')]" help="Accepted Invitations" />
+                    <filter icon="terp-dialog-close" string="Declined" domain="[('state','=', 'declined')]" help="Declined Invitations" />
+                    <filter icon="gtk-sort-descending" string="Delegated" domain="[('state','=', 'delegated')]" help="Delegated Invitations" />
+                    <field name="user_id" string="Responsible"/>
+                    <field name="cutype" string="Invitation type"/>
                     <group expand="0" string="Group By...">
-                        <filter string="Responsible" icon="terp-personal" domain="[]"
-                            context="{'group_by':'user_id'}" />
-                        <filter string="Contact" icon="terp-personal" domain="[]"
-                            context="{'group_by':'partner_id'}" />
-                        <separator orientation="vertical" />
-                        <filter string="Type" icon="terp-stock_symbol-selection" help="Invitation Type"
-                            domain="[]" context="{'group_by':'cutype'}" />
-                        <filter string="Role" icon="terp-gtk-select-all"
-                            domain="[]" context="{'group_by':'role'}" />
-                        <filter string="Required Reply" icon="terp-mail-replied"
-                            domain="[]" context="{'group_by':'rsvp'}" />
-                        <separator orientation="vertical" />
-                        <filter string="State" icon="terp-stock_effects-object-colorize" help="Invitation Type"
+                        <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}" />
+                        <filter string="Contact" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}" />
+                        <filter string="Type" icon="terp-stock_symbol-selection" help="Invitation Type" domain="[]" context="{'group_by':'cutype'}" />
+                        <filter string="Role" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'role'}" />
+                        <filter string="Required Reply" icon="terp-mail-replied" domain="[]" context="{'group_by':'rsvp'}" />
+                        <filter string="Status" icon="terp-stock_effects-object-colorize" help="Invitation Type"
                             domain="[]" context="{'group_by':'state'}" />
                     </group>
                </search>
 
         <!-- Calenadar's menu -->
         <menuitem id="base.menu_calendar_configuration" name="Calendar"
-            parent="base.menu_base_config" sequence="50" groups="base.group_sale_manager" />
+            parent="base.menu_base_config" sequence="50" groups="base.group_no_one"/>
 
         <!-- Invitation menu -->
 
             <field name="model">res.alarm</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <form string="Reminder details">
-                    <field name="name" />
-                    <field name="active" />
-                    <separator string="Reminder Details" colspan="4" />
-                    <field name="trigger_duration" select="1" />
-                    <field name="trigger_interval" select="1" />
-                    <field name="trigger_occurs" select="1" />
-                    <field name="trigger_related" select="1" />
+                <form string="Reminder details" version="7.0">
+                    <group col="4">
+                        <field name="name" />
+                        <field name="active" />
+                        <separator string="Reminder Details" colspan="4" />
+                        <field name="trigger_duration" />
+                        <field name="trigger_interval" />
+                        <field name="trigger_occurs" />
+                        <field name="trigger_related" />
+                    </group>
                 </form>
             </field>
         </record>
             <field name="type">tree</field>
             <field name="arch" type="xml">
                 <tree string="Reminder details">
-                <field name="name" select="1"/>
-                <field name="trigger_interval" select="1"/>
-                <field name="trigger_duration" select="1"/>
-                <field name="trigger_occurs" select="1"/>
-                <field name="trigger_related" select="1"/>
+                <field name="name"/>
+                <field name="trigger_interval"/>
+                <field name="trigger_duration"/>
+                <field name="trigger_occurs"/>
+                <field name="trigger_related"/>
                 </tree>
             </field>
         </record>
             <field name="model">calendar.event</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <form layout="manual">
-                <div class="oe_form_topbar">
-                    <button name="do_confirm"
-                        string="Confirm"
-                        states="tentative,cancelled"
-                        type="object"
-                        icon="gtk-apply" />
-                    <button name="do_tentative"
-                        states="confirmed,cancelled"
-                        string="Uncertain"
-                        type="object"
-                        icon="terp-crm" />
-                    <button name="do_cancel"
-                        string="Cancel"
-                        states="tentative,confirmed"
-                        type="object"
-                        icon="gtk-cancel" />
-                    <div class="oe_right">
-                        <field name="state" widget="statusbar" nolabel="1" statusbar_visible="tentative,confirmed" statusbar_colors='{"proforma":"blue"}'/>
-                    </div>
-                    <div class="oe_clear"/>
-                </div>
-                <sheet string="Events" layout="auto">
-                    <group col="6" colspan="4">
-                        <field name="name" select="1" string="Summary"
+                <form string="Events" version="7.0">
+                <header>
+                    <button name="do_confirm" string="Confirm" states="tentative,cancelled" type="object" class="oe_highlight"/>
+                    <button name="do_tentative" states="confirmed,cancelled" string="Uncertain" type="object" class="oe_highlight"/>
+                    <button name="do_cancel" string="Cancel" states="tentative,confirmed" type="object" />
+                    <field name="state" widget="statusbar"
+                        statusbar_visible="tentative,confirmed" statusbar_colors='{"proforma":"blue"}'/>
+                </header>
+                <sheet>
+                    <group col="6">
+                        <field name="name" string="Summary"
                             colspan="4" required="1" />
                         <field name="allday" colspan="2" on_change="onchange_dates(date,False,False,allday)" />
                         <newline/>
-                        <field name="date" string="Start Date" required="1" select="1"
+                        <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="recurrency"/>
                         </group>
                     </group>
-                    <notebook colspan="4">
+                    <notebook>
                     <page string="Event">
                         <group col="6" colspan="4">
                              <separator colspan="6" string="Visibility"/>
                              <field name="recurrent_id" invisible="1" />
                              <field name="recurrent_uid" invisible="1" />
                         </group>
-                        <separator string="Description" colspan="4" />
-                        <field name="description" nolabel="1" colspan="4" />
-                        </page>
-                        <page string="Invitation Detail">
-                            <button string="Invite People"
-                                name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
-                                icon="terp-partner" type="action"
-                                context="{'model' : 'calendar.event', 'attendee_field':'attendee_ids'}" colspan="2"/>
-                            <field name="attendee_ids" colspan="4"
-                                nolabel="1" widget="one2many" mode="tree,form">
-                                <tree string="Invitation details" editable="top">
-                                    <field name="sent_by_uid" string="From"/>
-                                    <field name="user_id" string="To"/>
-                                    <field name="email" />
-                                    <field name="role" width="200" select="1" />
-                                    <field name="state" />
-                                    <button name="do_tentative"
-                                        states="needs-action,declined,accepted"
-                                        string="Uncertain" type="object"
-                                        icon="terp-crm" />
-                                    <button name="do_accept" string="Accept"
-                                        states="needs-action,tentative,declined"
-                                        type="object" icon="gtk-apply" />
-                                    <button name="do_decline" string="Decline"
-                                        states="needs-action,tentative,accepted"
-                                        type="object" icon="gtk-cancel" />
-                                    <button
-                                        name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
-                                        string="Delegate" type="action"
-                                        icon="gtk-sort-descending"
-                                        states="needs-action,tentative,declined,accepted"
-                                        context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
-                                </tree>
-                                <form string="Invitation details">
-                                    <notebook colspan="4">
-                                        <page string="Details">
+                        <separator string="Description"/>
+                        <field name="description"/>
+                    </page>
+                    <page string="Invitation Detail">
+                        <button string="Invite People"
+                            name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
+                            icon="terp-partner" type="action"
+                            context="{'model' : 'calendar.event', 'attendee_field':'attendee_ids'}" colspan="2"/>
+                        <field name="attendee_ids" colspan="4"
+                            nolabel="1" widget="one2many" mode="tree">
+                            <tree string="Invitation details" editable="top">
+                                <field name="sent_by_uid" string="From"/>
+                                <field name="user_id" string="To"/>
+                                <field name="email" />
+                                <field name="role" width="200" />
+                                <field name="state" />
+                                <button name="do_tentative"
+                                    states="needs-action,declined,accepted"
+                                    string="Uncertain" type="object"
+                                    icon="terp-crm" />
+                                <button name="do_accept" string="Accept"
+                                    states="needs-action,tentative,declined"
+                                    type="object" icon="gtk-apply" />
+                                <button name="do_decline" string="Decline"
+                                    states="needs-action,tentative,accepted"
+                                    type="object" icon="gtk-cancel" />
+                                <button
+                                    name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
+                                    string="Delegate" type="action"
+                                    icon="gtk-sort-descending"
+                                    states="needs-action,tentative,declined,accepted"
+                                    context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
+                            </tree>
+                            <form string="Invitation details" version="7.0">
+                                <notebook colspan="4">
+                                    <page string="Details">
+                                        <group col="4">
                                             <field name="email" />
-                                            <field name="rsvp" select="1" />
-                                            <field name="cutype" select="1" />
-                                            <field name="role" select="1" />
-                                            <separator colspan="4" string="" />
-                                            <group col="6" colspan="4">
-                                                <field name="state" select="2" />
-                                                <button name="do_tentative"
-                                                    states="needs-action,declined,accepted"
-                                                    string="Uncertain"
-                                                    type="object"
-                                                    icon="terp-crm" />
-                                                <button name="do_accept"
-                                                    string="Accept"
-                                                    states="needs-action,tentative,declined"
-                                                    type="object"
-                                                    icon="gtk-apply" />
-                                                <button name="do_decline"
-                                                    string="Decline"
-                                                    states="needs-action,tentative,accepted"
-                                                    type="object"
-                                                    icon="gtk-cancel" />
-                                                <button
-                                                    name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
-                                                    string="Delegate"
-                                                    type="action"
-                                                    icon="gtk-sort-descending"
-                                                    states="needs-action,tentative,declined,accepted"
-                                                    context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
-                                            </group>
-                                        </page>
+                                            <field name="rsvp"/>
+                                            <field name="cutype"/>
+                                            <field name="role"/>
+                                        </group>
+                                        <group col="4">
+                                            <field name="state"/>
+                                            <button name="do_tentative"
+                                                states="needs-action,declined,accepted"
+                                                string="Uncertain"
+                                                type="object"
+                                                icon="terp-crm" />
+                                            <button name="do_accept"
+                                                string="Accept"
+                                                states="needs-action,tentative,declined"
+                                                type="object"
+                                                icon="gtk-apply" />
+                                            <button name="do_decline"
+                                                string="Decline"
+                                                states="needs-action,tentative,accepted"
+                                                type="object"
+                                                icon="gtk-cancel" />
+                                            <button
+                                                name="%(base_calendar.action_view_calendar_invite_attendee_wizard)d"
+                                                string="Delegate"
+                                                type="action"
+                                                icon="gtk-sort-descending"
+                                                states="needs-action,tentative,declined,accepted"
+                                                context="{'model' : 'calendar.attendee', 'attendee_field' : 'child_ids'}" />
+                                        </group>
+                                    </page>
                                     </notebook>
                                 </form>
                             </field>
                                 <field name="rrule_type" string="Recurrency period"
                                    attrs="{'readonly':[('recurrent_uid','!=',False)]}" />
                                 <field name="interval" />
-
-
-                                <separator string="End of Recurrency" colspan="4"/>
+                                <separator string="End of Recurrence" colspan="4"/>
                                 <field name="end_type" />
                                 <label string=" " colspan="2" />
                                 <newline />
             <field name="type">search</field>
             <field name="arch" type="xml">
                 <search string="Search Events">
-                       <group>
-                           <filter icon="terp-go-today" string="My Events"
-                               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" string="Summary"/>
-                           <field name="location" string="Location"/>
-                           <separator orientation="vertical"/>
-                           <field name="user_id"/>
-                           <separator orientation="vertical"/>
-                           <field name="show_as"/>
-                           <field name="class" string="Privacy"/>
-                       </group>
-                       <newline/>
-                        <group expand="0" string="Group By...">
-                            <filter string="Responsible" icon="terp-personal" domain="[]"
-                                context="{'group_by':'user_id'}" />
-                            <separator orientation="vertical" />
-                            <filter string="Availability" icon="terp-camera_test"
-                                domain="[]" context="{'group_by':'show_as'}" />
-                            <filter string="Privacy" icon="terp-locked"
-                                domain="[]" context="{'group_by':'class'}" />
-                            <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]"
-                                context="{'group_by':'state'}" />
-                            <separator orientation="vertical" />
-                            <filter string="Date" icon="terp-go-month"
-                                domain="[]" context="{'group_by':'date'}" />
-
-                        </group>
+                    <field name="name" filter_domain="['|',('name','ilike',self),('location','ilike',self)]" string="Event"/>
+                    <field name="show_as"/>
+                    <field name="class" string="Privacy"/>
+                    <filter icon="terp-go-today" string="My Events" domain="[('user_id','=',uid)]" help="My Events" />
+                    <separator/>
+                    <filter icon="terp-check" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Events" />
+                    <field name="user_id"/>
+                    <group expand="0" string="Group By...">
+                        <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}" />
+                        <filter string="Availability" icon="terp-camera_test" domain="[]" context="{'group_by':'show_as'}" />
+                        <filter string="Privacy" icon="terp-locked" domain="[]" context="{'group_by':'class'}" />
+                        <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}" />
+                        <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
+                    </group>
                 </search>
             </field>
         </record>