Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_partner
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Hervé Silvant - CGScop
cgscop_partner
Validations
44135119
Valider
44135119
rédigé
29 juin 2023
par
Hervé Silvant - CGScop
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Mise à jour de l'affichage contacts
parent
df49c646
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
models/res_partner.py
+4
-0
4 ajouts, 0 suppression
models/res_partner.py
views/res_partner.xml
+325
-271
325 ajouts, 271 suppressions
views/res_partner.xml
avec
329 ajouts
et
271 suppressions
models/res_partner.py
+
4
−
0
Voir le fichier @
44135119
...
@@ -51,6 +51,10 @@ class ScopPartner(models.Model):
...
@@ -51,6 +51,10 @@ class ScopPartner(models.Model):
# Infos générales - champs non affichés
# Infos générales - champs non affichés
is_cooperative
=
fields
.
Boolean
(
"
Est une coopérative
"
)
is_cooperative
=
fields
.
Boolean
(
"
Est une coopérative
"
)
parent_is_cooperative
=
fields
.
Boolean
(
string
=
"
Parent est une coopérative
"
,
related
=
"
parent_id.is_cooperative
"
,
)
current_user_ur_id
=
fields
.
Many2one
(
current_user_ur_id
=
fields
.
Many2one
(
"
union.regionale
"
,
"
union.regionale
"
,
string
=
"
Union Régionale de l
'
utilisateur
"
,
string
=
"
Union Régionale de l
'
utilisateur
"
,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
views/res_partner.xml
+
325
−
271
Voir le fichier @
44135119
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
>
{'invisible': [('is_cooperative','=', True)]}
</attribute>
>
{'invisible': [('is_cooperative','=', True)]}
</attribute>
<attribute
name=
"col"
>
3
</attribute>
<attribute
name=
"col"
>
3
</attribute>
</xpath>
</xpath>
<xpath
expr=
"//div[hasclass('oe_title')]"
position=
"attributes"
>
<xpath
expr=
"//div[hasclass('oe_title')]"
position=
"attributes"
>
<attribute
<attribute
name=
"attrs"
name=
"attrs"
...
@@ -88,10 +89,9 @@
...
@@ -88,10 +89,9 @@
</field>
</field>
<field
name=
"parent_id"
position=
"attributes"
>
<field
name=
"parent_id"
position=
"attributes"
>
<attribute
name=
"options"
>
{'no_create': True}
</attribute>
<attribute
name=
"options"
>
{'no_create': True}
</attribute>
<attribute
<attribute
name=
"domain"
>
[('is_company', '=', True), ('ur_id', '=', ur_id)]
</attribute>
name=
"domain"
>
[('is_company', '=', True), ('ur_id', '=', ur_id)]
</attribute>
<attribute
name=
"placeholder"
>
Société
</attribute>
<attribute
name=
"placeholder"
>
Société
</attribute>
<attribute
name=
"attrs"
>
{'invisible': [('is_company','=', True)]}
</attribute>
</field>
</field>
<xpath
expr=
"//div[hasclass('oe_title')]"
position=
"attributes"
>
<xpath
expr=
"//div[hasclass('oe_title')]"
position=
"attributes"
>
<attribute
name=
"class"
>
oe_title oe_title_cgscop
</attribute>
<attribute
name=
"class"
>
oe_title oe_title_cgscop
</attribute>
...
@@ -116,7 +116,6 @@
...
@@ -116,7 +116,6 @@
<attribute
name=
"readonly"
>
True
</attribute>
<attribute
name=
"readonly"
>
True
</attribute>
</xpath>
</xpath>
<field
name=
"street"
position=
"attributes"
>
<field
name=
"street"
position=
"attributes"
>
<attribute
name=
"placeholder"
>
Rue
</attribute>
<attribute
name=
"placeholder"
>
Rue
</attribute>
</field>
</field>
...
@@ -127,9 +126,7 @@
...
@@ -127,9 +126,7 @@
<attribute
name=
"placeholder"
>
Rue 3
</attribute>
<attribute
name=
"placeholder"
>
Rue 3
</attribute>
</field>
</field>
<field
name=
"zip_id"
position=
"attributes"
>
<field
name=
"zip_id"
position=
"attributes"
>
<attribute
<attribute
name=
"placeholder"
>
CP / Ville autocomplétion...
</attribute>
name=
"placeholder"
>
CP / Ville autocomplétion...
</attribute>
</field>
</field>
<field
name=
"zip"
position=
"replace"
/>
<field
name=
"zip"
position=
"replace"
/>
<field
name=
"city"
position=
"before"
>
<field
name=
"city"
position=
"before"
>
...
@@ -146,10 +143,44 @@
...
@@ -146,10 +143,44 @@
<attribute
name=
"placeholder"
>
Région
</attribute>
<attribute
name=
"placeholder"
>
Région
</attribute>
<attribute
name=
"invisible"
>
1
</attribute>
<attribute
name=
"invisible"
>
1
</attribute>
</field>
</field>
<field
name=
"vat"
position=
"attributes"
>
<attribute
name=
"attrs"
>
{'invisible': [('is_company','=', False)]}
</attribute>
</field>
<field
name=
"vat"
position=
"before"
>
<field
name=
"user_ids"
invisible=
"1"
/>
<field
name=
"zip_departement"
string=
"N° de département"
attrs=
"{'invisible': [('is_company','=', False)]}"
/>
<field
name=
"region"
attrs=
"{'invisible': [('is_company','=', False)]}"
/>
</field>
<field
name=
"vat"
position=
"after"
>
<field
name=
"phone"
widget=
"phone"
/>
<field
name=
"mobile"
widget=
"phone"
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"email"
widget=
"email"
on_change=
"1"
/>
<field
name=
"website"
attrs=
"{'invisible': [('is_company','=', False)]}"
/>
<field
name=
"lang"
invisible=
"1"
/>
</field>
<xpath
expr=
'//form/sheet/group/group[2]'
position=
"replace"
>
<xpath
expr=
'//form/sheet/group/group[2]'
position=
"replace"
>
<group
col=
"1"
name=
"partner_legal_info"
>
<group
col=
"1"
name=
"partner_legal_info"
>
<group
<group
string=
"Informations juridiques"
string=
"Informations juridiques"
attrs=
"{'invisible': [('is_company', '=', False)]}"
attrs=
"{'invisible': [('is_company', '=', False)]}"
>
>
<label
<label
...
@@ -184,7 +215,49 @@
...
@@ -184,7 +215,49 @@
/>
/>
<field
name=
"registration_date"
/>
<field
name=
"registration_date"
/>
</group>
</group>
<group
string=
"Informations contact"
name=
"contact_legal_info"
attrs=
"{'invisible': ['|', ('is_company', '=', True), ('type', '!=', 'contact')]}"
>
<field
name=
"parent_is_cooperative"
invisible=
"1"
/>
<field
name=
"title"
options=
'{"no_create": True, "no_open": True}'
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"birthyear"
attrs=
"{'invisible': ['|',('is_company','=', True),('parent_is_cooperative','=', False)]}"
/>
<br/>
<field
name=
"mandate_id"
options=
'{"no_create": True, "no_open": True}'
attrs=
"{'invisible': ['|',('is_company','=', True),('parent_is_cooperative','=', False)]}"
/>
<field
name=
"function_lst_id"
options=
'{"no_create": True, "no_open": True}'
attrs=
"{'invisible': ['|',('is_company','=', True),('parent_is_cooperative','=', True)]}"
/>
<field
name=
"function"
attrs=
"{'invisible': ['|',('is_company','=', True),('parent_is_cooperative','=', False)]}"
/>
<field
name=
"employee"
attrs=
"{'invisible': ['|',('is_company','=', True),('parent_is_cooperative','=', False)]}"
/>
<field
name=
"associate"
attrs=
"{'invisible': ['|',('is_company','=', True),('parent_is_cooperative','=', False)]}"
/>
</group>
</group>
</group>
<group
<group
col=
"1"
col=
"1"
name=
"partner_segment_info"
name=
"partner_segment_info"
...
@@ -246,6 +319,19 @@
...
@@ -246,6 +319,19 @@
domain=
"[('ur_id', '=', ur_id)]"
domain=
"[('ur_id', '=', ur_id)]"
attrs=
"{'invisible':[('segment_4_nb', '=', 0)]}"
attrs=
"{'invisible':[('segment_4_nb', '=', 0)]}"
/>
/>
<field
name=
"staff_last"
attrs=
"{'invisible': [('organization_subtype_id','!=', %(cgscop_partner.riga_11528)d)]}"
/>
<br/>
<field
name=
"ur_id"
options=
'{"no_open": True, "no_create": True}'
on_change=
"1"
can_create=
"false"
can_write=
"false"
attrs=
"{'invisible': [('is_company','=', False)]}"
/>
<field
<field
name=
"followup_delegate_id"
name=
"followup_delegate_id"
widget=
"many2one_mailto"
widget=
"many2one_mailto"
...
@@ -253,13 +339,8 @@
...
@@ -253,13 +339,8 @@
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
attrs=
"{'invisible': ['|', ('is_company','=', False), ('type', '!=', 'contact')]}"
attrs=
"{'invisible': ['|', ('is_company','=', False), ('type', '!=', 'contact')]}"
/>
/>
<field
name=
"staff_last"
attrs=
"{'invisible': [('organization_subtype_id','!=', %(cgscop_partner.riga_11528)d)]}"
/>
</group>
</group>
<group
<group
string=
"Féd. communication"
string=
"Féd. communication"
groups=
"cgscop_partner.group_federation_com"
groups=
"cgscop_partner.group_federation_com"
>
>
<field
name=
"copadev_member"
widget=
"boolean_toggle"
/>
<field
name=
"copadev_member"
widget=
"boolean_toggle"
/>
...
@@ -269,40 +350,13 @@
...
@@ -269,40 +350,13 @@
widget=
"many2many_tags"
widget=
"many2many_tags"
/>
/>
</group>
</group>
</group>
</group>
<group
<group
string=
"Informations mouvement"
name=
"contact_segment_info"
name=
"contact_segment_info"
attrs=
"{'invisible': ['|', ('is_company', '=', True), ('type', '!=', 'contact')]}"
attrs=
"{'invisible': ['|', ('is_company', '=', True), ('type', '!=', 'contact')]}"
>
>
<field
<field
name=
"parent_is_cooperative"
invisible=
"1"
/>
name=
"title"
options=
'{"no_create": True, "no_open": True}'
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"mandate_id"
options=
'{"no_create": True, "no_open": True}'
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"function_lst_id"
options=
'{"no_create": True, "no_open": True}'
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"function"
/>
<field
name=
"employee"
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"associate"
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"birthyear"
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
<field
name=
"contact_origin_id"
name=
"contact_origin_id"
attrs=
"{'invisible': [('is_company','=', True)]}"
attrs=
"{'invisible': [('is_company','=', True)]}"
...
@@ -313,14 +367,30 @@
...
@@ -313,14 +367,30 @@
readonly=
"True"
readonly=
"True"
attrs=
"{'invisible': [('is_company','=', True)]}"
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
/>
<br/>
<field
name=
"ur_id"
options=
'{"no_open": True, "no_create": True}'
on_change=
"1"
can_create=
"false"
can_write=
"false"
/>
<field
<field
name=
"followup_delegate_id"
name=
"followup_delegate_id"
widget=
"many2one_mailto"
widget=
"many2one_mailto"
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
/>
/>
<br/>
<field
name=
"category_id"
options=
'{"no_open": True, "no_create": True}'
widget=
"many2many_tags"
/>
</group>
</group>
</xpath>
</xpath>
<xpath
expr=
'//form/sheet/group'
position=
"after"
>
<xpath
expr=
'//form/sheet/group'
position=
"after"
>
<field
<field
name=
"subscription_ids"
name=
"subscription_ids"
...
@@ -332,202 +402,168 @@
...
@@ -332,202 +402,168 @@
</tree>
</tree>
</field>
</field>
</xpath>
</xpath>
<xpath
expr=
"//field[@name='child_ids']"
position=
"attributes"
>
<attribute
<xpath
expr=
"//page[@name='contact_addresses']"
position=
"attributes"
>
name=
"context"
<attribute
name=
"attrs"
>
{'invisible': [('is_company','=', False)]}
</attribute>
>
{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_street3': street3, 'default_city': city, 'default_cedex': cedex, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_lang': lang, 'default_ur_id': ur_id, 'default_user_id': user_id}
</attribute>
</xpath>
</xpath>
<!-- Kanban Child -->
<xpath
<xpath
expr=
"//field[@name='child_ids']"
position=
"replace"
>
expr=
"//field[@name='child_ids']//kanban//field[@name='function']"
<p>
position=
"before"
<button
>
name=
"add_contact"
type=
"object"
class=
"btn-info"
string=
"Ajouter un contact"
/>
</p>
<field
name=
"child_ids"
mode=
"kanban"
readonly=
"1"
style=
"pointer-events: none;"
>
<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=
"mandate_id"
/>
<field
<field
name=
"function"
/>
name=
"ur_id"
<field
name=
"function_lst_id"
/>
options=
'{"no_open": True, "no_create": True}'
<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_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)"
/>
/>
</xpath>
<div
<xpath
t-att-class=
"color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"
expr=
"//field[@name='child_ids']//kanban//div[hasclass('oe_kanban_details')]//field[@name='name']"
position=
"after"
>
<div
t-if=
"record.mandate_id.raw_value"
><field
name=
"mandate_id"
/></div>
</xpath>
<!-- Form Child -->
<xpath
expr=
"//field[@name='child_ids']//form//field[@name='type']"
position=
"after"
>
>
<field
<a
name=
"company_type"
name=
"edit_contact"
widget=
"radio"
type=
"object"
class=
"oe_edit_only"
class=
"fa fa-2x fa-edit text-info pull-right"
options=
"{'horizontal': true}"
title=
"Modifier"
style=
"pointer-events: visible;"
/>
/>
</xpath>
<a
<xpath
t-if=
"!read_only_mode"
expr=
"//field[@name='child_ids']//form//field[@name='function']"
name=
"partner_archive"
position=
"replace"
type=
"object"
>
class=
"fa fa-times pull-right"
<field
title=
"Archiver"
name=
"ur_id"
invisible=
"1"
options=
'{"no_open": True, "no_create": True}'
/>
/>
</xpath>
<div
class=
"o_kanban_image"
>
<xpath
<img
expr=
"//field[@name='child_ids']//form//field[@name='street']"
alt=
"Contact image"
position=
"attributes"
t-if=
"record.image_128.raw_value"
>
t-att-src=
"kanban_image('res.partner', 'image_128', record.id.raw_value)"
<attribute
name=
"placeholder"
>
Rue
</attribute>
</xpath>
<xpath
expr=
"//field[@name='child_ids']//form//field[@name='street2']"
position=
"attributes"
>
<attribute
name=
"placeholder"
>
Rue 2
</attribute>
</xpath>
<xpath
expr=
"//field[@name='child_ids']//form//field[@name='street3']"
position=
"attributes"
>
<attribute
name=
"placeholder"
>
Rue 3
</attribute>
</xpath>
<xpath
expr=
"//field[@name='child_ids']//form//field[@name='zip_id']"
position=
"attributes"
>
<attribute
name=
"placeholder"
>
CP / Ville autocomplétion...
</attribute>
</xpath>
<xpath
expr=
"//field[@name='child_ids']//form//field[@name='zip']"
position=
"replace"
/>
/>
<xpath
<t
t-if=
"!record.image_128.raw_value"
>
expr=
"//field[@name='child_ids']//form//field[@name='city']"
<img
position=
"before"
alt=
"Delivery"
>
t-if=
"record.type.raw_value === 'delivery'"
<field
t-att-src=
'_s + "/base/static/img/truck.png"'
name=
"zip"
placeholder=
"Code postal"
class=
"o_address_city"
attrs=
"{'readonly': [('type', '=', 'contact'), ('parent_id', '!=', False)]}"
on_change=
"1"
modifiers=
"{'readonly':[['type','=','contact'], ['parent_id','!=',false]]}"
/>
/>
</xpath>
<img
<xpath
id=
"cgscop_partner_invoice_img"
expr=
"//field[@name='child_ids']//form//field[@name='state_id']"
alt=
"Invoice"
position=
"attributes"
t-if=
"record.type.raw_value === 'invoice'"
>
t-att-src=
'_s + "/base/static/img/money.png"'
<attribute
name=
"placeholder"
>
Région
</attribute>
</xpath>
<xpath
expr=
"//field[@name='child_ids']//form//field[@name='mobile']"
position=
"after"
>
<field
name=
"category_id"
options=
'{"no_open": True, "no_create": True}'
widget=
"many2many_tags"
attrs=
"{'invisible': [('type', '!=', 'contact')]}"
/>
/>
</xpath>
<t
<xpath
t-if=
"record.type.raw_value !== 'invoice' && record.type.raw_value !== 'delivery'"
expr=
"//field[@name='child_ids']//form//field[@name='title']"
position=
"attributes"
>
<attribute
name=
"options"
>
{'no_open': True, 'no_create': True}
</attribute>
</xpath>
<xpath
expr=
"//field[@name='child_ids']/form//group/group[2]"
position=
"after"
>
>
<group
attrs=
"{'invisible': [('type', '!=', 'contact')]}"
>
<img
<field
alt=
"Logo"
name=
"mandate_id"
t-if=
"record.is_company.raw_value === true"
options=
'{"no_open": True, "no_create": True}'
t-att-src=
"_s + '/base/static/img/company_image.png'"
/>
<field
name=
"function_lst_id"
options=
'{"no_open": True, "no_create": True}'
/>
<field
name=
"function"
/>
<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"
/>
<img
<field
alt=
"Avatar"
name=
"followup_delegate_id"
t-if=
"record.is_company.raw_value === false"
widget=
"many2one_mailto"
t-att-src=
'_s + "/base/static/img/avatar_grey.png"'
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
/>
/>
</group>
</t>
</xpath>
</t>
<xpath
expr=
"//field[@name='child_ids']/form//group"
position=
"after"
>
</div>
<field
<div
class=
"oe_kanban_details"
>
name=
"subscription_ids"
<field
name=
"name"
/>
attrs=
"{'invisible': [('type', '!=', 'contact')]}"
<div
t-if=
"record.function_lst_id.raw_value"
><field
name=
"function_lst_id"
/></div>
<div
t-if=
"record.email.raw_value"
><field
name=
"email"
widget=
"email"
/></div>
<div
t-if=
"record.type.raw_value != 'contact'"
>
>
<tree
string=
"Subscriptions"
editable=
"bottom"
>
<div>
<field
name=
"newsletter_id"
domain=
"[]"
/>
<field
name=
"zip"
/>
<field
name=
"consent"
/>
<field
name=
"city"
/>
</tree>
<field
name=
"cedex"
/>
</field>
</div>
</xpath>
<field
name=
"vat"
position=
"after"
>
<field
name=
"user_ids"
invisible=
"1"
/>
<field
name=
"zip_departement"
string=
"N° de département"
/>
<field
name=
"region"
/>
<field
name=
"phone"
widget=
"phone"
/>
<field
name=
"mobile"
widget=
"phone"
attrs=
"{'invisible': [('is_company','=', True)]}"
/>
<field
name=
"email"
widget=
"email"
on_change=
"1"
/>
<field
name=
"website"
attrs=
"{'invisible': [('is_company','=', False)]}"
/>
<field
<field
name=
"ur_id"
t-if=
"record.state_id.raw_value"
options=
'{"no_open": True, "no_create": True}'
name=
"state_id"
on_change=
"1"
can_create=
"false"
can_write=
"false"
/>
/>
<field
<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"
name=
"category_id"
options=
'{"no_open": True, "no_create": True}'
widget=
"many2many_tags"
widget=
"many2many_tags"
attrs=
"{'invisible': ['|', ('is_company', '=', True), ('type', '!=', 'contact')]}"
/></div>
/>
</div>
<field
name=
"lang"
invisible=
"1"
/>
</div>
</t>
</templates>
</kanban>
</field>
</field>
</xpath>
<xpath
expr=
"//notebook/page"
position=
"attributes"
>
<xpath
expr=
"//notebook/page"
position=
"attributes"
>
<attribute
<attribute
name=
"attrs"
name=
"attrs"
>
{'invisible': [('is_cooperative','=', True)]}
</attribute>
>
{'invisible': [('is_cooperative','=', True)]}
</attribute>
</xpath>
</xpath>
<xpath
<xpath
expr=
"//notebook/page[@name='internal_notes']"
expr=
"//notebook/page[@name='internal_notes']"
position=
"attributes"
position=
"attributes"
>
>
<attribute
name=
"string"
>
Commentaires
</attribute>
<attribute
name=
"string"
>
Commentaires
</attribute>
</xpath>
</xpath>
<xpath
expr=
"//field[@name='comment']"
position=
"attributes"
>
<xpath
expr=
"//field[@name='comment']"
position=
"attributes"
>
<attribute
name=
"placeholder"
>
Commentaires...
</attribute>
<attribute
name=
"placeholder"
>
Commentaires...
</attribute>
</xpath>
</xpath>
...
@@ -1172,7 +1208,7 @@
...
@@ -1172,7 +1208,7 @@
string=
"Ajouter un dirigeant"
string=
"Ajouter un dirigeant"
/>
/>
</p>
</p>
<field
name=
"director_ids"
readonly=
"1"
>
<field
name=
"director_ids"
readonly=
"1"
style=
"pointer-events:none;"
>
<kanban>
<kanban>
<field
name=
"id"
/>
<field
name=
"id"
/>
<field
name=
"color"
/>
<field
name=
"color"
/>
...
@@ -1223,6 +1259,7 @@
...
@@ -1223,6 +1259,7 @@
type=
"object"
type=
"object"
class=
"fa fa-2x fa-edit text-info pull-right"
class=
"fa fa-2x fa-edit text-info pull-right"
title=
"Modifier"
title=
"Modifier"
style=
"pointer-events: visible;"
/>
/>
<div
class=
"o_kanban_image"
>
<div
class=
"o_kanban_image"
>
<img
<img
...
@@ -1288,7 +1325,7 @@
...
@@ -1288,7 +1325,7 @@
string=
"Ajouter un contact"
string=
"Ajouter un contact"
/>
/>
</p>
</p>
<field
name=
"other_child_ids"
mode=
"kanban"
readonly=
"1"
>
<field
name=
"other_child_ids"
mode=
"kanban"
readonly=
"1"
style=
"pointer-events: none;"
>
<kanban>
<kanban>
<field
name=
"id"
/>
<field
name=
"id"
/>
<field
name=
"color"
/>
<field
name=
"color"
/>
...
@@ -1332,6 +1369,7 @@
...
@@ -1332,6 +1369,7 @@
type=
"object"
type=
"object"
class=
"fa fa-2x fa-edit text-info pull-right"
class=
"fa fa-2x fa-edit text-info pull-right"
title=
"Modifier"
title=
"Modifier"
style=
"pointer-events: visible;"
/>
/>
<a
<a
t-if=
"!read_only_mode"
t-if=
"!read_only_mode"
...
@@ -1801,15 +1839,25 @@
...
@@ -1801,15 +1839,25 @@
string=
"Nom de famille"
string=
"Nom de famille"
required=
"1"
required=
"1"
/>
/>
<field
name=
"birthyear"
/>
<br/>
<field
name=
"email"
/>
<field
name=
"email"
/>
<field
name=
"phone"
widget=
"phone"
/>
<field
name=
"phone"
widget=
"phone"
/>
<field
name=
"mobile"
widget=
"phone"
/>
<field
name=
"mobile"
widget=
"phone"
/>
<br/>
<field
<field
name=
"category_id"
name=
"contact_origin_id"
widget=
"many2many_tags"
options=
"{'no_open': True, 'no_create': True}"
options=
"{'color_field': 'color', 'no_create': True}"
/>
<field
name=
"contact_legality"
readonly=
"1"
/>
<br/>
<field
name=
"ur_id"
readonly=
"1"
/>
<field
name=
"followup_delegate_id"
widget=
"many2one_mailto"
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
/>
/>
<field
name=
"comment"
placeholder=
"Commentaires..."
/>
</group>
</group>
<group>
<group>
<field
<field
...
@@ -1817,26 +1865,15 @@
...
@@ -1817,26 +1865,15 @@
options=
"{'no_open': True, 'no_create': True}"
options=
"{'no_open': True, 'no_create': True}"
required=
"1"
required=
"1"
/>
/>
<field
name=
"function_lst_id"
options=
"{'no_open': True, 'no_create': True}"
/>
<field
name=
"function"
/>
<field
name=
"function"
/>
<field
name=
"employee"
/>
<field
name=
"employee"
/>
<field
name=
"associate"
/>
<field
name=
"associate"
/>
<field
name=
"birthyear"
/>
<br/>
<field
name=
"contact_origin_id"
options=
"{'no_open': True, 'no_create': True}"
/>
<field
name=
"contact_legality"
readonly=
"1"
/>
<field
<field
name=
"followup_delegate_id"
name=
"category_id"
widget=
"many2one_mailto"
widget=
"many2many_tags"
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
options=
"{'color_field': 'color', 'no_create': True}"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
/>
/>
<field
name=
"ur_id"
readonly=
"1"
/>
</group>
</group>
</group>
</group>
<field
name=
"subscription_ids"
>
<field
name=
"subscription_ids"
>
...
@@ -1892,10 +1929,16 @@
...
@@ -1892,10 +1929,16 @@
/>
/>
<field
name=
"parent_id_onchange"
invisible=
"1"
/>
<field
name=
"parent_id_onchange"
invisible=
"1"
/>
<field
name=
"parent_id"
invisible=
"1"
/>
<field
name=
"parent_id"
invisible=
"1"
/>
<field
name=
"parent_is_cooperative"
invisible=
"1"
/>
<hr
/>
<hr
/>
<group>
<group>
<group
attrs=
"{'invisible': [('type', '=', 'contact')]}"
>
<group
attrs=
"{'invisible': [('type', '=', 'contact')]}"
>
<label
for=
"street"
string=
"Address"
/>
<field
name=
"name"
string=
"Nom"
required=
"1"
/>
<label
for=
"street"
string=
"Adresse"
/>
<div>
<div>
<div
name=
"div_address"
class=
"o_address_format"
>
<div
name=
"div_address"
class=
"o_address_format"
>
<field
<field
...
@@ -1955,18 +1998,13 @@
...
@@ -1955,18 +1998,13 @@
</div>
</div>
</div>
</div>
</group>
</group>
<group>
<group
attrs=
"{'invisible': [('type', '!=', 'contact')]}"
>
<field
<field
name=
"title"
name=
"title"
placeholder=
"Madame"
placeholder=
"Madame"
attrs=
"{'invisible': [('type','!=', 'contact')]}"
attrs=
"{'invisible': [('type','!=', 'contact')]}"
options=
'{"no_open": True, "no_create": True}'
options=
'{"no_open": True, "no_create": True}'
/>
/>
<field
name=
"name"
string=
"Nom"
attrs=
"{'required' : [('type', '!=', 'contact')], 'invisible' : [('type', '=', 'contact')]}"
/>
<field
<field
name=
"firstname"
name=
"firstname"
string=
"Prénom"
string=
"Prénom"
...
@@ -1977,42 +2015,58 @@
...
@@ -1977,42 +2015,58 @@
string=
"Nom de famille"
string=
"Nom de famille"
attrs=
"{'required' : [('type', '=', 'contact')], 'invisible' : [('type', '!=', 'contact')]}"
attrs=
"{'required' : [('type', '=', 'contact')], 'invisible' : [('type', '!=', 'contact')]}"
/>
/>
<field
name=
"birthyear"
attrs=
"{'invisible': [('parent_is_cooperative','=', False)]}"
/>
<br/>
<field
name=
"email"
/>
<field
name=
"email"
/>
<field
name=
"phone"
widget=
"phone"
/>
<field
name=
"phone"
widget=
"phone"
/>
<field
name=
"mobile"
widget=
"phone"
/>
<field
name=
"mobile"
widget=
"phone"
/>
<br/>
<field
<field
name=
"category_id"
name=
"contact_origin_id"
widget=
"many2many_tags"
options=
"{'no_open': True, 'no_create': True}"
options=
"{'color_field': 'color', 'no_create': True}"
/>
attrs=
"{'invisible': [('type','!=', 'contact')]}"
<field
name=
"contact_legality"
readonly=
"1"
/>
<br/>
<field
name=
"ur_id"
readonly=
"1"
/>
<field
name=
"followup_delegate_id"
widget=
"many2one_mailto"
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
/>
/>
<field
name=
"comment"
placeholder=
"internal note..."
/>
</group>
</group>
<group
attrs=
"{'invisible': [('type', '!=', 'contact')]}"
>
<group
attrs=
"{'invisible': [('type', '!=', 'contact')]}"
>
<field
<field
name=
"mandate_id"
name=
"mandate_id"
options=
"{'no_open': True, 'no_create': True}"
options=
"{'no_open': True, 'no_create': True}"
attrs=
"{'invisible': [('parent_is_cooperative','=', False)]}"
/>
<field
name=
"function"
attrs=
"{'invisible': [('parent_is_cooperative','=', False)]}"
/>
/>
<field
<field
name=
"function_lst_id"
name=
"function_lst_id"
options=
"{'no_open': True, 'no_create': True}"
options=
"{'no_open': True, 'no_create': True}"
attrs=
"{'invisible': [('parent_is_cooperative','!=', False)]}"
/>
/>
<field
name=
"function"
/>
<field
name=
"employee"
/>
<field
name=
"associate"
/>
<field
name=
"birthyear"
/>
<field
<field
name=
"
contact_origin_id
"
name=
"
employee
"
options=
"{'no_open': True, 'no_create': True
}"
attrs=
"{'invisible': [('parent_is_cooperative','=', False)]
}"
/>
/>
<field
name=
"contact_legality"
readonly=
"1"
/>
<field
<field
name=
"followup_delegate_id"
name=
"associate"
widget=
"many2one_mailto"
attrs=
"{'invisible': [('parent_is_cooperative','=', False)]}"
options=
"{'no_open': True, 'no_create': True, 'mailto_field': 'email'}"
/>
domain=
"[('active', '=', True),('ur_id', '=', ur_id)]"
<br/>
<field
name=
"category_id"
widget=
"many2many_tags"
options=
"{'color_field': 'color', 'no_create': True}"
/>
/>
<field
name=
"ur_id"
readonly=
"1"
/>
</group>
</group>
</group>
</group>
<field
<field
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter