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

Module: Lunch

Entity: lunch.product

Compute Method: _compute_is_favorite

Inputs Method Outputs
for product in self:
            product.is_favorite = self.env.user in product.favorite_user_ids

Back to entity