2017-05-01 19:17:53 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2018-07-18 11:18:28 +02:00
|
|
|
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
|
2017-05-01 19:17:53 +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/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<odoo>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Forms -->
|
|
|
|
<record model="ir.ui.view" id="res_partner_form_inherit_golem_member">
|
|
|
|
<field name="name">Add information on linked member or member creation into main form</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="arch" type="xml">
|
2017-06-04 18:03:42 +02:00
|
|
|
<div name="button_box" position="before">
|
|
|
|
<div colspan="2"
|
|
|
|
style="background-color: #ccc; color: #fff; font-size: 150%; font-weight: bold; padding: 0.5%; text-align: center; margin-bottom: 1%;">Contact form</div>
|
|
|
|
</div>
|
2017-05-01 19:17:53 +02:00
|
|
|
<h1 position="after">
|
2018-07-18 11:18:28 +02:00
|
|
|
<field name="is_member" invisible="1" />
|
2017-05-01 19:17:53 +02:00
|
|
|
<label for="member_id"
|
|
|
|
attrs="{'invisible': ['|', ('is_company', '=', True),
|
2018-07-18 11:18:28 +02:00
|
|
|
('is_member', '=', False)]}" />
|
2017-06-20 16:38:24 +02:00
|
|
|
<field name="member_id" invisible="1" />
|
|
|
|
<button name="view_member" string="Go to member form" type="object"
|
|
|
|
class="oe_link"
|
2017-05-01 19:17:53 +02:00
|
|
|
attrs="{'invisible': ['|', ('is_company', '=', True),
|
2018-07-18 11:18:28 +02:00
|
|
|
('is_member', '=', False)]}" />
|
2017-05-01 19:17:53 +02:00
|
|
|
<button type="object" name="create_golem_member"
|
|
|
|
string="Create a GOLEM member from this contact"
|
|
|
|
attrs="{'invisible': ['|', ('is_company', '=', True),
|
2018-07-18 11:18:28 +02:00
|
|
|
('is_member', '!=', False)]}" />
|
2017-05-01 19:17:53 +02:00
|
|
|
</h1>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-06-04 19:03:34 +02:00
|
|
|
<!-- Kanban -->
|
|
|
|
<record model="ir.ui.view" id="res_partner_kanban_inherit_golem_member">
|
|
|
|
<field name="name">Partner Kanban adaptations</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="type" position="after">
|
|
|
|
<field name="is_member" />
|
|
|
|
</field>
|
|
|
|
<xpath expr="//div[@class='oe_kanban_global_click o_res_partner_kanban']"
|
|
|
|
position="inside">
|
|
|
|
<hr style="clear: both; background-color: #ecffe2; height: 10%; margin: 2% 0 0 0;"
|
|
|
|
title="Is member" t-if="!!record.is_member.raw_value" />
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-05-01 19:17:53 +02:00
|
|
|
<!-- Trees -->
|
|
|
|
<record model="ir.ui.view" id="res_partner_tree_inherit_golem_member">
|
|
|
|
<field name="name">Add member number to tree</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_tree" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="display_name" position="before">
|
|
|
|
<field name="member_number" />
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Searches -->
|
|
|
|
<record model="ir.ui.view" id="res_partner_search_inherit_golem_member">
|
|
|
|
<field name="name">Partner GOLEM Member Number search</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="name" position="after">
|
|
|
|
<field name="member_number" />
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</odoo>
|