parameters: (self, custom_url, op='=')
return_statement: return res.with_context(website_id=website.id).filtered(lambda x: not x.website_id or x.website_id == website)
docstring: See web_editor.Assets._get_custom_attachment
          Extend to only return the attachments related to the current website.
docstring_summary: See web_editor.Assets._get_custom_attachment
          Extend to only return the attachments related to the current website.
docstring_tokens: See web_editor . Assets . _get_custom_attachment Extend to only return the attachments related to the current website .
function: 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)
function_tokens: 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 )