56 lines
2.1 KiB
XML
56 lines
2.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!--
|
||
|
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
|
||
|
|
||
|
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/>.
|
||
|
-->
|
||
|
<odoo>
|
||
|
<data>
|
||
|
|
||
|
<!-- Forms -->
|
||
|
<record id="membership_products_view_form_inherit_golem_family_membership"
|
||
|
model="ir.ui.view">
|
||
|
<field name="name">Membership Product Form adaptations</field>
|
||
|
<field name="model">product.template</field>
|
||
|
<field name="inherit_id" ref="membership.membership_products_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="default_code" position="before">
|
||
|
<field name="family_membership" />
|
||
|
</field>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<!-- Searches -->
|
||
|
<record id="membership_product_search_form_view_inherit_golem_family_membership"
|
||
|
model="ir.ui.view">
|
||
|
<field name="name">Membership Product Search adaptations</field>
|
||
|
<field name="model">product.template</field>
|
||
|
<field name="inherit_id" ref="membership.membership_product_search_form_view" />
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="name" position="after">
|
||
|
<field name="membership_season_id" />
|
||
|
</field>
|
||
|
<xpath expr="//group/filter[1]" position="after">
|
||
|
<separator />
|
||
|
<filter name="family_membership_0" string="Classic"
|
||
|
domain="[('family_membership', '=', False)]" />
|
||
|
<filter name="family_membership_1" string="Family"
|
||
|
domain="[('family_membership', '=', True)]" />
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
</data>
|
||
|
</odoo>
|