2016-06-25 18:08:01 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2018-08-26 18:16:50 +02:00
|
|
|
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
|
2018-10-08 03:48:11 +02:00
|
|
|
Copyright 2018 Youssef El Ouahby <youssef@yaltik.com>
|
2016-06-25 18:08:01 +02:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
|
2017-04-29 09:16:41 +02:00
|
|
|
<odoo>
|
2016-06-25 18:08:01 +02:00
|
|
|
<data>
|
|
|
|
|
2018-10-24 07:57:15 +02:00
|
|
|
<!-- Forms -->
|
2017-05-01 22:15:39 +02:00
|
|
|
<record model="ir.ui.view" id="golem_member_form_inherit_minor">
|
2016-06-25 18:08:01 +02:00
|
|
|
<field name="name">Add Minor Page/Tab</field>
|
|
|
|
<field name="model">golem.member</field>
|
2017-05-01 22:15:39 +02:00
|
|
|
<field name="inherit_id" ref="golem_member.golem_member_form" />
|
2016-06-25 18:08:01 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<page name="contact_details" position="after">
|
|
|
|
<page name="minor_page" string="Minor"
|
|
|
|
attrs="{'invisible': [('is_minor', '=', False)]}">
|
|
|
|
<group name="minor_group">
|
2018-08-26 18:16:50 +02:00
|
|
|
<field name="activities_participation"/>
|
|
|
|
<field name="leave_alone"/>
|
|
|
|
<field name="partner_id" invisible="True" required="False" />
|
|
|
|
<field name="is_minor" invisible="True" />
|
2018-10-24 07:57:15 +02:00
|
|
|
<field name="legal_guardian_ids" context="{'default_member_id': active_id}" />
|
2016-06-25 18:08:01 +02:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</page>
|
2018-10-25 17:55:49 +02:00
|
|
|
<xpath expr="//page[@name='membership']/group/group/div/button[1]"
|
|
|
|
position="attributes">
|
2018-10-08 03:48:11 +02:00
|
|
|
<attribute name="name">membership_invoice_action</attribute>
|
|
|
|
<attribute name="type">object</attribute>
|
|
|
|
</xpath>
|
2016-06-25 18:08:01 +02:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-10-24 07:57:15 +02:00
|
|
|
<record id="golem_legal_guardian_view_form" model="ir.ui.view">
|
2018-10-02 00:56:26 +02:00
|
|
|
<field name="name">GOLEM Legal Guardian Form</field>
|
|
|
|
<field name="model">golem.legal.guardian</field>
|
2018-10-01 02:23:31 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
2018-10-24 07:57:15 +02:00
|
|
|
<sheet>
|
|
|
|
<group>
|
|
|
|
<field name="member_id" />
|
|
|
|
<field name="legal_guardian_id" />
|
|
|
|
<field name="is_default_guardian" />
|
|
|
|
</group>
|
|
|
|
</sheet>
|
2018-10-01 02:23:31 +02:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2016-06-25 18:08:01 +02:00
|
|
|
|
2018-10-24 07:57:15 +02:00
|
|
|
<!-- Trees -->
|
|
|
|
<record id="golem_legal_guardian_view_tree" model="ir.ui.view">
|
|
|
|
<field name="name">GOLEM Legal Guardian Tree</field>
|
|
|
|
<field name="model">golem.legal.guardian</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree editable="bottom">
|
|
|
|
<field name="legal_guardian_id" />
|
|
|
|
<field name="contact_address" />
|
|
|
|
<field name="phone" attrs="{'readonly': [('legal_guardian_id', '=', False)]}" />
|
|
|
|
<field name="mobile" attrs="{'readonly': [('legal_guardian_id', '=', False)]}" />
|
|
|
|
<field name="email" widget="email" attrs="{'readonly': [('legal_guardian_id', '=', False)]}" />
|
|
|
|
<field name="is_default_guardian" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2016-06-25 18:08:01 +02:00
|
|
|
<!-- Search -->
|
2017-05-01 22:15:39 +02:00
|
|
|
<record model="ir.ui.view" id="golem_member_search_inherit_minor">
|
2016-06-25 18:08:01 +02:00
|
|
|
<field name="name">Add Minor/Adult filters</field>
|
|
|
|
<field name="model">golem.member</field>
|
2017-05-01 22:15:39 +02:00
|
|
|
<field name="inherit_id" ref="golem_member.golem_member_search" />
|
2016-06-25 18:08:01 +02:00
|
|
|
<field name="arch" type="xml">
|
2017-05-01 22:15:39 +02:00
|
|
|
<filter name="season_default" position="after">
|
2017-06-05 17:47:07 +02:00
|
|
|
<separator />
|
2016-06-25 18:08:01 +02:00
|
|
|
<filter name="filter_is_minor" string="Is minor"
|
|
|
|
domain="[('is_minor', '=', True)]"/>
|
|
|
|
<filter name="filter_is_adult" string="Is adult"
|
|
|
|
domain="[('is_minor', '!=', True)]"/>
|
2017-05-01 22:15:39 +02:00
|
|
|
</filter>
|
2016-06-25 18:08:01 +02:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
2017-04-29 09:16:41 +02:00
|
|
|
</odoo>
|