Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
A
alterincub_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
Le Filament
AlterIncub
alterincub_partner
Requêtes de fusion
!1
Draft: [IMP] Added geolocalisation with gouv_api dependancy
Code
Examiner les modifications
Extraire la branche
Télécharger
Correctifs
Diff brut
Étendre la barre latérale
Fermé
Draft: [IMP] Added geolocalisation with gouv_api dependancy
geoloc_partner_for_api_exposition
vers
14.0
Vue d'ensemble
1
Validations
4
Modifications
2
Fermé
Thibaud - Le Filament
a demandé de fusionner
geoloc_partner_for_api_exposition
vers
14.0
Il y a 1 an
Vue d'ensemble
1
Validations
4
Modifications
3
Override res.partner create() method to handle the creation of record
Added onchange_geoloc() method to handle the update of an existing record
0
0
Rapports de requête de fusion
Comparer
version 2
version 2
a6d19e9f
Il y a 1 an
version 1
77dc55b6
Il y a 1 an
14.0 (base)
et
dernière version
dernière version
de255083
4 validations,
Il y a 1 an
version 2
a6d19e9f
2 validations,
Il y a 1 an
version 1
77dc55b6
1 validation,
Il y a 1 an
Afficher la dernière version
3 files
+
0
−
19
En ligne
Comparer les modifications
Côte à côte
En ligne
Afficher les modifications des espaces
Afficher un fichier à la fois
Fichiers
3
models/res_partner.py
+
0
−
10
Afficher le fichier @ de255083
Afficher le fichier complet
@@ -315,19 +315,9 @@ class ResPartner(models.Model):
self
.
type
=
"
other
"
return
result
@api.onchange
(
"
street
"
,
"
street2
"
,
"
street3
"
,
"
zip
"
,
"
country_id
"
,
"
city
"
)
def
onchange_geoloc
(
self
):
self
.
geo_localize
()
# ------------------------------------------------------
# CRUD methods (ORM overrides)
# ------------------------------------------------------
@api.model
def
create
(
self
,
vals
):
partner
=
super
().
create
(
vals
)
partner
.
geo_localize
()
return
partner
def
write
(
self
,
vals
):
if
vals
.
get
(
"
project_state
"
)
and
vals
.
get
(
"
project_state
"
)
==
"
8_lost
"
:
if
not
vals
.
get
(
"
end_reason_id
"
):
Chargement en cours