forked from Yaltik/golem
[IMP]GOLEM filters : groupby differenciated from common filters
This commit is contained in:
parent
1852181ffb
commit
ab806b3a8b
@ -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>
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user