Add the new legal gardian tree to form

This commit is contained in:
Youssef Elouahby 2018-10-01 01:23:31 +01:00
parent 4c9bfe446a
commit 8a5d18c2f0

View File

@ -34,19 +34,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="leave_alone"/>
<field name="partner_id" invisible="True" required="False" />
<field name="is_minor" invisible="True" />
<field name="legal_guardian_ids"
context="{'search_default_type_person': 1}">
<field name="legal_guardian2_ids" context="{'default_member_id': active_id}">
<tree>
<field name="name" />
<field name="is_default_gardian"/>
<button name="do_default_gardian" type="object"
icon="fa-bookmark"
attrs="{'invisible': [('is_default_gardian', '=', False)]}"
context="{'member_id': id}"/>
<field name="name"/>
<field name="contact_address" />
<field name="phone" />
<field name="mobile" />
<field name="email" widget="email" />
<field name="is_default_gardian"/>
<button name="do_default_gardian" type="object"
icon="fa-bookmark"
attrs="{'invisible': [('is_default_gardian', '=', True)]}"/>
</tree>
</field>
</group>
@ -54,6 +52,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</page>
</field>
</record>
<!-- Forms -->
<record id="golem_legal_gardian_form" model="ir.ui.view">
<field name="name">GOLEM Legal Gardian Form</field>
<field name="model">golem.legal.gardian</field>
<field name="arch" type="xml">
<form>
<group>
<field name="member_id" invisible="1"/>
<field name="legal_gardian_id"/>
<field name="is_default_gardian"/>
</group>
</form>
</field>
</record>
<!-- Search -->
<record model="ir.ui.view" id="golem_member_search_inherit_minor">