[MERGP] Inline Searchview This task split the searchview in two parts: SearchView and SearchViewDrawer. The drawer is displayed inside the main view and the searchview stays in place. It also changes the scrolling behavior of the web client: the main view area can scroll without affecting the UI (so the various menus stays in place) Because of this, other large changes have been made: the drawer has been redesigned, the Custom Filter widget has been split in two (Custom Report and SaveCurrentFilter), the main view is now scrollable, so the UI stays in place and only the view can change The text 'Group By...' has been changed into 'Group By' (most addons had to be modified) bootstrap classes are used when it makes sense (for example, badge) the left menu is also scrollable (separately from the main view) It is likely that some stupid bugs have been introduced. Please don't hurt me.
88 lines
3.9 KiB
XML
88 lines
3.9 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Alias Form View -->
|
|
<record model="ir.ui.view" id="view_mail_alias_form">
|
|
<field name="name">mail.alias.form</field>
|
|
<field name="model">mail.alias</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Alias">
|
|
<sheet>
|
|
<h2><field name="alias_name" class="oe_inline"/>@<field name="alias_domain" class="oe_inline"/></h2>
|
|
<div class="oe_right oe_button_box">
|
|
<button name="open_document" string="Open Document"
|
|
type="object" class="oe_link"
|
|
attrs="{'invisible': ['|', ('alias_model_id', '=', False), ('alias_force_thread_id', '=', 0)]}"/>
|
|
<button name="open_parent_document" string="Open Parent Document"
|
|
type="object" class="oe_link"
|
|
attrs="{'invisible': ['|', ('alias_parent_model_id', '=', False), ('alias_parent_thread_id', '=', 0)]}"/>
|
|
</div>
|
|
<group>
|
|
<field name="alias_model_id"/>
|
|
<field name="alias_force_thread_id"/>
|
|
<field name="alias_defaults"/>
|
|
<field name="alias_contact"/>
|
|
<field name="alias_user_id"/>
|
|
<field name="alias_parent_model_id"/>
|
|
<field name="alias_parent_thread_id"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Alias List View -->
|
|
<record model="ir.ui.view" id="view_mail_alias_tree">
|
|
<field name="name">mail.alias.tree</field>
|
|
<field name="model">mail.alias</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Alias">
|
|
<field name="alias_name"/>
|
|
<field name="alias_model_id"/>
|
|
<field name="alias_user_id"/>
|
|
<field name="alias_defaults"/>
|
|
<field name="alias_contact"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Alias Search View -->
|
|
<record model="ir.ui.view" id="view_mail_alias_search">
|
|
<field name="name">mail.alias.search</field>
|
|
<field name="model">mail.alias</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Alias">
|
|
<field name="alias_name"/>
|
|
<field name="alias_model_id"/>
|
|
<field name="alias_force_thread_id"/>
|
|
<field name="alias_parent_model_id"/>
|
|
<field name="alias_parent_thread_id"/>
|
|
<separator/>
|
|
<filter string="Active" name="active" domain="[('alias_name', '!=', False)]"/>
|
|
<group expand="0" string="Group By">
|
|
<filter string="User" name="User" context="{'group_by':'alias_user_id'}"/>
|
|
<filter string="Model" name="Model" context="{'group_by':'alias_model_id'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_view_mail_alias" model="ir.actions.act_window">
|
|
<field name="name">Aliases</field>
|
|
<field name="res_model">mail.alias</field>
|
|
<field name="context">{
|
|
'search_default_active': True,
|
|
}
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem id="mail_alias_menu"
|
|
parent="base.menu_email"
|
|
action="action_view_mail_alias"
|
|
sequence="50"
|
|
groups="base.group_no_one"/>
|
|
|
|
</data>
|
|
</openerp>
|