[IMP]GOLEM Member : default search to current season + form header rendering enhancement

This commit is contained in:
Fabien Bourgeois 2016-06-26 08:51:09 +02:00
parent e18bc7f55d
commit accb001ed4

View File

@ -26,16 +26,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<sheet> <sheet>
<div class="oe_title"> <group>
<h1> <div class="oe_title">
<field name="image" widget="image" class="oe_left oe_avatar" <h1>
options="{'preview_image': 'image_medium', 'size': [90, 90]}" /> <field name="image" widget="image" class="oe_left oe_avatar"
<field name="name" class="oe_inline" readonly="True" /> options="{'preview_image': 'image_medium', 'size': [90, 90]}" />
</h1> <field name="name" class="oe_inline" readonly="True" />
</h1>
</div>
<group> <group>
<field name="season_ids" widget="many2many_tags" /> <field name="season_ids" widget="many2many_tags" />
</group> </group>
</div> </group>
<group string="Personal details"> <group string="Personal details">
<group> <group>
<field name="lastname" required="True" /> <field name="lastname" required="True" />
@ -131,7 +133,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="mobile" /> <field name="mobile" />
<field name="email" /> <field name="email" />
<field name="category_id" widget="many2one" /> <field name="category_id" widget="many2one" />
<filter name="season_current" string="Is active in current season" <filter name="season_current" string="Current season"
domain="[('is_current', '=', True)]" /> domain="[('is_current', '=', True)]" />
<group string="Group By"> <group string="Group By">
<filter name="group_city" string="By city" <filter name="group_city" string="By city"
@ -156,7 +158,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<act_window id="golem_member_action" <act_window id="golem_member_action"
name="GOLEM Members" name="GOLEM Members"
res_model="golem.member" res_model="golem.member"
view_mode="kanban,tree,form,graph" /> view_mode="kanban,tree,form,graph"
context="{'search_default_season_current': True}" />
<record model="ir.actions.act_window.view" <record model="ir.actions.act_window.view"
id="golem_member_view_kanban"> id="golem_member_view_kanban">
<field name="view_mode">kanban</field> <field name="view_mode">kanban</field>