forked from Yaltik/golem
Add single_parent field and filter to views
This commit is contained in:
parent
6054b3ac87
commit
459972669c
@ -34,6 +34,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<label for="name" string="Family" class="oe_edit_only" />
|
<label for="name" string="Family" class="oe_edit_only" />
|
||||||
<field name="name" class="oe_inline" placeholder="Name" />
|
<field name="name" class="oe_inline" placeholder="Name" />
|
||||||
</h1>
|
</h1>
|
||||||
|
<label for="single_parent" string="Single-Parent Family"/>
|
||||||
|
<field name="single_parent"/>
|
||||||
</div>
|
</div>
|
||||||
</group>
|
</group>
|
||||||
<group string="Address">
|
<group string="Address">
|
||||||
@ -187,6 +189,8 @@ 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" />
|
||||||
|
<filter name="single_parent" string="Single-parent Family"
|
||||||
|
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'}"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user