(self, custom_url, op='=')
return res.with_context(website_id=website.id).filtered(lambda x: not x.website_id or x.website_id == website)
See web_editor.Assets._get_custom_attachment
        Extend to only return the attachments related to the current website.
See web_editor.Assets._get_custom_attachment
        Extend to only return the attachments related to the current website.
See web_editor . Assets . _get_custom_attachment Extend to only return the attachments related to the current website .
def _get_custom_attachment(self, custom_url, op='='):
        """
        See web_editor.Assets._get_custom_attachment
        Extend to only return the attachments related to the current website.
        """
        website = self.env['website'].get_current_website()
        res = super(Assets, self)._get_custom_attachment(custom_url, op=op)
        return res.with_context(website_id=website.id).filtered(lambda x: not x.website_id or x.website_id == website)
def _get_custom_attachment ( self , custom_url , op = '=' ) : website = self . env [ 'website' ] . get_current_website ( ) res = super ( Assets , self ) . _get_custom_attachment ( custom_url , op = op ) return res . with_context ( website_id = website . id ) . filtered ( lambda x : not x . website_id or x . website_id == website )