Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
E
etic_partner_stock
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
ETIC Emballages
etic_partner_stock
Validations
270e46d2
Valider
270e46d2
rédigé
Il y a 2 ans
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[UPD] use current company iso user one
parent
2233f354
Branches
14.0
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
models/res_partner.py
+6
-6
6 ajouts, 6 suppressions
models/res_partner.py
avec
6 ajouts
et
6 suppressions
models/res_partner.py
+
6
−
6
Voir le fichier @
270e46d2
...
...
@@ -87,7 +87,7 @@ class EticPartner(models.Model):
@api.depends
(
"
all_stock_move_ids
"
)
def
_compute_amount_caisses
(
self
):
cat_product
=
self
.
env
.
user
.
company
_id
.
product_caisse_etic_id
cat_product
=
self
.
env
.
company
.
product_caisse_etic_id
for
r
in
self
:
stock_moves
=
sum
(
r
.
all_stock_move_ids
.
filtered
(
...
...
@@ -99,7 +99,7 @@ class EticPartner(models.Model):
@api.depends
(
"
monthly_stock_move_ids
"
)
def
_compute_monthly_delivered_caisse
(
self
):
cat_product
=
self
.
env
.
user
.
company
_id
.
product_caisse_etic_id
cat_product
=
self
.
env
.
company
.
product_caisse_etic_id
for
r
in
self
:
r
.
monthly_delivered_caisse
=
sum
(
r
.
monthly_stock_move_ids
.
filtered
(
...
...
@@ -178,20 +178,20 @@ class EticPartner(models.Model):
"""
- Check si l
'
opération de picking est bien configurée
"""
if
not
self
.
env
.
user
.
company
_id
.
picking_type_delivery_etic_id
:
if
not
self
.
env
.
company
.
picking_type_delivery_etic_id
:
raise
UserError
(
_
(
"
L
'
opération
\"
Livraison
\"
n
'
a pas été
"
"
configurée !
"
))
else
:
picking_type_id
=
self
.
env
.
user
.
company
_id
.
picking_type_delivery_etic_id
picking_type_id
=
self
.
env
.
company
.
picking_type_delivery_etic_id
return
self
.
create_picking
(
picking_type_id
)
def
create_return_picking
(
self
):
"""
- Check si l
'
opération de picking est bien configurée
"""
if
not
self
.
env
.
user
.
company
_id
.
picking_type_return_etic_id
:
if
not
self
.
env
.
company
.
picking_type_return_etic_id
:
raise
UserError
(
_
(
"
L
'
opération
\"
Livraison
\"
n
'
a pas été
"
"
configurée !
"
))
else
:
picking_type_id
=
self
.
env
.
user
.
company
_id
.
picking_type_return_etic_id
picking_type_id
=
self
.
env
.
company
.
picking_type_return_etic_id
return
self
.
create_picking
(
picking_type_id
)
def
create_picking
(
self
,
type_picking
):
...
...
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