When searching on memberships, we use domain clauses in the format 'partner.x = y' where partner is a many2one to res.partner. The object res.partner has strict security rules for public users and this search will return zero result if not done with SUPERUSER_ID. In addition, we need to access the list of products (membership_ids) in the domain to be sure we will retrieve only published membership (otherwise it would crash in the sort below). |
||
---|---|---|
.. | ||
controllers | ||
demo | ||
models | ||
security | ||
views | ||
__init__.py | ||
__openerp__.py |