Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
A
ap_sale_project
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
Arbre et Paysage
ap_sale_project
Validations
357223a7
Valider
357223a7
rédigé
Il y a 3 ans
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[ADD] destockage fields
parent
49a907fd
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/sale_intervention_stock.py
+23
-1
23 ajouts, 1 suppression
models/sale_intervention_stock.py
views/sale_intervention_stock_view.xml
+19
-4
19 ajouts, 4 suppressions
views/sale_intervention_stock_view.xml
avec
42 ajouts
et
5 suppressions
models/sale_intervention_stock.py
+
23
−
1
Voir le fichier @
357223a7
...
@@ -37,6 +37,24 @@ class SaleInterventionStock(models.Model):
...
@@ -37,6 +37,24 @@ class SaleInterventionStock(models.Model):
admin_state_id
=
fields
.
Many2one
(
admin_state_id
=
fields
.
Many2one
(
related
=
"
project_id.admin_state_id
"
,
string
=
"
Étape du projet
"
,
store
=
True
related
=
"
project_id.admin_state_id
"
,
string
=
"
Étape du projet
"
,
store
=
True
)
)
plants_qty
=
fields
.
Integer
(
related
=
"
sale_intervention_id.plants_qty
"
,
string
=
"
Nb de plants
"
,
store
=
True
,
group_operator
=
"
sum
"
,
)
intervention_length
=
fields
.
Float
(
related
=
"
sale_intervention_id.intervention_length
"
,
string
=
"
Longueur haie
"
,
group_operator
=
"
sum
"
,
store
=
True
,
)
surface
=
fields
.
Integer
(
related
=
"
sale_intervention_id.surface
"
,
string
=
"
Surface
"
,
group_operator
=
"
sum
"
,
store
=
True
,
)
sale_order_id
=
fields
.
Many2one
(
sale_order_id
=
fields
.
Many2one
(
related
=
"
project_id.sale_order_id
"
,
related
=
"
project_id.sale_order_id
"
,
...
@@ -54,7 +72,11 @@ class SaleInterventionStock(models.Model):
...
@@ -54,7 +72,11 @@ class SaleInterventionStock(models.Model):
name
=
fields
.
Char
(
string
=
"
Article
"
,
related
=
"
product_id.name
"
)
name
=
fields
.
Char
(
string
=
"
Article
"
,
related
=
"
product_id.name
"
)
categ_id
=
fields
.
Many2one
(
related
=
"
product_template_id.categ_id
"
,
store
=
True
)
categ_id
=
fields
.
Many2one
(
related
=
"
product_template_id.categ_id
"
,
store
=
True
)
product_uom_qty
=
fields
.
Float
(
product_uom_qty
=
fields
.
Float
(
string
=
"
Quantité
"
,
digits
=
"
Product Unit of Measure
"
,
required
=
True
,
default
=
1.0
string
=
"
Quantité
"
,
digits
=
"
Product Unit of Measure
"
,
required
=
True
,
default
=
1.0
,
group_operator
=
"
sum
"
,
)
)
price_unit
=
fields
.
Float
(
price_unit
=
fields
.
Float
(
"
Prix Unitaire
"
,
required
=
True
,
digits
=
"
Product Price
"
,
default
=
0.0
"
Prix Unitaire
"
,
required
=
True
,
digits
=
"
Product Price
"
,
default
=
0.0
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
views/sale_intervention_stock_view.xml
+
19
−
4
Voir le fichier @
357223a7
...
@@ -20,14 +20,21 @@
...
@@ -20,14 +20,21 @@
<field
name=
"saison_id"
optional=
"show"
/>
<field
name=
"saison_id"
optional=
"show"
/>
<field
name=
"partner_id"
optional=
"show"
/>
<field
name=
"partner_id"
optional=
"show"
/>
<field
name=
"user_id"
optional=
"show"
/>
<field
name=
"user_id"
optional=
"show"
/>
<field
name=
"admin_state_id"
optional=
"
show
"
/>
<field
name=
"admin_state_id"
optional=
"
hide
"
/>
<field
name=
"sale_intervention_id"
optional=
"hide"
/>
<field
name=
"sale_intervention_id"
optional=
"hide"
/>
<field
name=
"intervention_type_id"
optional=
"
hide
"
/>
<field
name=
"intervention_type_id"
optional=
"
show
"
/>
<field
name=
"sale_order_id"
optional=
"hide"
/>
<field
name=
"sale_order_id"
optional=
"hide"
/>
<field
name=
"categ_id"
optional=
"hide"
/>
<field
name=
"categ_id"
optional=
"hide"
/>
<field
name=
"product_uom_qty"
sum=
"Total"
/>
<field
name=
"product_uom_qty"
sum=
"Total"
optional=
"show"
/>
<field
name=
"price_unit"
optional=
"hide"
/>
<field
name=
"price_unit"
optional=
"hide"
/>
<field
name=
"price_total"
sum=
"Total"
optional=
"hide"
/>
<field
name=
"price_total"
sum=
"Total"
optional=
"hide"
/>
<field
name=
"plants_qty"
sum=
"Nb de Plants"
optional=
"show"
/>
<field
name=
"intervention_length"
sum=
"Longeur haie"
optional=
"show"
/>
<field
name=
"surface"
sum=
"Surface"
optional=
"show"
/>
</tree>
</tree>
</field>
</field>
</record>
</record>
...
@@ -78,6 +85,12 @@
...
@@ -78,6 +85,12 @@
domain=
"[]"
domain=
"[]"
context=
"{'group_by':'product_id'}"
context=
"{'group_by':'product_id'}"
/>
/>
<filter
name=
"group_by_product_categ_id"
string=
"Catégorie d'Article"
domain=
"[]"
context=
"{'group_by':'categ_id'}"
/>
<filter
<filter
name=
"group_by_intervention"
name=
"group_by_intervention"
string=
"Intervention"
string=
"Intervention"
...
@@ -122,7 +135,9 @@
...
@@ -122,7 +135,9 @@
<field
name=
"res_model"
>
sale.intervention.stock
</field>
<field
name=
"res_model"
>
sale.intervention.stock
</field>
<field
name=
"view_mode"
>
tree,pivot,graph
</field>
<field
name=
"view_mode"
>
tree,pivot,graph
</field>
<field
name=
"search_view_id"
ref=
"sale_intervention_stock_search"
/>
<field
name=
"search_view_id"
ref=
"sale_intervention_stock_search"
/>
<field
name=
"context"
>
{"search_default_group_by_partner": True}
</field>
<field
name=
"context"
>
{"search_default_group_by_partner": True, "search_default_group_by_project": True}
</field>
<field
name=
"help"
type=
"html"
>
<field
name=
"help"
type=
"html"
>
<p
class=
"o_view_nocontent_empty_folder"
>
<p
class=
"o_view_nocontent_empty_folder"
>
Aucun article à déstocker trouvé. Créez un nouveau projet depuis un devis
Aucun article à déstocker trouvé. Créez un nouveau projet depuis un devis
...
...
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