Skip to content

Commit

Permalink
Merge pull request #139 from savoirfairelinux/8.0_fix_contract_hourly…
Browse files Browse the repository at this point in the history
…_rate

[FIX] contract_hourly_rate
  • Loading branch information
tafaRU committed Oct 15, 2015
2 parents ff502c1 + 917f2eb commit 38643d4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
13 changes: 12 additions & 1 deletion hr_contract_hourly_rate/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,14 @@ msgstr "Taux horaire"

#. module: hr_contract_hourly_rate
#: selection:hr.contract,salary_computation_method:0
#: field:hr.contract.job,hourly_rate:0
msgid "Hourly Wage"
msgstr ""
msgstr "Taux horaire"

#. module: hr_contract_hourly_rate
#: model:ir.model,name:hr_contract_hourly_rate.model_hr_hourly_rate
msgid "Hourly rate"
msgstr "Taux horaire"

#. module: hr_contract_hourly_rate
#: model:ir.model,name:hr_contract_hourly_rate.model_hr_hourly_rate
Expand Down Expand Up @@ -150,3 +156,8 @@ msgstr "Date de début"
msgid ""
"Whether to use the annual wage or an hourly rate for computation of payslip."
msgstr "La méthode utilisée pour calculer le salaire d'un employé. Soit par taux horaire ou par salaire annuel."

#. module: hr_contract_hourly_rate
#: selection:hr.contract,salary_computation_method:0
msgid "Monthly Wage"
msgstr "Salaire mensuel"
6 changes: 6 additions & 0 deletions hr_contract_hourly_rate/i18n/hr_contract_hourly_rate.pot
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,15 @@ msgstr ""

#. module: hr_contract_hourly_rate
#: selection:hr.contract,salary_computation_method:0
#: field:hr.contract.job,hourly_rate:0
msgid "Hourly Rate"
msgstr ""

#. module: hr_contract_hourly_rate
#: selection:hr.contract,salary_computation_method:0
msgid "Monthly Wage"
msgstr ""

#. module: hr_contract_hourly_rate
#: field:hr.contract.job,hourly_rate_class_id:0
#: view:hr.hourly.rate.class:hr_contract_hourly_rate.view_hr_hourly_rate_class_filter
Expand Down
5 changes: 3 additions & 2 deletions hr_contract_hourly_rate/models/hr_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ class hr_contract(models.Model):

salary_computation_method = fields.Selection(
[('yearly', 'Annual Wage'),
('monthly', 'Annual Wage'),
('monthly', 'Monthly Wage'),
('hourly', 'Hourly Wage')],
string='Salary Computation Method',
help="Whether to use the annual wage or an hourly rate "
"for computation of payslip.",
required=True, default='monthly')
required=True,
default='monthly')

@api.multi
def get_job_hourly_rate(self, date_from, date_to,
Expand Down
5 changes: 5 additions & 0 deletions hr_contract_multi_jobs/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ msgstr "Poste Principal"
msgid "Relational object between contract and job"
msgstr "Relation entre un contrat et un poste"

#. module: hr_contract_multi_jobs
#: code:addons/hr_contract_multi_jobs/models/hr_contract.py:0
#, python-format
msgid "You must assign one and only one job position as main job position."
msgstr "Vous devez indiquer un poste comme étant le poste principal."
5 changes: 5 additions & 0 deletions hr_contract_multi_jobs/i18n/hr_contract_multi_jobs.pot
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ msgstr ""
msgid "Relational object between contract and job"
msgstr ""

#. module: hr_contract_multi_jobs
#: code:addons/hr_contract_multi_jobs/models/hr_contract.py:0
#, python-format
msgid "You must assign one and only one job position as main job position."
msgstr ""

0 comments on commit 38643d4

Please sign in to comment.