hunk.code_window:     def on_change_user(self, cr, uid, ids, user_id, context=None):
           """ When changing the user, also set a team_id or restrict team id
               to the ones user_id is member of. """
           if user_id and context.get('team_id'):
               team = self.pool['crm.team'].browse(cr, uid, context['team_id'], context=context)
               if user_id in team.member_ids.ids:
                   return {}
           team_id = self.pool['crm.team']._get_default_team_id(cr, uid, context=context, user_id=user_id)
  
hunk.labels: keep keep keep add keep keep keep keep keep
hunk.after_edit:         if not context:
               context = {}
  
hunk.file_path: addons/crm/crm_lead.py
hunk.type: add
file: # Translation of Odoo Server.
  # This file contains the translation of the following modules:
  # * hr_contract
  # 
  # Translators:
  msgid ""
  msgstr ""
  "Project-Id-Version: Odoo 9.0\n"
  "Report-Msgid-Bugs-To: \n"
  "POT-Creation-Date: 2015-09-18 08:11+0000\n"
  "PO-Revision-Date: 2016-01-07 04:25+0000\n"
  "Last-Translator: Martin Trigaux\n"
  "Language-Team: Swedish (http://www.transifex.com/odoo/odoo-9/language/sv/)\n"
  "MIME-Version: 1.0\n"
  "Content-Type: text/plain; charset=UTF-8\n"
  "Content-Transfer-Encoding: \n"
  "Language: sv\n"
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_needaction
  msgid "Action Needed"
  msgstr "Åtgärd krävs"
  
  #. module: hr_contract
  #: model:ir.model,name:hr_contract.model_base_action_rule
  msgid "Action Rules"
  msgstr "Åtgärdsregler"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_advantages
  msgid "Advantages"
  msgstr "Förmåner"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Advantages..."
  msgstr "Fördelar..."
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_wage
  msgid "Basic Salary of the employee"
  msgstr "Grundlön för anställda"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_vehicle
  msgid "Company Vehicle"
  msgstr "Företagsbil"
  
  #. module: hr_contract
  #: model:ir.model,name:hr_contract.model_hr_contract
  msgid "Contract"
  msgstr "Avtal"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_name
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Contract Reference"
  msgstr "Avtalets referensnummer"
  
  #. module: hr_contract
  #: model:ir.model,name:hr_contract.model_hr_contract_type
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_id_5307
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_name
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_type_view_form
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_type_view_search
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_type_view_tree
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Contract Type"
  msgstr "Avtalstyp"
  
  #. module: hr_contract
  #: model:ir.actions.act_window,name:hr_contract.action_hr_contract_type
  #: model:ir.ui.menu,name:hr_contract.hr_menu_contract_type
  msgid "Contract Types"
  msgstr "Avtalstyper"
  
  #. module: hr_contract
  #: model:mail.message.subtype,description:hr_contract.mt_contract_pending
  #: model:mail.message.subtype,description:hr_contract.mt_department_contract_pending
  msgid "Contract about to expire"
  msgstr ""
  
  #. module: hr_contract
  #: model:mail.message.subtype,description:hr_contract.mt_contract_close
  msgid "Contract expired"
  msgstr ""
  
  #. module: hr_contract
  #: model:mail.message.subtype,name:hr_contract.mt_department_contract_pending
  msgid "Contract to Renew"
  msgstr "Avtal att förnya"
  
  #. module: hr_contract
  #: model:ir.actions.act_window,name:hr_contract.act_hr_employee_2_hr_contract
  #: model:ir.actions.act_window,name:hr_contract.action_hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_contract_ids
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_contracts_count
  #: model:ir.ui.menu,name:hr_contract.hr_menu_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_tree
  #: model:ir.ui.view,arch_db:hr_contract.hr_hr_employee_view_form2
  msgid "Contracts"
  msgstr "Avtal"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_create_uid
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_create_uid
  msgid "Created by"
  msgstr "Skapad av"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_create_date
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_create_date
  msgid "Created on"
  msgstr "Skapad den"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_contract_id
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  #: model:ir.ui.view,arch_db:hr_contract.hr_hr_employee_view_form2
  msgid "Current Contract"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Current Employee"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_message_last_post
  msgid "Date of the last message posted on the record."
  msgstr "Datum för senast publicerade meddelandet i loggen."
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_department_id
  msgid "Department"
  msgstr "Avdelning"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_display_name
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_display_name
  msgid "Display Name"
  msgstr "Visa namn"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Duration"
  msgstr "Varaktighet"
  
  #. module: hr_contract
  #: model:ir.model,name:hr_contract.model_hr_employee
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_employee_id
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Employee"
  msgstr "Anställd"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_date_end
  msgid "End Date"
  msgstr "Slutdatum"
  
  #. module: hr_contract
  #: constraint:hr.contract:0
  msgid "Error! Contract start-date must be less than contract end-date."
  msgstr "Fel! Avtalets startdatum måste vara mindre än dess slutdatum."
  
  #. module: hr_contract
  #: selection:hr.contract,state:0
  #: model:mail.message.subtype,name:hr_contract.mt_contract_close
  msgid "Expired"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_follower_ids
  msgid "Followers"
  msgstr "Följare"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_channel_ids
  msgid "Followers (Channels)"
  msgstr "Följare (Kanaler)"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_partner_ids
  msgid "Followers (Partners)"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_type_sequence
  msgid "Gives the sequence when displaying a list of Contract."
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Group By"
  msgstr "Gruppera efter"
  
  #. module: hr_contract
  #: model:ir.actions.server,name:hr_contract.contract_set_as_close
  msgid "HR Contract: set as close"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.actions.server,name:hr_contract.contract_set_as_pending
  msgid "HR Contract: set as pending"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_vehicle_distance
  msgid "Home-Work Dist."
  msgstr "Hem-arbete distans"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_id
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_id
  msgid "ID"
  msgstr "ID"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_message_unread
  msgid "If checked new messages require your attention."
  msgstr "Om ikryssad nya meddelanden som kräver din uppmärksamhet"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_message_needaction
  msgid "If checked, new messages require your attention."
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Important Messages"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_employee_vehicle_distance
  msgid "In kilometers"
  msgstr "I kilometer"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Information"
  msgstr "Information"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_is_follower
  msgid "Is Follower"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_manager
  msgid "Is a Manager"
  msgstr "Är en chef"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Job"
  msgstr "Jobb"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_job_id
  msgid "Job Title"
  msgstr "Befattning"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_last_post
  msgid "Last Message Date"
  msgstr "Senast meddelandedatum"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract___last_update
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type___last_update
  msgid "Last Modified on"
  msgstr "Senast redigerad"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_write_uid
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_write_uid
  msgid "Last Updated by"
  msgstr "Senast uppdaterad av"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_write_date
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_write_date
  msgid "Last Updated on"
  msgstr "Senast uppdaterad"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_employee_contract_id
  msgid "Latest contract of the employee"
  msgstr "Senaste avtal för den anställde"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_hr_employee_view_form2
  msgid "Medical Exam"
  msgstr "Medicinsk undersökning"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_medic_exam
  msgid "Medical Examination Date"
  msgstr "Friskintygsdatum"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_ids
  msgid "Messages"
  msgstr "Meddelanden"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_message_ids
  msgid "Messages and communication history"
  msgstr "Meddelande- och kommunikationshistorik"
  
  #. module: hr_contract
  #: selection:hr.contract,state:0
  msgid "New"
  msgstr "Ny"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_notes
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Notes"
  msgstr "Anteckningar"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_needaction_counter
  msgid "Number of Actions"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_children
  msgid "Number of Children"
  msgstr "Antal barn"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_message_needaction_counter
  msgid "Number of messages which requires an action"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_message_unread_counter
  msgid "Number of unread messages"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.filters,name:hr_contract.contract_open
  msgid "Open Contracts"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_employee_place_of_birth
  msgid "Place of Birth"
  msgstr "Födelseort"
  
  #. module: hr_contract
  #: selection:hr.contract,state:0
  msgid "Running"
  msgstr "Aktiva"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Salary and Advantages"
  msgstr "Lön och förmåner"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  msgid "Search Contract"
  msgstr "Sök avtal"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_type_view_search
  msgid "Search Contract Type"
  msgstr "Sök avtalstyp"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_type_sequence
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_type_view_search
  msgid "Sequence"
  msgstr "Nummerserie"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_date_start
  msgid "Start Date"
  msgstr "Startdatum"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_state
  msgid "Status"
  msgstr "Status"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_state
  msgid "Status of the contract"
  msgstr ""
  
  #. module: hr_contract
  #: selection:hr.contract,state:0
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_search
  #: model:mail.message.subtype,name:hr_contract.mt_contract_pending
  msgid "To Renew"
  msgstr "Att förnya"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_trial_date_end
  msgid "Trial End Date"
  msgstr "Provanställningens slut"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Trial Period Duration"
  msgstr "Provanställningstid"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_trial_date_start
  msgid "Trial Start Date"
  msgstr "Provanställningen börjar"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_unread
  msgid "Unread Messages"
  msgstr "Olästa meddelanden"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_message_unread_counter
  msgid "Unread Messages Counter"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_base_action_rule_trg_date_resource_field_id
  msgid "Use employee work schedule"
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_base_action_rule_trg_date_resource_field_id
  msgid "Use the user's working schedule."
  msgstr ""
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_visa_expire
  msgid "Visa Expire Date"
  msgstr "Visa utgångsdatum"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_visa_no
  msgid "Visa No"
  msgstr "Visa nummer"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_wage
  msgid "Wage"
  msgstr "Lön"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_website_message_ids
  msgid "Website Messages"
  msgstr "Webbplatsmeddelanden"
  
  #. module: hr_contract
  #: model:ir.model.fields,help:hr_contract.field_hr_contract_website_message_ids
  msgid "Website communication history"
  msgstr "Webbplatsens kommunikationshistorik"
  
  #. module: hr_contract
  #: model:ir.ui.view,arch_db:hr_contract.hr_contract_view_form
  msgid "Work Permit"
  msgstr "Arbetstillstånd"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_permit_no
  msgid "Work Permit No"
  msgstr "Arbetstillstånd nummer"
  
  #. module: hr_contract
  #: model:ir.model.fields,field_description:hr_contract.field_hr_contract_working_hours
  msgid "Working Schedule"
  msgstr "Arbetsschema"
  