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
65c06f80
Valider
65c06f80
rédigé
Il y a 5 ans
par
Benjamin - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[add] bouton modifier sur kanban directeurs et contacts
parent
d3f1b9b5
Aucune branche associée trouvée
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
+24
-5
24 ajouts, 5 suppressions
models/res_partner.py
views/res_partner.xml
+13
-9
13 ajouts, 9 suppressions
views/res_partner.xml
avec
37 ajouts
et
14 suppressions
models/res_partner.py
+
24
−
5
Voir le fichier @
65c06f80
...
...
@@ -814,6 +814,16 @@ class ScopPartner(models.Model):
},
}
def
edit_director
(
self
):
return
{
'
type
'
:
'
ir.actions.act_window
'
,
'
views
'
:
[[
self
.
env
.
ref
(
'
cgscop_partner.scop_partner_director_form_view
'
).
id
,
"
form
"
]],
'
view_mode
'
:
'
form
'
,
'
res_model
'
:
'
res.partner
'
,
'
res_id
'
:
self
.
id
,
'
target
'
:
'
new
'
,
}
def
add_contact
(
self
):
return
{
'
type
'
:
'
ir.actions.act_window
'
,
...
...
@@ -840,6 +850,15 @@ class ScopPartner(models.Model):
},
}
def
edit_contact
(
self
):
return
{
'
type
'
:
'
ir.actions.act_window
'
,
'
views
'
:
[[
self
.
env
.
ref
(
'
cgscop_partner.scop_partner_contact_form_view
'
).
id
,
"
form
"
]],
'
view_mode
'
:
'
form
'
,
'
res_model
'
:
'
res.partner
'
,
'
res_id
'
:
self
.
id
,
'
target
'
:
'
new
'
,
}
class
ResPartneCertification
(
models
.
Model
):
_name
=
"
res.partner.certification
"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
views/res_partner.xml
+
13
−
9
Voir le fichier @
65c06f80
...
...
@@ -394,6 +394,7 @@
</group>
<notebook
colspan=
"4"
>
<page
name=
"scop_contacts"
string=
"Contacts & Addresses"
>
<!-- Directeurs et mandataires -->
<label
for=
"director_ids"
string=
"Dirigeants et mandataires"
/>
<p>
<button
name=
"add_director"
type=
"object"
class=
"btn-info"
string=
"Ajouter un dirigeant"
></button>
...
...
@@ -435,6 +436,7 @@
<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"
/>
<a
name=
"edit_director"
type=
"object"
class=
"fa fa-2x fa-edit text-info 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"
>
...
...
@@ -455,6 +457,7 @@
</templates>
</kanban>
</field>
<!-- Autres contacts -->
<label
for=
"other_child_ids"
string=
"Autres Contacts / Adresses"
/>
<p>
<button
name=
"add_contact"
type=
"object"
class=
"btn-info"
string=
"Ajouter un contact"
></button>
...
...
@@ -495,6 +498,7 @@
<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
name=
"edit_contact"
type=
"object"
class=
"fa fa-2x fa-edit text-info pull-right"
/>
<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)"
/>
...
...
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