Skip to content
Extraits de code Groupes Projets
Valider 1409e985 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] fusion vues organismes, partenaires, contacts

parent 911c12bf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -32,11 +32,37 @@ ...@@ -32,11 +32,37 @@
</field> </field>
</record> </record>
<!--
Vue Partner View Form Inherited
-->
<record id="scop_contact_view_form" model="ir.ui.view"> <record id="scop_contact_view_form" model="ir.ui.view">
<field name="name">add scop fields in form view</field> <field name="name">res.partner.scop.view</field>
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/> <field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<!--
Vue Partenaire et contact
-->
<!-- Masque les champs affichés pour une coopérative -->
<xpath expr="//form/sheet/group" position="attributes">
<attribute name="attrs">{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath>
- <xpath expr="//field[@name='image']" position="attributes">
<attribute name="attrs">{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath>
<xpath expr="//div[@class='oe_title']" position="attributes">
<attribute name="attrs">{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath>
<xpath expr="//form/sheet/group" position="attributes">
<attribute name="attrs">{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath>
<xpath expr="//notebook" position="attributes">
<attribute name="attrs">{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath>
<!-- Affiche les champs de la vue partenaire -->
<field name="parent_id" position="before"> <field name="parent_id" position="before">
<label for="parent_id" string="Société" attrs="{'invisible': ['|', '&amp;', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> <label for="parent_id" string="Société" attrs="{'invisible': ['|', '&amp;', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/>
</field> </field>
...@@ -174,6 +200,544 @@ ...@@ -174,6 +200,544 @@
<xpath expr="//notebook/page[@name='sales_purchases']" position="attributes"> <xpath expr="//notebook/page[@name='sales_purchases']" position="attributes">
<attribute name="invisible">True</attribute> <attribute name="invisible">True</attribute>
</xpath> </xpath>
<!--
Vue Organismes
-->
<!-- Affiche le header organisme -->
<xpath expr='//form/sheet' position="before">
<header attrs="{'invisible': [('is_cooperative', '=', False)]}">
<button string="Nouvelle période" type="action" name="%(cgscop_partner.scop_period_wizard_create_action)d" class="oe_highlight" attrs="{'invisible': ['|', ('write_date', '=', False), ('project_status', '!=', '6_suivi')]}" groups="cgscop_partner.group_add_period"/>
<button string="Nouvelle période d'adhésion" type="action" name="%(cgscop_partner.scop_membership_period_wizard_create_action)d" class="oe_highlight" attrs="{'invisible': ['|', ('write_date', '=', False), ('project_status', '!=', '6_suivi')]}" groups="cgscop_partner.group_add_period"/>
<button string="Décés/Mise en sommeil" type="action" name="%(cgscop_partner.scop_deces_wizard_create_action)d" attrs="{'invisible': ['|', ('dissolution_reason_id', '!=', False), '|', ('write_date', '=', False), ('project_status', '!=', '6_suivi')]}" groups="cgscop_partner.group_add_period"/>
<button string="Radiation" type="action" name="%(cgscop_partner.scop_membership_out_wizard_create_action)d" attrs="{'invisible': ['|', ('write_date', '=', False), ('project_status', '!=', '6_suivi')]}" groups="cgscop_partner.group_add_period"/>
<button string="Envoyer Dossier CG" type="object" name="scop_send_to_cg" class="btn-primary" attrs="{'invisible': ['|', ('write_date', '=', False), ('project_status', '!=', '4_adhesion')]}"/>
<button string="Dossier créé CG" type="object" name="scop_valid_cg" class="btn-primary" attrs="{'invisible': ['|', ('write_date', '=', False), ('project_status', '!=', '5_cg')]}" groups="cgscop_partner.group_add_period"/>
<button string="Prospect Abandonne" type="object" name="scop_abandonne" attrs="{'invisible':[('project_status','in',('5_cg', '6_suivi', '7_abandonne'))]}"/>
<field name="project_status" widget="statusbar" clickable="True" statusbar_visible="1_information,2_pre-diagnostic,3_accompagnement,4_adhesion" attrs="{'invisible':[('project_status','in',('6_suivi'))]}"/>
</header>
</xpath>
<!-- Affiche les champs des organismes -->
<xpath expr='//form/sheet' position="inside">
<div name="contact" attrs="{'invisible': [('is_cooperative', '=', False)]}">
<div class="oe_button_box" name="button_box">
<h3>
<span class="o_field_header o_field_widget o_readonly_modifier" attrs="{'invisible':[('dissolution_reason_id','=', False)]}">Décédée le</span>
<field name="dissolution_date" readonly="1" attrs="{'invisible':[('dissolution_reason_id','=', False)]}"/>
</h3>
<h3>
<span class="o_field_header o_field_widget o_readonly_modifier" attrs="{'invisible':[('dissolution_reason_id','=', False)]}">Raison :</span>
<field options="{'no_open': True}" name="dissolution_reason_id" readonly="1" attrs="{'invisible':[('dissolution_reason_id','=', False)]}"/>
</h3>
</div>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium", "size": [90, 90]}'/>
<div class="oe_title oe_title_cgscop">
<field name="is_company" invisible="1"/>
<field name="lang" invisible="1"/>
<field name="commercial_partner_id" invisible="1"/>
<field name="parent_id" invisible="1"/>
<field name="is_cooperative" invisible="1"/>
<field name="write_date" invisible="1"/>
<field name="type" attrs="{'invisible': [('parent_id','=', False)]}" groups="base.group_no_one"/>
<h1>
<field name="name" default_focus="1" required="1" placeholder="Raison Sociale" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')]}"/>
</h1>
<div class="oe_bloc_cgscop">
<div class="o_row d-flex">
<h3>
<field class="o_field_header" name="cooperative_form_id" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('2_pre-diagnostic', '3_accompagnement','4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')]}" options="{'no_open': True, 'no_create': True}" placeholder="Forme Coopérative"/>
</h3>
<span> </span>
<h3>
<field options="{'no_open': True, 'no_create': True}" domain="[('is_coop', '=', True)]" name="partner_company_type_id" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')], 'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}" placeholder="Statut Juridique"/>
</h3>
</div>
<div class="o_row d-flex ">
<h3>
<field name="membership_status" readonly="True" class="o_field_header"/>
</h3>
<h3>
<field name="member_number" readonly="True" class="o_field_header"/>
</h3>
<h3>
<span name="cae" class="o_field_widget o_readonly_modifier o_field_header oe_read_only" attrs="{'invisible':[('cae','=',False)]}">CAE</span>
<label for='cae' string="CAE" class="oe_edit_only"/>
<field name="cae" class="oe_edit_only" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')]}" />
</h3>
<field name="supplier" invisible="True"/>
<field name="customer" invisible="True"/>
<field name="user_id" invisible="True"/>
</div>
</div>
</div>
<group col="3" string="Informations Générales">
<group string="Contact">
<field name="sigle" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<label for='street' string="Adresse Administrative"/>
<div class="o_address_format">
<field name="street" placeholder="Rue..." class="o_address_street" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')]}"/>
<field name="street2" placeholder="Rue 2..." class="o_address_street" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')]}"/>
<field name="street3" placeholder="Rue 3..." class="o_address_street" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_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', '=', '6_suivi')]}"/>
<field name="zip" placeholder="CP..." class="o_address_city" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')]}"/>
<field name="zip_departement" invisible="1"/>
<field name="city" placeholder="Ville..." class="o_address_city"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')]}" modifiers="{'readonly':[['project_status', '=', '6_suivi']], 'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')]}"/>
<field name="city_id" invisible="1"/>
<field name="cedex" placeholder="Cedex" class="o_address_city"
attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')]}" modifiers="{'readonly':[['project_status', '=', '6_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', '=', '6_suivi')]}" modifiers="{'readonly':[['project_status', '=', '6_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', '=', '6_suivi')]}" modifiers="{'readonly':[['project_status', '=', '6_suivi']]}"/>
</div>
<field name="phone" widget="phone" string="Téléphone 1" attrs="{'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_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" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<label for='facebook' class="oe_read_only" string="Réseaux sociaux" attrs="{'invisible':[('facebook','=',False),('linkedin','=',False),('twitter','=',False)]}"/>
<div >
<button string="" class="btn-cgscop oe_read_only" name="open_facebook" type="object" icon="fa-facebook" attrs="{'invisible':['|', ('facebook','=',False), ('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<button string="" class="btn-cgscop oe_read_only" name="open_linkedin" type="object" icon="fa-linkedin" attrs="{'invisible':['|', ('linkedin','=',False), ('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<button string="" class="btn-cgscop oe_read_only" name="open_twitter" type="object" icon="fa-twitter" attrs="{'invisible':['|', ('twitter','=',False), ('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
</div>
<label for='facebook' string="Facebook" class="oe_edit_only" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<div >
<field class="oe_edit_only" name="facebook" widget="url" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
</div>
<label class="oe_edit_only" for='linkedin' string="LinkedIn" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<div >
<field class="oe_edit_only" name="linkedin" widget="url" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
</div>
<label class="oe_edit_only" for='twitter' string="Twitter" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<div >
<field class="oe_edit_only" name="twitter" widget="url" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
</div>
</group>
<group string="Suivi UR">
<field name="ur_id" required="True" options="{'no_open': True, 'no_create': True}"/>
<field name="creation_delegate_id" widget="res_partner_many2one"
attrs="{'required':[('project_status','in',('3_accompagnement','4_adhesion', '5_cg'))], 'invisible':[('project_status', 'in', '6_suivi')]}" options="{'no_open': True, 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="followup_delegate_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}" domain="[('active', '=', True),('ur_id', '=', ur_id)]" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<field name="segment_1_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<field name="segment_2_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<field name="segment_3_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
<field name="segment_4_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
</group>
<group string="Informations Activité">
<field name="creation_origin_id" required="True" options="{'no_open': True, 'no_create': True}"/>
<field name="creation_suborigin_id" domain="[('parent_id', '=', creation_origin_id), ('child_ids', '=', False)]" options="{'no_open': True, 'no_create': True}"/>
<field name="date_1st_sign" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<field name="registration_date" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<field name="social_object" attrs="{'required':[('project_status','in',('2_pre-diagnostic', '3_accompagnement','4_adhesion', '5_cg', '6_suivi'))]}"/>
<field name="naf_id" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('4_adhesion', '5_cg'), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi'))], 'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}" options="{'no_open': True, 'no_create': True}"/>
<field name="certification_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<label for='siret' string="SIRET" class="oe_edit_only" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<div>
<field name="siret" class="oe_edit_only" attrs="{'readonly': [('write_date', '!=', False), ('project_status', '=', '6_suivi')], 'required':['|', ('project_status','in',('4_adhesion', '5_cg')), '&amp;', ('write_date', '=', False), ('project_status', '=', '6_suivi')], 'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
</div>
<label for='formatted_siret' string="SIRET" class="oe_read_only" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<div>
<field name="formatted_siret" class="oe_read_only" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
</div>
<field name="siren" readonly="1" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<field name="capital" attrs="{'required':[('project_status','in',('4_adhesion', '5_cg', '6_suivi'))], 'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}" widget="monetary"/>
<field name="first_closeout" attrs="{'required':[('project_status','in',('4_adhesion', '5_cg', '6_suivi'))], 'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<field name="closeout_month" attrs="{'required':[('project_status','in',('4_adhesion', '5_cg', '6_suivi'))], 'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
<field name="is_seed_scop" attrs="{'invisible': [('project_status', '=', '1_information')]}"/>
<field name="seed_end" attrs="{'invisible': [('is_seed_scop', '!=', True)], 'required':[('project_status','in',('4_adhesion', '5_cg', '6_suivi')),('is_seed_scop', '=', True)]}"/>
<field name="is_incubated" attrs="{'invisible': [('project_status', '=', '1_information')]}"/>
<field name="incubator_id" widget="res_partner_many2one" attrs="{'invisible': [('is_incubated', '!=', True)]}" options="{'no_create': True}"/>
<field name="staff_last" attrs="{'invisible': [('project_status', 'not in', ('6_suivi'))]}"/>
<field name="staff_last_date" attrs="{'invisible': [('project_status', 'not in', ('6_suivi'))]}"/>
</group>
</group>
<notebook colspan="4">
<page name="contacts" string="Contacts &amp; Addresses">
<label for="director_ids" string="Dirigeants"/>
<field name="director_ids" mode="kanban"
context="{'default_parent_id': active_id, '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_supplier': supplier, 'default_customer': customer, 'default_lang': lang, 'default_user_id': user_id, 'default_ur_id': ur_id, 'default_type': 'contact'}">
<kanban>
<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_small"/>
<field name="lang"/>
<field name="comment"/>
<field name="customer"/>
<field name="display_name"/>
<field name="supplier"/>
<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" class="fa fa-times pull-right"/>
<div class="o_kanban_image">
<img alt="" t-if="record.image_small.raw_value" t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)"/>
<t t-if="!record.image_small.raw_value">
<img alt="Avatar" t-att-src='_s + "/base/static/img/avatar.png"'/>
</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 Dirigeant">
<sheet>
<field name="parent_id" invisible="1"/>
<group col="2">
<group invisible="1">
<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"/>
</group>
<group>
<field name="title" placeholder="Madame"/>
<field name="firstname" string="Prénom" required="1"/>
<field name="lastname" string="Nom de famille" required="1"/>
<field name="mandate_id" options="{'no_open': True, 'no_create': True}" required="1"/>
<field name="function" placeholder="Responsable des ventes"/>
<field name="email"/>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="comment" placeholder="Commentaires..."/>
</group>
<group>
<field name="birthyear"/>
<field name="contact_origin_id" options="{'no_open': True, 'no_create': True}"/>
<field name="contact_legality" readonly="1"/>
<field name="segment_1_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="segment_2_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="segment_3_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="segment_4_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
</group>
</group>
<field name="subscription_ids">
<tree string="Subscriptions" editable="bottom">
<field name="newsletter_id"/>
<field name="consent"/>
</tree>
</field>
<field name="supplier" invisible="True"/>
<field name="customer" invisible="True"/>
<field name="lang" invisible="True"/>
<field name="image" invisible="True"/>
<field name="user_id" invisible="True"/>
<field name="ur_id" invisible="True"/>
</sheet>
</form>
</field>
<label for="other_child_ids" string="Autres Contacts / Adresses"/>
<field name="other_child_ids" mode="kanban"
context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_street3': street3, 'default_city': city, 'default_city_id': city_id, 'default_cedex': cedex, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_lang': lang, 'default_user_id': user_id, 'default_ur_id': ur_id}">
<kanban>
<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"/>
<field name="zip_id"/>
<field name="city"/>
<field name="city_id"/>
<field name="cedex"/>
<field name="country_id"/>
<field name="mobile"/>
<field name="state_id"/>
<field name="image_small"/>
<field name="lang"/>
<field name="comment"/>
<field name="customer"/>
<field name="display_name"/>
<field name="supplier"/>
<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" class="fa fa-times pull-right"/>
<div class="o_kanban_image">
<img alt="" t-if="record.image_small.raw_value" t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)"/>
<t t-if="!record.image_small.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' &amp;&amp; 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.png"'/>
</t>
</t>
</div>
<div class="oe_kanban_details">
<field name="name"/>
<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.type.raw_value != 'contact'">
<div>
<field name="zip"/>
<field name="city"/>
<field name="cedex"/>
</div>
<field t-if="record.state_id.raw_value" name="state_id"/>
<field name="country_id"/>
</div>
<div t-if="record.phone.raw_value">Phone: <field name="phone"/></div>
<div t-if="record.mobile.raw_value">Mobile: <field name="mobile"/></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 / Address">
<sheet>
<!-- parent_id and type fields needed in attrs in base_address_city module which overwrites
_fields_view_get() of partner. It would be better to put those fields there but the web client
dosen't support when a field is displayed several times in the same view.-->
<field name="type" required="1" widget="radio" options="{'horizontal': true}"/>
<field name="parent_id" invisible="1"/>
<hr/>
<group>
<group attrs="{'invisible': [('type', '=', 'contact')]}">
<label for="street" string="Address"/>
<div>
<div name="div_address" class="o_address_format">
<field name="street" placeholder="Rue..." class="o_address_street"/>
<field name="street2" placeholder="Rue 2..." class="o_address_street"/>
<field name="street3" placeholder="Rue 3..." class="o_address_street"/>
<field name="zip_id"
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="CP/Ville autocomplétion"
class="oe_edit_only"/>
<field name="zip" placeholder="ZIP" class="o_address_city"/>
<field name="city" placeholder="Ville" class="o_address_city"
attrs="{'readonly': [('type', '=', 'contact'), ('parent_id', '!=', False)]}" modifiers="{'readonly':[['type','=','contact'],['parent_id','!=',false]]}"/>
<field name="city_id" invisible="1"/>
<field name="cedex" placeholder="Cedex" class="o_address_city"
attrs="{'readonly': [('type', '=', 'contact'), ('parent_id', '!=', False)]}" modifiers="{'readonly':[['type','=','contact'],['parent_id','!=',false]]}"/>
<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}"/>
<field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'/>
</div>
</div>
</group>
<group>
<field name="title" placeholder="Madame"
attrs="{'invisible': [('type','!=', 'contact')]}"/>
<field name="name" string="Nom" attrs="{'required' : [('type', '!=', 'contact')], 'invisible' : [('type', '=', 'contact')]}"/>
<field name="firstname" string="Prénom" attrs="{'required' : [('type', '=', 'contact')], 'invisible' : [('type', '!=', 'contact')]}"/>
<field name="lastname" string="Nom de famille" attrs="{'required' : [('type', '=', 'contact')], 'invisible' : [('type', '!=', 'contact')]}"/>
<field name="mandate_id" options="{'no_open': True, 'no_create': True}" attrs="{'invisible': [('type','!=', 'contact')]}"/>
<field name="function" placeholder="e.g. Directeur des Ventes"
attrs="{'invisible': [('type','!=', 'contact')]}"/>
<field name="email"/>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="comment" placeholder="internal note..."/>
</group>
<group attrs="{'invisible': [('type', '!=', 'contact')]}">
<field name="birthyear"/>
<field name="contact_origin_id" options="{'no_open': True, 'no_create': True}"/>
<field name="contact_legality" readonly="1"/>
<field name="segment_1_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="segment_2_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="segment_3_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="segment_4_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
</group>
</group>
<field name="subscription_ids" attrs="{'invisible': [('type', '!=', 'contact')]}">
<tree string="Subscriptions" editable="bottom">
<field name="newsletter_id" domain="[]"/>
<field name="consent"/>
</tree>
</field>
<field name="supplier" invisible="True"/>
<field name="customer" invisible="True"/>
<field name="lang" invisible="True"/>
<field name="image" invisible="True"/>
<field name="user_id" invisible="True"/>
<field name="ur_id" invisible="True"/>
</sheet>
</form>
</field>
</page>
<page name='scop_revision' string="Révisions" attrs="{'invisible': [('project_status', '!=', '6_suivi')]}">
<group string="Informations de révision">
<group>
<field name="revision_contract"/>
<field name="revision_company_id" widget="res_partner_many2one" options="{'no_create': True}"/>
<field name="revision_backup_company_id" widget="res_partner_many2one" options="{'no_create': True}"/>
<field name="revision_person_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}"/>
<field name="revision_certified_person_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}"/>
<field name="revision_person_assign_date"/>
</group>
<group>
<field name="revision_type"/>
<field name="revision_next_date"/>
<field name="revision_format_id" options="{'no_open': True, 'no_create': True}"/>
</group>
</group>
<field name="revision_ids" widget="one2many">
<tree string="Révisions" editable="top">
<field name="date"/>
<field name="delegate_id" options="{'no_open': True, 'no_create': True}" />
<field name="revision_result_year"/>
<field name="revision_staff"/>
<field name="revision_format_id" options="{'no_open': True, 'no_create': True}"/>
<field name="revision_followup"/>
<field name="note"/>
</tree>
</field>
</page>
<page name="scop_periods" string="Historique" attrs="{'invisible': [('project_status', '!=', '6_suivi')]}">
<field name="scop_period_ids" mode="tree"
context="{'default_partner_id': active_id, 'default_name': name, 'default_cooperative_form_id': cooperative_form_id, 'default_partner_company_type_id': partner_company_type_id, 'default_siret': siret, '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_country_id': country_id, 'default_naf_id': naf_id, 'default_cae': cae}" style="pointer-events:none;">
<tree string="Périodes" decoration-muted="end_reason!=False" create="false" edit="false" delete="false">
<field name="partner_id" invisible="1"/>
<field name="start"/>
<field name="end"/>
<field name="end_reason"/>
<field name="dissolution_reason_id"/>
<field name="comments"/>
<field name="name"/>
<field name="cooperative_form_id"/>
<field name="partner_company_type_id"/>
<field name="siret"/>
<field name="street"/>
<field name="street2"/>
<field name="street3"/>
<field name="zip"/>
<field name="zip_id" invisible="1"/>
<field name="city"/>
<field name="cedex"/>
<field name="state_id" invisible="1"/>
<field name="country_id" invisible="1"/>
<field name="naf_id"/>
<field name="cae"/>
</tree>
</field>
</page>
<page name='internal_notes' string="Commentaires">
<field name="comment" placeholder="Commentaires..."/>
</page>
<page name='scop_membership' string="Périodes d'adhésion" attrs="{'invisible': [('project_status', '!=', '6_suivi')]}">
<field name="membership_period_ids" mode="tree" style="pointer-events:none;">
<tree create="false" edit="false" delete="false" default_order="start desc">
<field name="start"/>
<field name="type_id"/>
<field name="number"/>
<field name="state"/>
<field name="end"/>
<field name="end_reason_id"/>
<field name="note"/>
</tree>
</field>
</page>
<page name='scop_contribution' string="Cotisations" attrs="{'invisible': [('project_status', '!=', '6_suivi')]}">
<field name="contribution_ids" mode="tree" style="pointer-events:none;">
<tree create="false" edit="false" delete="false" default_order="calculation_date desc">
<field name="type_id"/>
<field name="year"/>
<field name="calculation_date"/>
<field name="amount_calculated" widget="monetary"/>
<field name="amount_called" widget="monetary"/>
<field name="amount_paid" widget="monetary"/>
<field name="amount_remaining" widget="monetary"/>
<field name="amount_remaining_previous" widget="monetary"/>
<field name="amount_paid_late" widget="monetary"/>
<field name="loss"/>
<field name="spreading"/>
<field name="quarter_1"/>
<field name="quarter_2"/>
<field name="quarter_3"/>
<field name="quarter_4"/>
</tree>
</field>
</page>
<page name='scop_questionnaire' string="Listes Ministère" attrs="{'invisible': [('project_status', '!=', '6_suivi')]}">
<group>
<field name="direccte_id" widget="res_partner_many2one" options="{'no_create': True}"/>
</group>
<field name="questionnaire_ids" mode="tree" style="pointer-events:none;">
<tree create="false" edit="false" delete="false" default_order="effective_date desc">
<field name="year"/>
<field name="type_id"/>
<field name="effective_date"/>
<field name="staff_count"/>
<field name="staff_shareholder_count"/>
<field name="staff_average"/>
</tree>
</field>
</page>
<page name='scop_liasse_fiscale' string="Liasses Fiscales" attrs="{'invisible': [('project_status', '!=', '6_suivi')]}">
<field name="liasse_fiscale_ids" mode="tree">
<tree create="false" edit="false" delete="false" default_order="effective_date desc">
<field name="year"/>
<field name="type_id"/>
<field name="effective_date"/>
<field name="duration"/>
<field name="closing_date"/>
<field name="source_id"/>
</tree>
<form readonly="1"/>
</field>
</page>
</notebook>
</div>
</xpath>
</field> </field>
</record> </record>
......
Ce diff est replié.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter