Skip to content
Extraits de code Groupes Projets
Valider 30a0543a rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[CLEAN] pre-commit

parent 5129789f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -17,13 +17,13 @@ class EventTraining(models.Model):
modalities = fields.Selection(
[("intra", "Intra"), ("inter", "Inter"), ("custom", "Sur-mesure")],
string="Modalités",
required=True
required=True,
)
public = fields.Char()
pre_requisite = fields.Char(string="Pré-requis")
duration = fields.Char(string="Durée")
other_infos = fields.Text(string="Autres informations")
price = fields.Monetary(string="Prix", currency_field='currency_id')
price = fields.Monetary(string="Prix", currency_field="currency_id")
certification = fields.Image()
attachment = fields.Binary(attachment=True)
training_type_ids = fields.Many2many(
......@@ -37,5 +37,5 @@ class EventTraining(models.Model):
comodel_name="res.company", required=True, default=lambda self: self.env.company
)
currency_id = fields.Many2one(
comodel_name='res.currency', related='company_id.currency_id', readonly=True
comodel_name="res.currency", related="company_id.currency_id", readonly=True
)
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter