How overwrite default function of a field in odoo new api
问题 I have a field that call a function to get default value (in module project_forecast): def default_user_id(self): return self.env.user if ("default_user_id" not in self.env.context) else self.env.context["default_user_id"] user_id = fields.Many2one('res.users', string="User", required=True, default=default_user_id) I create another module to inherit it and change default value of field user_id but it's not working without any error in log, how can I resolve this ? def default_user_id(self):