Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
37053a40
Commit
37053a40
authored
9 years ago
by
Antony Lesuisse
Browse files
Options
Downloads
Patches
Plain Diff
[REM] hr: unused and deprecated res.config
parent
3ec52a3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/hr/__init__.py
+0
-1
0 additions, 1 deletion
addons/hr/__init__.py
addons/hr/res_config.py
+0
-55
0 additions, 55 deletions
addons/hr/res_config.py
with
0 additions
and
56 deletions
addons/hr/__init__.py
+
0
−
1
View file @
37053a40
...
...
@@ -3,5 +3,4 @@
import
hr
import
res_config
import
res_users
This diff is collapsed.
Click to expand it.
addons/hr/res_config.py
deleted
100644 → 0
+
0
−
55
View file @
3ec52a3c
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from
openerp.osv
import
fields
,
osv
class
hr_config_settings
(
osv
.
osv_memory
):
_name
=
'
hr.config.settings
'
_inherit
=
'
res.config.settings
'
_columns
=
{
'
module_hr_timesheet_sheet
'
:
fields
.
boolean
(
'
Allow timesheets validation by managers
'
,
help
=
"""
This installs the module hr_timesheet_sheet.
"""
),
'
module_hr_attendance
'
:
fields
.
boolean
(
'
Install attendances feature
'
,
help
=
"""
This installs the module hr_attendance.
"""
),
'
module_hr_timesheet
'
:
fields
.
boolean
(
'
Manage timesheets
'
,
help
=
"""
This installs the module hr_timesheet.
"""
),
'
module_hr_holidays
'
:
fields
.
boolean
(
'
Manage holidays, leaves and allocation requests
'
,
help
=
"""
This installs the module hr_holidays.
"""
),
'
module_hr_expense
'
:
fields
.
boolean
(
'
Manage employees expenses
'
,
help
=
"""
This installs the module hr_expense.
"""
),
'
module_hr_recruitment
'
:
fields
.
boolean
(
'
Manage the recruitment process
'
,
help
=
"""
This installs the module hr_recruitment.
"""
),
'
module_hr_contract
'
:
fields
.
boolean
(
'
Record contracts per employee
'
,
help
=
"""
This installs the module hr_contract.
"""
),
'
module_hr_evaluation
'
:
fields
.
boolean
(
'
Organize employees periodic evaluation
'
,
help
=
"""
This installs the module hr_evaluation.
"""
),
'
module_hr_gamification
'
:
fields
.
boolean
(
'
Drive engagement with challenges and badges
'
,
help
=
"""
This installs the module hr_gamification.
"""
),
'
module_sale_contract
'
:
fields
.
boolean
(
'
Allow invoicing based on timesheets (the sale application will be installed)
'
,
help
=
"""
This installs the module sale_contract, which will install sales management too.
"""
),
'
module_hr_payroll
'
:
fields
.
boolean
(
'
Manage payroll
'
,
help
=
"""
This installs the module hr_payroll.
"""
),
'
module_website_hr_recruitment
'
:
fields
.
boolean
(
'
Publish jobs on your website
'
,
help
=
"""
This installs the module website_hr_recruitment
"""
),
'
group_hr_attendance
'
:
fields
.
boolean
(
'
Track attendances for all employees
'
,
implied_group
=
'
base.group_hr_attendance
'
,
help
=
"
Allocates attendance group to all users.
"
),
}
def
onchange_hr_timesheet
(
self
,
cr
,
uid
,
ids
,
timesheet
,
context
=
None
):
"""
module_hr_timesheet implies module_hr_attendance
"""
if
timesheet
:
return
{
'
value
'
:
{
'
module_hr_attendance
'
:
True
}}
return
{}
def
onchange_hr_attendance
(
self
,
cr
,
uid
,
ids
,
attendance
,
context
=
None
):
"""
module_hr_timesheet implies module_hr_attendance
"""
if
not
attendance
:
return
{
'
value
'
:
{
'
module_hr_timesheet
'
:
False
,
'
group_hr_attendance
'
:
False
}}
return
{}
def
onchange_group_hr_attendance
(
self
,
cr
,
uid
,
ids
,
hr_attendance
,
context
=
None
):
if
hr_attendance
:
return
{
'
value
'
:
{
'
module_hr_attendance
'
:
True
}}
return
{}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment