Answers for "required depend filed odoo"

0

required depend filed odoo

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
Posted by: Guest on November-27-2020

Python Answers by Framework

Browse Popular Code Answers by Language