golem/golem_membership/views/golem_member_view.xml

79 lines
3.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!--
2017-06-14 09:06:47 +02:00
Copyright 2017 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/>.
-->
2017-04-29 09:16:41 +02:00
<odoo>
<data>
<!-- Forms -->
2017-06-14 09:06:47 +02:00
<record model="ir.ui.view" id="golem_member_form_inherit_golem_membership">
<field name="name">GOLEM Member form adaptations</field>
<field name="model">golem.member</field>
2017-06-14 09:06:47 +02:00
<field name="inherit_id" ref="golem_member.golem_member_form" />
<field name="arch" type="xml">
2016-07-11 08:47:19 +02:00
<page name="other_page" position="before">
<page string="Membership">
<group>
<group>
<field name="free_member"/>
<label for="membership_state"/>
<div>
<field name="partner_id" invisible="True" required="False" />
<field name="membership_state"/>
2017-06-14 09:06:47 +02:00
<button name="%(golem_membership_invoice_action)d"
type="action" string="Buy Membership"
attrs="{'invisible':[('free_member','=',True)]}"
context="{'default_partner_id': partner_id}"
class="oe_link"/>
</div>
</group>
<group>
<field name="membership_start"
attrs="{'invisible':[('membership_start','=',False)]}"/>
<field name="membership_stop"
attrs="{'invisible':[('membership_stop','=',False)]}"/>
<field name="membership_cancel"
attrs="{'invisible':[('membership_cancel','=',False)]}"/>
</group>
</group>
<field name="member_lines" nolabel="1" colspan="4" readonly="1">
<tree string="Memberships">
<field name="date"/>
<field name="membership_id"/>
<field name="member_price"/>
<field name="account_invoice_id"/>
<field name="state"/>
</tree>
<form string="Memberships">
2017-06-14 09:06:47 +02:00
<group>
<field name="date"/>
<field name="member_price"/>
<field name="membership_id"/>
<field name="account_invoice_id"
context="{'form_view_ref': 'account.invoice_form'}"/>
<field name="state" colspan="4"/>
</group>
</form>
</field>
</page>
2016-07-11 08:47:19 +02:00
</page>
</field>
</record>
</data>
2017-04-29 09:16:41 +02:00
</odoo>