[IMP] crm,project_issue,hr_holiday: set chatter widget out of sheet.
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Wed, 16 May 2012 05:13:29 +0000 (10:43 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Wed, 16 May 2012 05:13:29 +0000 (10:43 +0530)
bzr revid: tpa@tinyerp.com-20120516051329-w1o4es2e8v02impw

addons/crm/crm_meeting_view.xml
addons/crm/crm_phonecall_view.xml
addons/hr_holidays/hr_holidays_view.xml
addons/project_issue/project_issue_view.xml

index 4c84fef..f9cfa05 100644 (file)
@@ -25,7 +25,8 @@
         <field name="model">crm.meeting</field>
         <field name="type">form</field>
         <field name="arch" type="xml">
-            <form string="Meetings">
+            <form layout="manual">
+            <sheet string="Meetings" layout="auto">
                 <group col="6" colspan="4">
                     <field name="name" select="1" string="Summary"
                            required="1" />
 
                     </page>
                 </notebook>
+            </sheet>
+            <div class="oe_form_sheet_width">
                 <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+            </div>
             </form>
         </field>
     </record>
index ff32825..ceaf492 100644 (file)
@@ -58,7 +58,8 @@
         <field name="model">crm.phonecall</field>
         <field name="type">form</field>
         <field name="arch" type="xml">
-            <form string="Phone Call">
+            <form layout="manual">
+            <sheet string="Phone Call" layout="auto">
                  <group colspan="6" col="7">
                     <field name="name" required="1"/>
                     <field name="partner_phone"/>
                         states="cancel" type="object"
                         icon="gtk-convert" />
                 </group>
+            </sheet>
+            <div class="oe_form_sheet_width">
                 <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+            </div>
             </form>
         </field>
     </record>
index 667d561..27b20dc 100644 (file)
@@ -63,7 +63,8 @@
             <field name="type">form</field>
             <field name="priority">1</field>
             <field name="arch" type="xml">
-                <form string="Leave Request">
+                <form layout="manual">
+                <sheet string="Leave Request" layout="auto">
                     <group col="8" colspan="4">
                     <field name="name" attrs="{'readonly':[('state','!=','draft'),('state','!=','confirm')]}"/>
                     <field name="holiday_type" on_change="onchange_type(holiday_type)" attrs="{'readonly':[('state','!=','draft')]}" width="130" string="Mode" groups="base.group_hr_user"/>
                                 <button string="Approved" name="second_validate" states="validate1" type="workflow" icon="gtk-apply" groups="base.group_hr_user"/>
                                 <button string="Set to Draft" name="set_to_draft" states="refuse,validate" type="object" icon="gtk-convert" groups="base.group_hr_user"/>
                             </group>
-                            <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
                         </page>
                     </notebook>
+                </sheet>
+                <div class="oe_form_sheet_width">
+                    <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                </div>
                 </form>
             </field>
         </record>
             <field name="model">hr.holidays</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-            <form string="Allocation Request">
+            <form layout="manual">
+            <sheet string="Allocation Request" layout="auto">
                 <group col="8" colspan="4">
                     <field name="name"/>
                     <field name="holiday_type" on_change="onchange_type(holiday_type)" attrs="{'readonly':[('state','!=','draft')]}" string="Allocation Mode" groups="base.group_hr_manager"/>
                             <button string="Approved" name="second_validate" states="validate1" type="workflow" icon="gtk-apply" groups="base.group_hr_user"/>
                             <button string="Set to Draft" name="set_to_draft" states="cancel,validate,refuse" type="object" icon="gtk-convert" groups="base.group_hr_user"/>
                         </group>
-                        <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
                     </page>
                 </notebook>
+            </sheet>
+            <div class="oe_form_sheet_width">
+                <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+            </div>
             </form>
             </field>
         </record>
index b887efa..1fd6826 100644 (file)
@@ -50,7 +50,8 @@
             <field name="model">project.issue</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <form string="Issue Tracker Form">
+                <form layout="manual">
+                <sheet string="Issue Tracker Form" layout="auto">
                     <group colspan="4" col="6">
                         <field name="name"/>
                         <field name="project_id" required="True" on_change="on_change_project(project_id)"/>
                             </group>
                         </page>
                     </notebook>
-                    <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                </sheet>
+                   <div class="oe_form_sheet_width">
+                       <field name="message_ids" colspan="4" widget="ThreadView" nolabel="1"/>
+                   </div>
                 </form>
             </field>
         </record>