Newer
Older
<?xml version="1.0"?>
<!-- Copyright 2019 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data>
<record id="view_partner_cooperative_adhesion_kanban" model="ir.ui.view">
<field name="name">cooperative.kanban.adhesion</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
<field name="arch" type="xml">
<xpath expr="//kanban/field[@name='type']" position="after">
<field name="percent_realisation"/>
</xpath>
<xpath expr="//div[hasclass('oe_kanban_partner_links')]" position="after">
<field name="percent_realisation" widget="priority"/>
</xpath>
</field>
</record>
<record id="view_partner_cooperative_adhesion_form" model="ir.ui.view">
<field name="name">cooperative.adhesion.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="cgscop_partner.view_partner_cooperative_form"/>
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<page name='contacts' position="before">
<page name="adhesion_processus1" string="Processus d'Adhésion" attrs="{'invisible': [('project_status','=','6_suivi')]}">
<group col="3">
<field name="date_realisation"/>
<field name="prescriber_canal_id" widget="res_partner_many2one" options="{'no_create': True}"/>
<group string="Dossier EU">
<field name="file_fse_open" widget="boolean_toggle"/>
<field name="date_return_file"/>
<field name="fes_full" widget="boolean_toggle"/>
<field name="recipient_file_fse"/>
</group>
<group string="Phase d'information">
<field name="date_first_rdv"/>
<field name="date_send_guide"/>
</group>
<group string="Phase de pré-diagnostic" attrs="{'invisible':[('project_status','in',('1_information'))]}">
<field name="feasibility_study" widget="boolean_toggle"/>
<field name="amount_feasibility_study" widget="monetary"/>
</group>
<group string="Phase d'accompagnement" attrs="{'invisible':[('project_status','in',('1_information','2_pre-diagnostic'))]}">
<field name="date_convention"/>
</group>
<group string="Phase d'adhésion" attrs="{'invisible':[('project_status','in',('1_information','2_pre-diagnostic','3_accompagnement'))]}">
<field name="file_full" widget="boolean_toggle"/>
</group>
<group string="Soumis CGScop" attrs="{'invisible':[('project_status','in',('1_information','2_pre-diagnostic','3_accompagnement','4_adhesion'))]}">
<field name="date_transmission_cg"/>
</group>
</group>
</page>
</page>
<xpath expr='//notebook' position="inside">
<page name="adhesion_processus2" string="Processus d'Adhésion" attrs="{'invisible': [('project_status','!=','6_suivi')]}">
<group col="3">
<group string="Général">
<field name="date_realisation"/>
<field name="prescriber_canal_id" widget="res_partner_many2one" options="{'no_create': True}"/>
<field name="creation_delegate_id" widget="res_partner_many2one"
attrs="{'required':[('project_status','in',('3_accompagnement','4_adhesion', '5_cg', '6_suivi'))]}" options="{'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<group string="Dossier EU">
<field name="file_fse_open" widget="boolean_toggle"/>
<field name="date_return_file"/>
<field name="fes_full" widget="boolean_toggle"/>
<field name="recipient_file_fse"/>
</group>
<group string="Phase d'information">
<field name="date_first_rdv"/>
<field name="date_send_guide"/>
</group>
<group string="Phase de pré-diagnostic" attrs="{'invisible':[('project_status','in',('1_information'))]}">
<field name="feasibility_study" widget="boolean_toggle"/>
<field name="amount_feasibility_study" widget="monetary"/>
</group>
<group string="Phase d'accompagnement" attrs="{'invisible':[('project_status','in',('1_information','2_pre-diagnostic'))]}">
<field name="date_convention"/>
<field name="amount_convention" widget="monetary"/>
</group>
<group string="Phase d'adhésion" attrs="{'invisible':[('project_status','in',('1_information','2_pre-diagnostic','3_accompagnement'))]}">
<field name="file_full" widget="boolean_toggle"/>
</group>
<group string="Soumis CGScop" attrs="{'invisible':[('project_status','in',('1_information','2_pre-diagnostic','3_accompagnement','4_adhesion'))]}">
<field name="date_transmission_cg"/>
</group>
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<record id="view_partner_prospect_adhesion_tree" model="ir.ui.view">
<field name="name">prospect.adhesion.tree</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="cgscop_partner.view_partner_prospect_tree"/>
<field name="arch" type="xml">
<field name="project_status" position="after">
<field name="percent_realisation" widget="priority"/>
</field>
</field>
</record>
<!-- Prescriber Canal -->
<record id="view_res_partner_prescriber_canal_tree" model="ir.ui.view">
<field name="name">res.partner.prescriber.canal.tree</field>
<field name="model">res.partner.prescriber.canal</field>
<field name="arch" type="xml">
<tree string="Canaux de Prescription">
<field name="name"/>
</tree>
</field>
</record>
<record id="action_view_res_partner_prescriber_canal_tree" model="ir.actions.act_window">
<field name="name">Canaux de Prescription</field>
<field name="res_model">res.partner.prescriber.canal</field>
<field name="view_mode">tree</field>
<field name="help">Affiche et gère les Canaux de Prescription</field>
</record>
<menuitem id="menu_res_partner_prescriber_canal"
parent="cgscop_partner.menu_scop"
action="action_view_res_partner_prescriber_canal_tree"