[IMP]GOLEM filters : groupby differenciated from common filters

This commit is contained in:
Fabien Bourgeois 2016-06-25 18:36:43 +02:00
parent 1852181ffb
commit ab806b3a8b
2 changed files with 6 additions and 4 deletions

View File

@ -119,8 +119,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="model">golem.member</field> <field name="model">golem.member</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search> <search>
<filter name="group_city" string="By city" <group string="Group By">
context="{'group_by': 'city'}"/> <filter name="group_city" string="By city"
context="{'group_by': 'city'}"/>
</group>
</search> </search>
</field> </field>
</record> </record>

View File

@ -52,12 +52,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="model">golem.member</field> <field name="model">golem.member</field>
<field name="inherit_id" ref="golem_member.golem_member_view_filter" /> <field name="inherit_id" ref="golem_member.golem_member_view_filter" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<filter name="group_city" position="before"> <group string="Group By" position="before">
<filter name="filter_is_minor" string="Is minor" <filter name="filter_is_minor" string="Is minor"
domain="[('is_minor', '=', True)]"/> domain="[('is_minor', '=', True)]"/>
<filter name="filter_is_adult" string="Is adult" <filter name="filter_is_adult" string="Is adult"
domain="[('is_minor', '!=', True)]"/> domain="[('is_minor', '!=', True)]"/>
</filter> </group>
</field> </field>
</record> </record>