
from openerp import http
from openerp.http import request

from openerp.addons.website_medical.controllers.main import (
    WebsiteMedical
)


class WebsiteMedical(WebsiteMedical):

    def _inject_medical_detail_vals(self, patient_id=0, **kwargs):
        vals = super(WebsiteMedical, self)._inject_medical_detail_vals(
            patient_id,
            **kwargs
        )
        species_ids = request.env['medical.patient.species'].search([])
        vals.update({
            'species': species_ids,
        })
        return vals


from openerp.http import request

from openerp.addons.website_medical.controllers.main import (
    WebsiteMedical
)


class WebsiteMedical(WebsiteMedical):

    def _inject_medical_detail_vals(self, patient_id=0, **kwargs):
        vals = super(WebsiteMedical, self)._inject_medical_detail_vals(
            patient_id,
            **kwargs
        )
        species_ids = request.env['medical.patient.species'].search([])
        vals.update({
            'species': species_ids,
        })
        return vals

Fix lint * Remove stray import to fix lint
[FIX] website_medical_patient_species: Fix lint
* Remove stray import to fix lint

  
- from openerp import http
  from openerp.http import request
  
  from openerp.addons.website_medical.controllers.main import (
      WebsiteMedical
  )
  
  
  class WebsiteMedical(WebsiteMedical):
  
      def _inject_medical_detail_vals(self, patient_id=0, **kwargs):
          vals = super(WebsiteMedical, self)._inject_medical_detail_vals(
              patient_id,
              **kwargs
          )
          species_ids = request.env['medical.patient.species'].search([])
          vals.update({
              'species': species_ids,
          })
          return vals
  
Fix lint * Remove stray import to fix lint
## Code Before:

from openerp import http
from openerp.http import request

from openerp.addons.website_medical.controllers.main import (
    WebsiteMedical
)


class WebsiteMedical(WebsiteMedical):

    def _inject_medical_detail_vals(self, patient_id=0, **kwargs):
        vals = super(WebsiteMedical, self)._inject_medical_detail_vals(
            patient_id,
            **kwargs
        )
        species_ids = request.env['medical.patient.species'].search([])
        vals.update({
            'species': species_ids,
        })
        return vals

## Instruction:
Fix lint * Remove stray import to fix lint
## Code After:

from openerp.http import request

from openerp.addons.website_medical.controllers.main import (
    WebsiteMedical
)


class WebsiteMedical(WebsiteMedical):

    def _inject_medical_detail_vals(self, patient_id=0, **kwargs):
        vals = super(WebsiteMedical, self)._inject_medical_detail_vals(
            patient_id,
            **kwargs
        )
        species_ids = request.env['medical.patient.species'].search([])
        vals.update({
            'species': species_ids,
        })
        return vals
