I habe a problem to change an existing boolen field to an computed boolean field:
class manatec_project_task_type(models.Model):
_inherit = 'project.task.type'
@api.one
def _get_value(self):
print 'inside'
self.value = True
value = fields.Boolean(compute='_get_value')
The field is visible on the form view but the method _get_value ist never called.
Regards
i'm changed value = fields.Boolean(compute='_get_value_get_value') to value = fields.Boolean(compute='_get_value'). This is how my code looks. It was just an copy and paste mistake.