forked from Yaltik/golem
Add area_id filters
This commit is contained in:
parent
51ab81f916
commit
5cc81003da
@ -46,7 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="street2" />
|
<field name="street2" />
|
||||||
<field name="zip" placeholder="ZIP" />
|
<field name="zip" placeholder="ZIP" />
|
||||||
<field name="area_id" placeholder="Area, quarter..."
|
<field name="area_id" placeholder="Area, quarter..."
|
||||||
options="{'no_create': true}" />
|
options="{'no_create': true}" />
|
||||||
<field name="city" placeholder="City" />
|
<field name="city" placeholder="City" />
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
@ -193,11 +193,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="phone" />
|
<field name="phone" />
|
||||||
<field name="mobile" />
|
<field name="mobile" />
|
||||||
<field name="email" />
|
<field name="email" />
|
||||||
|
<field name='area_id'/>
|
||||||
<filter name="single_parent" string="Single-parent"
|
<filter name="single_parent" string="Single-parent"
|
||||||
domain="[('single_parent', '=', True)]" />
|
domain="[('single_parent', '=', True)]" />
|
||||||
<group string="Group By">
|
<group string="Group By">
|
||||||
<filter name="group_city" string="By city"
|
<filter name="group_city" string="By city"
|
||||||
context="{'group_by': 'city'}"/>
|
context="{'group_by': 'city'}"/>
|
||||||
|
<filter name='group_by_area_id' string="By area"
|
||||||
|
context='{"group_by": "area_id"}'/>
|
||||||
</group>
|
</group>
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user