You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
227 lines
11 KiB
227 lines
11 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2019 Coop IT Easy
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
<odoo>
|
|
<data>
|
|
<record id="view_partner_form_easy_my_coop" model="ir.ui.view">
|
|
<field name="name">res.partner.form.easy_my_coop</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<sheet position="before">
|
|
<header>
|
|
<button string="Create Subscription"
|
|
name="%(action_view_create_subscription)d"
|
|
type="action"
|
|
context="{'default_active_id': active_id}"
|
|
groups="easy_my_coop.group_easy_my_coop_user"/>
|
|
<button id="action_view_update_partner_info"
|
|
string="Update info"
|
|
name="%(action_view_update_partner_info)d"
|
|
type="action"
|
|
context="{'default_active_id': active_id}"
|
|
groups="easy_my_coop.group_easy_my_coop_user"/>
|
|
</header>
|
|
</sheet>
|
|
|
|
<xpath expr="/form/sheet/group" position='before'>
|
|
<group>
|
|
<group>
|
|
<field name="member" invisible="1"/>
|
|
<field name="representative"
|
|
attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
|
|
<field name="cooperator_register_number"
|
|
readonly="True"
|
|
attrs="{'invisible':[('member','=',False)]}"/>
|
|
<field name="company_register_number"
|
|
readonly="True"
|
|
attrs="{'invisible':[('is_company','=',False)]}"/>
|
|
<field name="coop_candidate"
|
|
groups="easy_my_coop.group_easy_my_coop_user"/>
|
|
<field name="cooperator" invisible="True"
|
|
groups="easy_my_coop.group_easy_my_coop_manager"/>
|
|
<field name="member"
|
|
groups="easy_my_coop.group_easy_my_coop_manager"/>
|
|
<field name="cooperator_type"
|
|
attrs="{'invisible':[('member','=',False)]}"/>
|
|
<field name="effective_date"
|
|
attrs="{'invisible':[('member','=',False)]}"/>
|
|
</group>
|
|
<group>
|
|
<field name="gender"
|
|
attrs="{'invisible':[('is_company','=',True)]}"/>
|
|
</group>
|
|
<group name="approvals">
|
|
<field name="internal_rules_approved"
|
|
attrs="{'invisible':[('member','=',False)]}"/>
|
|
<field name="data_policy_approved"
|
|
attrs="{'invisible':[('member','=',False)]}"/>
|
|
<field name="financial_risk_approved"
|
|
attrs="{'invisible':[('member','=',False)]}"/>
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
|
|
<page name='sales_purchases' position="after">
|
|
<field name="member" invisible="1"/>
|
|
<page string="Shares" name="share"
|
|
attrs="{'invisible':[('member','=',False)]}"
|
|
groups="easy_my_coop.group_easy_my_coop_user">
|
|
<group>
|
|
<field name="number_of_share"/>
|
|
<field name="total_value"/>
|
|
</group>
|
|
<field name="share_ids">
|
|
<tree create="false">
|
|
<field name="effective_date"/>
|
|
<field name="share_short_name"/>
|
|
<field name="share_number"
|
|
sum="Total of shares"/>
|
|
<field name="share_unit_price"/>
|
|
<field name="total_amount_line"
|
|
sum="Total subscribed amount"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Share subscriptions" name="share_subscription"
|
|
attrs="{'invisible':[('cooperator','=',False)]}"
|
|
groups="easy_my_coop.group_easy_my_coop_user">
|
|
<field name="subscription_request_ids">
|
|
<tree create="false" delete="false" edit="false">
|
|
<field name="share_short_name"/>
|
|
<field name="ordered_parts"
|
|
sum="Total of shares"/>
|
|
<field name="share_unit_price"/>
|
|
<field name="subscription_amount"
|
|
sum="Total subscribed amount"/>
|
|
<field name="type"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</page>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_partner_tree_easy_my_coop" model="ir.ui.view">
|
|
<field name="name">res.partner.tree.easy_my_coop</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="/tree/field[@name='display_name']"
|
|
position='after'>
|
|
<field name="cooperator_register_number"/>
|
|
<field name="cooperator_type"/>
|
|
<field name="effective_date"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_res_partner_filter_coop" model="ir.ui.view">
|
|
<field name="name">res.partner.select</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
|
<field name="arch" type="xml">
|
|
<filter name="supplier" position='after'>
|
|
<filter string="Cooperators" name="cooperators"
|
|
domain="[('member','=',1)]"
|
|
help="Cooperator Partners"/>
|
|
<filter string="Old Cooperators" name="old_cooperators"
|
|
domain="[('old_member','=',1)]"
|
|
help="Cooperator Partners"/>
|
|
<filter string="Cooperator Candidates"
|
|
name="cooperator_candidates"
|
|
domain="[('coop_candidate','=',1)]"
|
|
help="Cooperator Partners"/>
|
|
</filter>
|
|
<filter name="salesperson" position="before">
|
|
<filter string="Cooperator Type"
|
|
name="group_by_cooperator_type"
|
|
context="{'group_by': 'cooperator_type'}"/>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_partner_cooperator_form"
|
|
model="ir.actions.act_window">
|
|
<field name="name">Cooperators</field>
|
|
<field name="res_model">res.partner</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
<field name="domain">['|', ('cooperator','=',True), '|', ('member','=',True),('old_member','=', True)]</field>
|
|
<field name="context">{'default_cooperator':1, 'search_default_cooperators':1}</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to add a contact in your address book.
|
|
</p>
|
|
<p>
|
|
OpenERP helps you easily track all activities related to
|
|
a cooperator: discussions, history of business
|
|
opportunities,
|
|
documents, etc.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_partner_cooperator_candidate_form"
|
|
model="ir.actions.act_window">
|
|
<field name="name">Cooperator candidates</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">res.partner</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
<field name="domain">[('cooperator','=',True)]</field>
|
|
<field name="context">{'default_cooperator':1,
|
|
'search_default_cooperator_candidates':1}
|
|
</field>
|
|
<field name="filter" eval="True"/>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to add a contact in your address book.
|
|
</p>
|
|
<p>
|
|
OpenERP helps you easily track all activities related to
|
|
a cooperator: discussions, history of business
|
|
opportunities,
|
|
documents, etc.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_company_representative_form"
|
|
model="ir.actions.act_window">
|
|
<field name="name">Company representative</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">res.partner</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
<field name="domain">[('representative_of_member_company','=',True)]</field>
|
|
<field name="filter" eval="True"/>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to add a contact in your address book.
|
|
</p>
|
|
<p>
|
|
OpenERP helps you easily track all activities related to
|
|
a cooperator: discussions, history of business
|
|
opportunities,
|
|
documents, etc.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="remove_partner_follower" model="ir.ui.view">
|
|
<field name="name">res.partner.remove.follower.inherit</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id"
|
|
ref="mail.res_partner_view_form_inherit_mail"/>
|
|
<field name="arch" type="xml">
|
|
<field name="message_follower_ids" position="attributes">
|
|
<attribute name="invisible">True</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|