Skip to content
Extraits de code Groupes Projets

[ADD] add some fields for import

Fusionnées
Julien - Le Filamentrequested to merge
14.0-new-fields into 14.0-ahp12
4 open threads
8 files
+ 112
16
Comparer les modifications
  • Côte à côte
  • En ligne

Fichiers

+ 12
7
@@ -439,13 +439,10 @@ class SaleIntervention(models.Model):
inverse_name="sale_intervention_id",
string="Articles à déstocker",
)
location = fields.Selection(
[
("in_field", "Plein champ"),
("near_facility", "Bord de bâtiment"),
("border", "Bordure"),
],
string="Implantation",
location_id = fields.Many2one(
"sale.intervention.location",
"Implantation",
ondelete="restrict",
)
# ------------------------------------------------------
@@ -1049,3 +1046,11 @@ class SaleIntervention(models.Model):
res = super().unlink()
project_id.update_order_lines()
return res
class SaleInterventionLocation(models.Model):
_name = "sale.intervention.location"
_description = "Implantation"
_order = "name"
name = fields.Char(string="Implantation", required=True)
Chargement en cours