Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Discuss

Entity: mail.canned.response

Compute Method: _compute_is_editable

Inputs Method Outputs
creating = self.filtered(lambda c: not c.id)
updating = self - creating
editable = creating._filtered_access("create") + updating._filtered_access("write")
editable.is_editable = True
(self - editable).is_editable = False

Back to entity