Newer
Older
<?xml version="1.0" ?>
<!-- Copyright 2020 Le Filament, Confédération Générale des Scop (<https://www.les-scop.coop>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data>
<!-- Héritage des views partner pour y inclure les infos incub -->
<!--
Inherited
-->
<!-- Partner FORM view -->
<record id="view_partner_cooperative_incub_form" model="ir.ui.view">
<field name="name">partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="cgscop_partner.scop_contact_view_form" />
<field name="priority" eval="1" />
<field name="arch" type="xml">
<!--
Modification de la vue
-->
expr="//field[@name='is_incubated']"
position="attributes"
>
<attribute name="readonly">True</attribute>
</xpath>
expr="//field[@name='incubator_id']"
position="attributes"
>
<attribute name="invisible">True</attribute>
</xpath>
</field>
</record>
<!--
New Views
-->
<!-- Partner FORM view -->
<record id="view_partner_incub_form" model="ir.ui.view">
<field name="name">partner.incub.form</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<form>
<header>
<button
string="Création non coopérative"
type="object"
name="incub_non_coop"
class="oe_read_only"
attrs="{'invisible':['|','|',('incub_status','in',('1_prospection','2_pre-incubation','9_abandonne')),('incub_out_mode','!=',('2_non_coop')),('incub_out_done','=',True)]}"
/>
<button
class="oe_read_only"
attrs="{'invisible':['|','|',('incub_status','in',('1_prospection','2_pre-incubation','9_abandonne')),('incub_out_mode','not in',('3_coop_non_adh', '4_coop_adh')),('incub_out_done','=',True)]}"
/>
<field
name="incub_status"
widget="statusbar"
clickable="True"
statusbar_visible="1_prospection,2_pre-incubation,3_incubation,4_sortie_incub,9_abandonne"
attrs="{'invisible':[('is_incubated','=', False)]}"
/>
</header>
<sheet>
<field name="active" invisible="1" />
<field name="is_cooperative" invisible="1" />
<field name="write_date" invisible="1" />
<field name="project_status" invisible="1" />
<div class="oe_button_box" name="button_box" />
<widget
name="web_ribbon"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<field
name="image_1920"
widget="image"
class="oe_avatar"
options="{'preview_image': 'image_128'}"
/>
<div class="oe_title oe_title_cgscop">
<h1>
<field
name="name"
default_focus="1"
required="1"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
</h1>
</div>
<group col="3" string="Informations Générales">
<!-- Todo : A vérieir les statuts-->
<group string="Contact">
<field name="sigle" />
<label for='street' string="Adresse du siège social" />
<div class="o_address_format">
<field
name="street"
placeholder="Rue..."
class="o_address_street"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')], 'required':[('write_date', '=', False), ('project_status', '=', '4_suivi')]}"
/>
<field
name="street2"
placeholder="Rue 2..."
class="o_address_street"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
/>
<field
name="street3"
placeholder="Rue 3..."
class="o_address_street"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
/>
<field
name="zip_id"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="CP / Ville autocomplétion..."
class="oe_edit_only"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
/>
<field
name="zip"
placeholder="CP..."
class="o_address_city"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')], 'required':[('write_date', '=', False), ('project_status', '=', '4_suivi')]}"
/>
<field name="zip_departement" invisible="1" />
<field
name="city"
placeholder="Ville..."
class="o_address_city"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')], 'required':[('write_date', '=', False), ('project_status', '=', '4_suivi')]}"
modifiers="{'readonly':[['project_status', '=', '4_suivi']], 'required':[('write_date', '=', False), ('project_status', '=', '4_suivi')]}"
/>
<field name="city_id" invisible="1" />
<field
name="cedex"
placeholder="Cedex"
class="o_address_city"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
modifiers="{'readonly':[['project_status', '=', '4_suivi']]}"
/>
<field
name="state_id"
class="o_address_zip"
placeholder="Région"
options='{"no_open": True, "no_create": True}'
context="{'country_id': country_id, 'zip': zip}"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
modifiers="{'readonly':[['project_status', '=', '4_suivi']]}"
/>
<field
name="country_id"
placeholder="Pays"
class="o_address_country"
options='{"no_open": True, "no_create": True}'
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '4_suivi')]}"
modifiers="{'readonly':[['project_status', '=', '4_suivi']]}"
</div>
<field
name="zip_departement"
string="N° de département"
/>
<field name="region" />
<field
name="phone"
widget="phone"
string="Téléphone 1"
attrs="{'required':[('write_date', '=', False), ('project_status', '=', '4_suivi')]}"
/>
<field
name="mobile"
widget="phone"
string="Téléphone 2"
attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"
/>
<field name="email" widget="email" string="E-mail" />
<field name="website" widget="url" />
</group>
<Group col="1">
<group string="Suivi UR">
<field
name="ur_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('id','=', False)], 'readonly': True}"
/>
<field
name="incub_delegate_id"
options="{'no_open': True, 'no_create': True}"
domain="[('active', '=', True),('ur_id', '=', ur_id)]"
/>
</group>
</Group>
<group
col="1"
string="Forme définitive"
attrs="{'invisible': [ ('incub_status','in',('1_prospection'))]}"
>
<group>
<field
name="incub_out_done"
groups="cgscop_partner.group_cg_administrator"
/>
<field
name="incub_out_mode"
attrs="{'readonly': [('incub_out_done', '=', True)]}"
/>
</group>
<!-- Champs partenaires -->
<group
attrs="{'invisible': [('incub_out_mode','=','1_non_def')]}"
>
<field
name="partner_company_type_id"
options="{'no_open': True, 'no_create': True}"
placeholder="Statut Juridique"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="cooperative_form_id"
options="{'no_open': True, 'no_create': True}"
placeholder="Forme Coopérative"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh','4_coop_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="creation_origin_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh','4_coop_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="date_1st_sign"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="registration_date"
attrs="{'invisible' : [('incub_out_mode','not in', ('2_non_coop','3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="social_object"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh','4_coop_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="naf_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<label
for='siret'
string="SIRET"
class="oe_edit_only"
attrs="{ 'invisible' : [('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))]}"
/>
<div>
<field
name="siret"
class="oe_edit_only"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
</div>
<label
for='formatted_siret'
string="SIRET"
class="oe_read_only"
attrs="{ 'invisible' : [('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))]}"
/>
<div>
<field
name="formatted_siret"
class="oe_read_only"
attrs="{ 'invisible' : [('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
</div>
<field
name="siren"
readonly="1"
attrs="{ 'invisible' : [('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))]}"
/>
<field
name="capital"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh'))], 'invisible':[('incub_out_mode','not in', ('2_non_coop','3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="first_closeout"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
<field
name="closeout_month"
attrs="{'required': [ ('incub_out_mode','in',('3_coop_non_adh'))], 'invisible':[('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))],'readonly': [('incub_out_done', '=', True)]}"
/>
</group>
<group
attrs="{'invisible' : [('incub_out_mode','not in', ('3_coop_non_adh','4_coop_adh'))]}"
>
<field
name="incub_out_cae_name"
attrs="{'invisible' : [('incub_out_is_cae','=',False)]}"
/>
</group>
</group>
<notebook colspan="4">
<page
name="scop_incub_process"
string="Processus d'incubation"
>
<group col="3">
<group string="Projet">
<field name="is_incubated" readonly="1" />
<field
name="incubator_id"
options="{'no_open': True,'no_create': True}"
/>
<field
name="incub_delegate_id"
options="{'no_open': True,'no_create': True}"
/>
<field
name="incub_prescription_id"
options="{'no_open': True, 'no_create': True}"
/>
<field
name="incub_typologie_porteur_id"
options="{'no_open': True, 'no_create': True}"
/>
<field name="incub_nb_assos" />
<field name="incub_date_prospection" />
<field name="incub_date_candidature" />
<field
name="incub_thematique_ids"
widget="many2many_tags"
/>
<field name="incub_projet_description" />
<field
name="incub_sensibilite_coop"
widget="priority"
/>
<field
name="incub_percent_realisation"
widget="priority"
/>
<field name="incub_fiche_entree" />
<field name="incub_convention" />
</group>
<group
col="1"
attrs="{'invisible' : [('incub_status','in',('1_prospection'))]}"
>
<group string="Pré-incubation">
<field name="incub_preincub_bypass" />
<field
name="incub_preincub_deb"
attrs="{'required': [('incub_preincub_bypass', '=', False),('incub_status','not in',('1_prospection'))] }"
/>
<field
name="incub_preincub_fin"
attrs="{'required': [('incub_preincub_bypass', '=', False), ('incub_status','not in',('1_prospection','2_pre-incubation'))] }"
/>
<field
name="incub_parcours_preincub"
options="{'no_open': True, 'no_create': True}"
/>
<field
name="incub_statut_prefig"
options="{'no_open': True, 'no_create': True}"
/>
<field name="incub_prefig_date" />
</group>
<group>
<field
name="incub_preincub_mt_exp"
string="Montant des expertises"
readonly="1"
widget="monetary"
/>
</group>
</group>
<group col="1">
<group
col="1"
attrs="{'invisible' : [('incub_status','in',('1_prospection','2_pre-incubation'))]}"
>
<group string="Incubation">
<field name="incub_incubation_bypass" />
<field
name="incub_incubation_deb"
attrs="{'required': [('incub_incubation_bypass', '=', False), ('incub_status','not in',('1_prospection','2_pre-incubation'))] }"
/>
<field
name="incub_incubation_fin"
attrs="{'required': [('incub_incubation_bypass', '=', False), ('incub_status','not in',('1_prospection','2_pre-incubation','3_incubation'))] }"
/>
<field name="incub_inter_bilan_date" />
</group>
<group>
<field
name="incub_incubation_mt_exp"
string="Montant des expertises"
readonly="1"
widget="monetary"
/>
</group>
</group>
<group
string="Sortie du processus"
attrs="{'invisible' : [('incub_status', 'in', ('1_prospection', '2_pre-incubation', '3_incubation'))]}"
>
<field
name="incub_motif_abandon_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible' : [('incub_status','not in',('9_abandonne'))]}"
/>
<field name="incub_sortie_notes" />
<field name="incub_fiche_sortie" />
</group>
</group>
</group>
<group>
<field
name="incub_expertise_ids"
string="Expertises du projet"
>
<tree>
<field name="incub_phase" />
<field
name="expertise_id"
options="{'no_create_edit': True, 'no_open': True}"
domain="[('active', '=', True)]"
/>
<field
name="supplier_id"
options="{'no_create_edit': True, 'no_open': True}"
domain="[('active', '=', True)]"
/>
<field name="mission_deb" />
<field name="mission_fin" />
<field name="montant" widget="monetary" />
<field name="bdc" />
<field name="devis" />
<field name="livrable" />
<field name="facture" />
</tree>
<form>
<sheet>
<group col="2">
<group>
<field name="incub_phase" />
<field
name="expertise_id"
options="{'no_create_edit': True, 'no_open': True}"
domain="[('active', '=', True)]"
/>
<field
name="supplier_id"
options="{'no_create_edit': True, 'no_open': True}"
domain="[('active', '=', True)]"
/>
<field
name="montant"
widget="monetary"
/>
</group>
<group>
<field name="mission_deb" />
<field name="mission_fin" />
<field name="bdc" />
<field name="devis" />
<field name="livrable" />
<field name="facture" />
</group>
</group>
<group>
<field name="commentaire" />
</group>
</sheet>
</form>
</field>
</group>
<group>
<field
name="incub_financement_ids"
string="Financement du projet"
>
<tree editable="bottom">
<field
name="financement_id"
options="{'no_create_edit': True, 'no_open': True}"
domain="[('active', '=', True)]"
/>
<field
name="montant_dmd"
widget="monetary"
sum="Total demandé"
/>
<field
name="montant_recu"
widget="monetary"
sum="Total recu"
/>
</tree>
</field>
</group>
</page>
<page name="incub_contacts" string="Contacts">
<field name="lang" invisible="True" />
<field name="image_128" invisible="True" />
<field name="user_id" invisible="True" />
<field name="ur_id" invisible="True" />
<field
name="other_child_ids"
context="{
'default_parent_id': active_id, 'default_is_company': False, 'default_company_type': 'person',
'default_street': street, 'default_street2': street2, 'default_city': city, 'default_cedex': cedex,
'default_state_id': state_id, 'default_zip': zip, 'default_zip_id': zip_id, 'default_city_id': city_id,
'default_country_id': country_id, 'default_lang': lang, 'default_user_id': user_id,
'default_ur_id': ur_id, 'default_type': 'contact', 'is_incubated': False }"
<kanban>
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
<field name="id" />
<field name="color" />
<field name="name" />
<field name="title" />
<field name="type" />
<field name="email" />
<field name="parent_id" />
<field name="is_company" />
<field name="mandate_id" />
<field name="function" />
<field name="phone" />
<field name="street" />
<field name="street2" />
<field name="street3" />
<field name="zip_id" />
<field name="zip" />
<field name="city" />
<field name="city_id" />
<field name="cedex" />
<field name="country_id" />
<field name="mobile" />
<field name="state_id" />
<field name="image_128" />
<field name="lang" />
<field name="comment" />
<field name="display_name" />
<field name="ur_id" />
<field name="category_id" />
<templates>
<t t-name="kanban-box">
<t
t-set="color"
t-value="kanban_color(record.color.raw_value)"
/>
<div
t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"
>
<a
t-if="!read_only_mode"
name="partner_archive"
type="object"
title="Fermer"
class="fa fa-times pull-right"
/>
<div class="o_kanban_image">
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<img
alt="Contact image"
t-if="record.image_128.raw_value"
t-att-src="kanban_image('res.partner', 'image_128', record.id.raw_value)"
/>
<t
t-if="!record.image_128.raw_value"
>
<img
alt="Delivery"
t-if="record.type.raw_value === 'delivery'"
t-att-src="_s + "/base/static/img/truck.png""
/>
<img
alt="Invoice"
t-if="record.type.raw_value === 'invoice'"
t-att-src="_s + "/base/static/img/money.png""
/>
<t
t-if="record.type.raw_value !== 'invoice' && record.type.raw_value !== 'delivery'"
>
<img
alt="Logo"
t-if="record.is_company.raw_value === true"
t-att-src="_s + "/base/static/img/company_image.png""
/>
<img
alt="Avatar"
t-if="record.is_company.raw_value === false"
t-att-src="_s + "/base/static/img/avatar_grey.png""
/>
</t>
</t>
</div>
<div class="oe_kanban_details">
<field name="name" />
<div
t-if="record.mandate_id.raw_value"
>
<field name="mandate_id" />
</div>
<div
t-if="record.function.raw_value"
>
<field name="function" />
</div>
<div
t-if="record.email.raw_value"
>
<field
name="email"
widget="email"
/>
</div>
<div
t-if="record.phone.raw_value"
>Téléphone: <field
name="phone"
widget="phone"
/>
</div>
<div
t-if="record.mobile.raw_value"
>Mobile: <field
name="mobile"
widget="phone"
/>
</div>
<div
t-if="record.category_id.raw_value"
>
<field
name="category_id"
widget="many2many_tags"
/>
</div>
</div>
</div>
</t>
</templates>
</kanban>
<form string="Contact">
<sheet>
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
<field name="parent_id" invisible="1" />
<field
name="type"
required="1"
readonly="1"
widget="radio"
options="{'horizontal': true}"
/>
<field
name="company_type"
widget="radio"
class="oe_edit_only"
options="{'horizontal': true}"
/>
<div invisible="1">
<field name="is_company" />
<field name="street" />
<field name="street2" />
<field name="street3" />
<field name="zip_id" />
<field name="zip" />
<field name="city" />
<field name="cedex" />
<field name="state_id" />
<field name="country_id" />
<field name="type" />
<field name="category_id" />
<field name="lang" />
<field name="user_id" />
<field name="image_128" />
</div>
<hr />
<group>
<group>
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
<field
name="title"
placeholder="Madame"
options='{"no_open": True, "no_create": True}'
/>
<field
name="firstname"
string="Prénom"
required="1"
/>
<field
name="lastname"
string="Nom de famille"
required="1"
/>
<field name="email" />
<field
name="phone"
widget="phone"
/>
<field
name="mobile"
widget="phone"
/>
<field
name="category_id"
widget="many2many_tags"
options="{'color_field': 'color', 'no_create': True}"
/>
<field
name="comment"
placeholder="Commentaires..."
/>
</group>
<group>
<field
name="function"
placeholder="Responsable des ventes"
/>
<field name="employee" />
<field name="associate" />
<field name="birthyear" />
<field
name="contact_origin_id"
options="{'no_open': True, 'no_create': True}"
/>
<field
name="contact_legality"
readonly="1"
/>
</group>
</group>
<field name="subscription_ids">
<tree
string="Subscriptions"
editable="bottom"
>
<field name="newsletter_id" />
<field name="consent" />
</tree>
</field>
</sheet>
</form>
</field>
</page>
<page string="Géolocalisation" name="geo_location">
<group colspan="2" col="2">
<separator string="Géolocalisation" colspan="2"/>
<button
string="Geolocate"
name="geo_localize"
colspan="2"
icon="fa-check"
type="object"/>
<div>
<span class="oe_inline"> ( Le </span>
<field name="date_localization" nolabel="1" class="oe_inline"/>
<span> : Lat : </span>
<field name="partner_latitude" nolabel="1" class="oe_inline"/>
<span> ; Long: </span>
<field name="partner_longitude" nolabel="1" class="oe_inline"/>
<span>) </span>
</div>
</group>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field
name="message_follower_ids"
options="{'post_refresh':True}"
groups="base.group_user"
/>
<field name="activity_ids" />
<field name="message_ids" />
</div>
</form>
</field>
</record>
<!-- SEARCH view -->
<record id="partner_incub_view_search" model="ir.ui.view">
<field name="name">partner.incub.view.search</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<search string="Recherche incubés">
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
<field
name="name"
filter_domain="['|', '|', ('display_name', 'ilike', self), ('ref', '=', self), ('email', 'ilike', self)]"
/>
<field
name="phone"
filter_domain="['|',('phone','ilike',self),('mobile','=',self)]"
/>
<field
name="incub_delegate_id"
string="Délégué"
filter_domain="[('incub_delegate_id', 'ilike', self)]"
/>
<field name="siret" filter_domain="[('siret','ilike',self)]" />
<field name="sigle" filter_domain="[('sigle','ilike',self)]" />
<filter
string="Mes incubés - Projets actifs"
name="my_incub"
domain="[('incub_delegate_id','=',uid),('incub_active','=',True)]"
/>
<filter
string="Mon UR - Projets actifs"
name="my_ur"
domain="[('current_user_ur_id', '=', 'ur_id'),('incub_active','=',True)]"
/>
<separator />
<filter
string="Toutes URs - Projet actifs"
name="inactive"
domain="[('incub_active','=',True)]"
/>
<filter
string="Mon UR - Projet archivés"
name="inactive"
domain="[('current_user_ur_id', '=', 'ur_id'),('incub_active','=',False)]"
/>
<filter
string="Toutes URs - Projet archivés"
name="inactive"
domain="[('incub_active','=',False)]"
/>
<separator />
<filter
string="Mes Activités"
name="activities_my"
domain="[('activity_ids.user_id', '=', uid)]"
/>
<separator />
<filter
string="Activités en retard"
name="activities_overdue"
domain="[('activity_ids.date_deadline', '<', context_today().strftime('%Y-%m-%d'))]"
help="Show all records which has next action date is before today"
/>
<filter
string="Activités du Jour"
name="activities_today"
domain="[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"
/>
<filter
string="Activités futures"
name="activities_upcoming_all"
domain="[('activity_ids.date_deadline', '>', context_today().strftime('%Y-%m-%d'))]"
/>
<separator />
<group expand="0" name="group_by" string="Group By">
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
<filter
name="incub_status"
string="Statut"
domain="[]"
context="{'group_by' : 'incub_status'}"
/>
<filter
name="naf_id"
string="Code NAF"
domain="[]"
context="{'group_by' : 'naf_id'}"
/>
<filter
name="group_company"
string="Structure"
context="{'group_by': 'parent_id'}"
/>
<filter
name="group_city"
string="Ville"
context="{'group_by': 'city'}"
/>
<filter
name="group_departement"
string="Département"
context="{'group_by': 'zip_departement'}"
/>
<filter
name="group_country"
string="Pays"
context="{'group_by': 'country_id'}"
/>
</group>
</search>
</field>
</record>
<!-- LIST view -->
<record id="view_partner_incub_tree" model="ir.ui.view">
<field name="name">incub.tree</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<tree string="Prospects">
<field name="display_name" string="Dénomination Sociale" />
<field name="cooperative_form_id" />
<field name="incub_status" />
<field name="zip" />
<field name="city" />
<field name="incub_delegate_id" />
<field name="ur_id" />
</tree>
</field>
</record>
<!-- KANBAN view -->
<record id="view_partner_incub_kanban" model="ir.ui.view">
<field name="name">incub.kanban</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<kanban default_group_by="incub_status" class="o_res_partner_kanban">
<field name="id" />
<field name="color" />
<field name="display_name" />
<field name="title" />
<field name="email" />
<field name="parent_id" />
<field name="is_company" />
<field name="function" />
<field name="phone" />
<field name="street" />
<field name="street2" />
<field name="zip" />
<field name="city" />
<field name="country_id" />
<field name="mobile" />
<field name="state_id" />
<field name="category_id" />
<field name="image_128" />
<field name="type" />
<field name="incub_status" />
<field name="incub_thematique_ids" />
<t t-name="kanban-box">
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<div
class="oe_kanban_global_click o_kanban_record_has_image_fill o_res_partner_kanban"
>
<t t-if="!record.is_company.raw_value">
<t
t-if="record.type.raw_value === 'delivery'"
t-set="placeholder"
t-value="'/base/static/img/truck.png'"
/>
<t
t-elif="record.type.raw_value === 'invoice'"
t-set="placeholder"
t-value="'/base/static/img/money.png'"
/>
<t
t-else=""
t-set="placeholder"
t-value="'/base/static/img/avatar_grey.png'"
/>
<div
class="o_kanban_image_fill_left d-none d-md-block"
t-attf-style="background-image:url('#{kanban_image('res.partner', 'image_128', record.id.raw_value, placeholder)}')"
>
<img
class="o_kanban_image_inner_pic"
t-if="record.parent_id.raw_value"
t-att-alt="record.parent_id.value"
t-att-src="kanban_image('res.partner', 'image_128', record.parent_id.raw_value)"
/>
</div>