diff --git a/views/res_partner.xml b/views/res_partner.xml index 1e87b5b4e7bd040cabdd5b96b771fdbe6f06cef6..fbc0fcda47b438c20bd3a6c89c80243a01938451 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -12,27 +12,31 @@ <field name="priority" eval="1"/> <field name="arch" type="xml"> <field name="prescriber_canal_id" position="replace"/> - <xpath expr='//notebook' position="inside"> - <page name="adhesion_processus" string="Processus Adhesion" autofocus="autofocus"> - <group> + <page name='contacts' position="before"> + <page name="adhesion_processus1" string="Processus d'Adhésion" attrs="{'invisible': [('project_status','=','6_suivi')]}"> + <group col="3"> <group string="Général"> <field name="purcent_realisation"/> <field name="date_realisation"/> <field name="prescriber_canal_id" widget="res_partner_many2one" options="{'no_create': True}"/> </group> - </group> - <group col="5"> + <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" attrs="{'invisible': [('project_status','in',('6_suivi'))]}"> <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"/> + <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"/> + <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"/> @@ -41,16 +45,43 @@ <field name="date_transmission_cg"/> </group> </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="purcent_realisation"/> + <field name="date_realisation"/> + <field name="prescriber_canal_id" widget="res_partner_many2one" options="{'no_create': True}"/> + </group> <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" attrs="{'invisible': [('project_status','in',('6_suivi'))]}"> + <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> </group> </page> - </xpath> + </xpath> </field> </record> </data>