-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TA#72110 [16.0][MIG] hr_contract_wage_type (#80)
TA#72110 [16.0][MIG] hr_contract_wage_type --------- Co-authored-by: Lanto R. <124650562+lanto-razafindrabe@users.noreply.github.com> Co-authored-by: Majda EL MARIOULI <majdaelmariouli@gmail.com>
- Loading branch information
1 parent
51e9875
commit dbbdb8a
Showing
11 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HR Contract Wage Type | ||
===================== | ||
This module adds the `Wage Type` field on contracts. | ||
|
||
This field is used to distinguish between hourly, monthly and yearly wages. | ||
|
||
.. image:: static/description/contract_form.png | ||
|
||
Contributors | ||
------------ | ||
* Numigi (tm) and all its contributors (https://bit.ly/numigiens) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
"name": "HR Contract Wage Type", | ||
"version": "16.0.1.0.0", | ||
"author": "Numigi", | ||
"maintainer": "Numigi", | ||
"license": "LGPL-3", | ||
"category": "Human Resources", | ||
"summary": "Distinguish between hourly / monthly / yearly wages", | ||
"depends": [ | ||
"hr_contract", | ||
], | ||
"data": [ | ||
"views/hr_contract_view.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_contract_wage_type | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-21 14:19+0000\n" | ||
"PO-Revision-Date: 2025-01-21 14:19+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: hr_contract_wage_type | ||
#: model_terms:ir.ui.view,arch_db:hr_contract_wage_type.hr_contract_view_form | ||
msgid "<span>/</span>" | ||
msgstr "<span>/</span>" | ||
|
||
#. module: hr_contract_wage_type | ||
#: model:ir.model,name:hr_contract_wage_type.model_hr_contract | ||
msgid "Contract" | ||
msgstr "Contrat de l'employé" | ||
|
||
#. module: hr_contract_wage_type | ||
#: model:ir.model.fields.selection,name:hr_contract_wage_type.selection__hr_contract__wage_type__hour | ||
msgid "Hour" | ||
msgstr "Heure" | ||
|
||
#. module: hr_contract_wage_type | ||
#: model:ir.model.fields.selection,name:hr_contract_wage_type.selection__hr_contract__wage_type__month | ||
msgid "Month" | ||
msgstr "Mois" | ||
|
||
#. module: hr_contract_wage_type | ||
#: model:ir.model.fields,field_description:hr_contract_wage_type.field_hr_contract__wage_type | ||
msgid "Wage Type" | ||
msgstr "Type de salaire" | ||
|
||
#. module: hr_contract_wage_type | ||
#: model:ir.model.fields.selection,name:hr_contract_wage_type.selection__hr_contract__wage_type__year | ||
msgid "Year" | ||
msgstr "Année" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from . import hr_contract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens) | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class HrContract(models.Model): | ||
_inherit = "hr.contract" | ||
|
||
wage_type = fields.Selection( | ||
[ | ||
("hour", "Hour"), | ||
("month", "Month"), | ||
("year", "Year"), | ||
] | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<record id="hr_contract_view_form" model="ir.ui.view"> | ||
<field name="name">HR Contract: add wage type</field> | ||
<field name="model">hr.contract</field> | ||
<field name="inherit_id" ref="hr_contract.hr_contract_view_form" /> | ||
<field name="arch" type="xml"> | ||
<div name="wage" position="replace"> | ||
<div class="o_row" name="wage"> | ||
<field name="wage" nolabel="1" /> | ||
<span>/</span> | ||
<field name="wage_type" nolabel="1" required="1" /> | ||
</div> | ||
</div> | ||
</field> | ||
</record> | ||
|
||
</odoo> |