diff --git a/views/crm_lead_view.xml b/views/crm_lead_view.xml index e4fd4592c0acf2f1363ac92a6a7f94bf381e0827..6c748127e3212f219e5453e6e831ce711f18a821 100644 --- a/views/crm_lead_view.xml +++ b/views/crm_lead_view.xml @@ -1,66 +1,78 @@ <odoo> <data> + <!-- KANBAN --> + <record id="crm_case_kanban_view_leads" model="ir.ui.view"> + <field name="name">mvh.crm.view.form</field> + <field name="model">crm.lead</field> + <field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/> + <field name="arch" type="xml"> + <xpath expr="//kanban" position="attributes"> + <attribute name="quick_create">false</attribute> + </xpath> + </field> + </record> + <!-- FORM --> <record id="mvh_crm_view_form" model="ir.ui.view"> - <field name="name">mvh.crm.view.form</field> - <field name="model">crm.lead</field> - <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> - <field name="arch" type="xml"> + <field name="name">mvh.crm.view.form</field> + <field name="model">crm.lead</field> + <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> + <field name="arch" type="xml"> - <field name="team_id" position="attributes"> - <attribute name="invisible">True</attribute> - </field> + <field name="team_id" position="attributes"> + <attribute name="invisible">True</attribute> + </field> - <xpath expr="//page[1]" position="attributes"> - <attribute name="string">Descriptif court</attribute> - </xpath> + <xpath expr="//page[1]" position="attributes"> + <attribute name="string">Descriptif court</attribute> + </xpath> - <xpath expr="//notebook/page[2]" position="before"> - <page string="Critères Go-NoGo"> - <group> - <group string="Infos générales"> - <field name="budget"/> - <field name="eco_responsable" widget="boolean_toggle"/> - <field name="renovation_neuf" widget="radio" options="{'horizontal': true}"/> - <field name="visite_payante" widget="boolean_toggle"/> - </group> - <group string="Statut du projet"> - <field name="envie_achat" widget="boolean_toggle"/> - <field name="presence_plan" widget="boolean_toggle"/> - <field name="presence_planning" widget="boolean_toggle"/> - <field name="presence_permis" widget="boolean_toggle"/> - <field name="presence_etude" widget="boolean_toggle"/> - </group> - </group> - </page> - <page string="Adresse du chantier"> - <div class="o_address_format"> - <field name="rue" placeholder="Rue..." class="o_address_street"/> - <field name="rue2" placeholder="Rue 2..." class="o_address_street"/> - <field name="code_postal" placeholder="Code postal" class="o_address_zip"/> - <field name="ville" placeholder="Ville" class="o_address_city"/> - </div> - </page> - <page string="Prescriptions techniques"> - <group> - <field name="prescription_technique"/> + <xpath expr="//notebook/page[2]" position="before"> + <page string="Critères Go-NoGo"> + <group> + <group string="Infos générales"> + <field name="budget"/> + <field name="eco_responsable" widget="boolean_toggle"/> + <field name="renovation_neuf" widget="radio" options="{'horizontal': true}"/> + <field name="visite_payante" widget="boolean_toggle"/> </group> - </page> - <page string="Partenaires du client"> - <group> - <field name="supplier_ids" widget="many2many_kanban" mode="kanban" options="{'no_create': True}"/> + <group string="Statut du projet"> + <field name="envie_achat" widget="boolean_toggle"/> + <field name="presence_plan" widget="boolean_toggle"/> + <field name="presence_planning" widget="boolean_toggle"/> + <field name="presence_permis" widget="boolean_toggle"/> + <field name="presence_etude" widget="boolean_toggle"/> </group> - </page> - <page string="Visite de chantier"> - <group> - <field name="description_technique"/> - <field name="reflexion_technique"/> - <field name="presentation_detaillee"/> - </group> - </page> - </xpath> - - </field> + </group> + </page> + <page string="Adresse du chantier"> + <div class="o_address_format"> + <field name="rue" placeholder="Rue..." class="o_address_street"/> + <field name="rue2" placeholder="Rue 2..." class="o_address_street"/> + <field name="code_postal" placeholder="Code postal" class="o_address_zip"/> + <field name="ville" placeholder="Ville" class="o_address_city"/> + </div> + </page> + <page string="Prescriptions techniques"> + <group> + <field name="prescription_technique"/> + </group> + </page> + <page string="Partenaires du client"> + <group> + <field name="supplier_ids" widget="many2many_kanban" mode="kanban" options="{'no_create': True}"/> + </group> + </page> + <page string="Visite de chantier"> + <group> + <field name="description_technique"/> + <field name="reflexion_technique"/> + <field name="presentation_detaillee"/> + </group> + </page> + </xpath> + + </field> </record> </data>