original_docstring: Call with new context to extend domain in search method.
          Also, update company_id according to website value
docstring: Call with new context to extend domain in search method.
  Also, update company_id according to website value
docstring_tokens: Call with new context to extend domain in search method . Also update company_id according to website value
code: def _get_partner_pricelist(self, partner_id, company_id=None):
          """Call with new context to extend domain in search method.
          Also, update company_id according to website value"""
          website_id = self.env.context.get("website_id")
          if website_id:
              self = self.with_context(search_pricelist_website=website_id)
              company_id = self.env["website"].sudo().browse(website_id).company_id.id
          return super(Pricelist, self)._get_partner_pricelist(
              partner_id, company_id=company_id
          )
code_tokens: def _get_partner_pricelist ( self , partner_id , company_id = None ) : website_id = self . env . context . get ( "website_id" ) if website_id : self = self . with_context ( search_pricelist_website = website_id ) company_id = self . env [ "website" ] . sudo ( ) . browse ( website_id ) . company_id . id return super ( Pricelist , self ) . _get_partner_pricelist ( partner_id , company_id = company_id )
short_docstring: Call with new context to extend domain in search method.
short_docstring_tokens: Call with new context to extend domain in search method .
comment: """Call with new context to extend domain in search method.
          Also, update company_id according to website value"""