From 332eb027ccb58af28a85a22594ad10250f3bc4b8 Mon Sep 17 00:00:00 2001 From: Remi <remi@le-filament.com> Date: Thu, 10 Oct 2019 19:39:49 +0200 Subject: [PATCH] Change autofocus --- views/res_partner.xml | 49 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/views/res_partner.xml b/views/res_partner.xml index 1e87b5b..fbc0fcd 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> -- GitLab