[IMP] mail.group: tweaked form view
bzr revid: tde@openerp.com-20120515145120-8agdbw1ool4mmzrz
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
<field name="priority" eval="10"/>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Group Form" layout="manual">
|
||||
<sheet layout="auto">
|
||||
<sheet layout="auto" style="min-height: 0; max-height: none;">
|
||||
<group colspan="1">
|
||||
<field name="photo" widget='image' nolabel="1" on_change="onchange_photo(photo)"/>
|
||||
</group>
|
||||
@@ -68,18 +68,31 @@
|
||||
<field name="description" colspan="4" nolabel="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<group colspan="4" col="6">
|
||||
<field name="models" colspan="3">
|
||||
<tree string="Document models">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
<field name="groups" colspan="3">
|
||||
<tree string="Document groups">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
<group colspan="4" col="4">
|
||||
<p><a href="#" class="oe_mail_group_advanced">See advanced options for groups</a></p>
|
||||
<newline/>
|
||||
<div class="oe_mail_group_advanced_details">
|
||||
<group colspan="4" col="6">
|
||||
<field name="models" colspan="3">
|
||||
<tree string="Document models">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
<field name="groups" colspan="3">
|
||||
<tree string="Document groups">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</div>
|
||||
</group>
|
||||
<script>
|
||||
$('a.oe_mail_group_advanced').click(function() {
|
||||
var lapin = ($(this)).parents('.oe_form_autolayout').eq(0);
|
||||
console.log(lapin);
|
||||
lapin.find('div.oe_mail_group_advanced_details').toggle();
|
||||
});
|
||||
</script>
|
||||
</sheet>
|
||||
<div class="oe_form_sheet_width">
|
||||
<field name="message_ids_social" colspan="4" widget="ThreadView" nolabel="1"
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
/* Group Form */
|
||||
/* ------------------------------ */
|
||||
|
||||
div.oe_mail_group_advanced_details {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ------------------------------ */
|
||||
/* Group Kanban */
|
||||
|
||||
Reference in New Issue
Block a user