requis dépend de l'Odoo déposé
class cars(models.Model): _name = 'cars'_inherit = “product.template”factor = fields.Float(string="", required=False, )suggeted_price = fields.Float(string="", required=False, compute=car_price )@[email protected]('factor')def car_price(self):if self.factor:self.suggeted_price = self.factor * self.standard_price return
Yucky Yak