Giter Club home page Giter Club logo

hr's People

Contributors

adrienpeiffer avatar albariera avatar alexey-pelykh avatar anandkansagra avatar andreagidaltig avatar astirpe avatar badbole avatar britoederr avatar douglascstd avatar espo-tony avatar feketemihai avatar fernandoromera avatar fshahy avatar hugho-ad avatar ivorra78 avatar luistorresm avatar marylla avatar miquelrforgeflow avatar mvrodriguez avatar mymage avatar newtratip avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar peluko00 avatar rafamarpe avatar saran440 avatar tarteo avatar victoralmau avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hr's Issues

hr_employee_benefit Module Bug when compute benefit button clicked

There seems to be a bug with hr_employee_benefit module, After adding the benefit categories and rate, when we click on Benefit compute button under payslips, its returning this error:

OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/http.py", line 204, in dispatch
response["result"] = method(self, _self.params)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 1137, in call_button
action = self._call_kw(req, model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 1125, in _call_kw
return getattr(req.session.model(model), method)(args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/python2.7/dist-packages/openerp/netsvc.py", line 306, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/python2.7/dist-packages/openerp/service/web_services.py", line 632, in dispatch
res = fn(db, uid, params)
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, *kw or {})
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, args, *kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, args, *kw)
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, args, *kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/hr_employee_benefit/models/hr_payslip.py", line 78, in button_compute_benefits
payslip.compute_benefits(payslip)
File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 378, in function_proxy
return attr(self._cr, self._uid, [self._id], args, *kwargs)
TypeError: compute_benefits() got multiple values for keyword argument 'context'

Can you help me to fix this?

public holidays year

v10.0

Module:
hr_public_holidays

Any new public holidays.

Current view:
image

Expected behavior:
Year format without spaces and comma:
2017

Inconsistencies in leave duration calculation between standard Odoo and hr_holidays_compute_days

  • The standard Odoo module uses the calendar_id field of the resource to check the leave request boundaries and compute the number of days, while the hr_holidays_compute_days module uses the calendar_id of the employee's contract
  • The standard Odoo module can compute the duration as a floating point, e.g. if my working time for a day is 09:00 - 13:00 and 14:00 - 18:00, and I take a leave that day from 09:00 to 13:30, Odoo correctly returns 0.5 days, but If I install the module only integers days are computed, and it becomes 1 day.

In my opinion, to keep consistency and to not lose functionality, the hr_holidays_compute_days should also use the calendar_id field of the resource and allow for non integer leave duration.

7.0 hr_holidays_extension: missing employee_id arg in is_public_holiday()

In hr_holidays_extension, in the method onchange_bynumber() on line 198, there is:

public_holiday = holiday_obj.is_public_holiday(cr, uid, next_dt.date(), context=context)

But, in hr_public_holidays, in is_public_holiday() line 63, the proto is:

def is_public_holiday(self, cr, uid, dt, employee_id=None, context=None)

and, if employee_id = None, then it will only search for hr.holidays.public where country_id = False. This is a bug :-(

Audit modules in hr

Some of the code in hr is of poor quality and their uses are questionable

  • Very long functions
  • Multiple classes in same script
  • Very long lists of columns added to models
  • Unclear usage
  • Lack of tests

Suggested Action Plan

  1. Fix style errors with #17
  2. Fix build errors
  3. Do the refactoring with the port to v8, keeping the old API - Audit and review
  4. Backport enhancements without v8 specific changes to v7
  5. Port v8 to new API

Modules

  • hr_accrual
  • hr_contract_init
  • hr_contract_reference
  • hr_contract_state
  • hr_department_sequence
  • hr_emergency_contact
  • hr_employee_education
  • hr_employee_firstname
  • hr_employee_id
  • hr_employee_legacy_id
  • hr_employee_phone_extension
  • hr_employee_seniority
  • hr_employee_state
  • hr_experience
  • hr_family
  • hr_holidays_extension
  • hr_infraction
  • hr_job_categories
  • hr_job_hierarchy
  • hr_labour_recruitment
  • hr_labour_union
  • hr_language
  • hr_payroll_extension
  • hr_payroll_period
  • hr_payroll_register
  • hr_payroll_register_report
  • hr_payslip_amendment
  • hr_policy_absence
  • hr_policy_accrual
  • hr_policy_group
  • hr_policy_ot
  • hr_policy_presence
  • hr_public_holidays
  • hr_report_manpower
  • hr_report_payroll_attendance_summary
  • hr_report_payroll_net
  • hr_report_turnover
  • hr_resume
  • hr_schedule
  • hr_security
  • hr_simplify
  • hr_skill
  • hr_transfer
  • hr_wage_increment
  • hr_webcam

[hr_worked_days_from_timesheet] Compatibility with existing working schedule

Hello,

I want to use the employee's working schedule as a tool to validate that the employee complete their timesheets in line with their contract schedule.

But I don't want the working schedule to automatically fulfill the payslip. Instead, I want to fulfill the payslip based on the timesheet hours.

I am trying to use module "hr_worked_days_from_timesheet" together with contracts that have an existing working schedule, but Odoo will then import both the worked hours from timesheets AND the worked hours as per the contract's working schedule.

The reason to import hours from timesheets is that different analytic accounts derive different salary categories, and different accounts. For example, time reported on an overhead analytic account will drive the allocation to an expense GL account, whereas time reported on a project-related analytic account will drive the allocation of the salary to a COGS GL Account.

My proposal would be that module "hr_worked_days_from_timesheet" disables the computations of get_worked_day_lines on hr.payslip, so that the only worked hours derived from the payslip will come from the timesheet.

What do you think about it?

List of deprecated modules and removal from 8.0 and 9.0

Hello @OCA/human-resources-maintainers ,

beside those 2 module already addresed in the issue roadmap of migration to 8.0 #86 i wanted to have your oppinion about other modules that i think should be deprecated and removed from the 8.0 and 9.0 branches and marked in 7.0 desciption as DEPRECATED.

Please review:

  • hr_accrual - Can be configured from hr_employee_benefit
  • hr_experience_analytic - Add only the analytic account field in hr_experience
  • hr_labour_recruitment - It's doing the same things as hr_recruitment base addons
  • addons already removed as aeroo dependants: #63
  • hr_payroll_extension Should be incorporated in modules regarding policies.

It will be more easy to view which modules are maintained.

Migration to version 9.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0

Modules to migrate

  • hr_accrual
  • hr_contract_hourly_rate
  • hr_contract_init
  • hr_contract_multi_jobs
  • hr_contract_reference - By @mikevhe18 - #303
  • hr_contract_state
  • hr_department_sequence - Not needed now (https://github.com/odoo/odoo/blob/9.0/addons/hr/hr.py#L271)
  • hr_emergency_contact - @mikevhe18 - #296
  • hr_employee_benefit
  • hr_employee_data_from_work_address
  • hr_employee_education
  • hr_employee_firstname - By @zakiuu - #254
  • hr_employee_gravatar
  • hr_employee_id
  • hr_employee_legacy_id - Suggested by @feketemihai to merge in a module hr_employee_id
  • hr_employee_phone_extension
  • hr_employee_reference - By @mikevhe18 - #301
  • hr_employee_seniority
  • hr_employee_state
  • hr_expense_account_period - To be removed as now there are no periods.
  • hr_expense_analytic_default
  • hr_expense_analytic_plans > hr_expense_analytic_distribution - By @cubells - #337
  • hr_expense_invoice
  • hr_expense_sequence
  • hr_experience
  • hr_experience_analytic
  • hr_family - By @damdam-s - #268
  • hr_holidays_compute_days - By @rami-wafaie - #264 - By @damdam-s - #270
  • hr_holidays_legal_leave #267 @gurneyalex
  • hr_holidays_extension
  • hr_infraction
  • hr_job_categories
  • hr_job_hierarchy
  • hr_labour_recruitment
  • hr_labour_union
  • hr_language
  • hr_payroll_extension
  • hr_payroll_period
  • hr_payroll_register
  • hr_payroll_register_report
  • hr_payslip_amendment
  • hr_payslip_ytd_amount
  • hr_policy_absence
  • hr_policy_accrual
  • hr_policy_group
  • hr_policy_ot
  • hr_policy_presence
  • hr_public_holidays - By @rami-wafaie - #263
  • hr_report_manpower
  • hr_report_payroll_attendance_summary
  • hr_report_payroll_net
  • hr_report_turnover
  • hr_resume
  • hr_salary_rule_reference
  • hr_salary_rule_variable
  • hr_schedule
  • hr_security - It seems to work directly from 8.0 (source: #326)
  • hr_simplify
  • hr_skill - By @nicomacr - #299
  • hr_transfer
  • hr_wage_increment
  • hr_webcam
  • hr_worked_days_activity
  • hr_worked_days_from_timesheet - By @lreficent - #329
  • hr_worked_days_hourly_rate - By @kossovo - #170

[ROADMAP] Add audit rules

Purpose

Add audit rules on master data, automatically installed as long as the audit module is installed.
Audit logs for master data is a common requirement for company internal controls.

Migration to version 11.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

Modules to migrate

Purpose of struct_id on hr.payslip being editable

I fail to see the reason why struct_id field on hr.payslip is editable... changing it definitely has no effect on the rules being computed as the structures are pulled directly from the contract.

I think best case would be for the slip to be computed from the struct_id on the slip as this gives the user the flexibility to override the default struct on the contract... if not it should be made readonly.

I wanted to my thoughts and understand want others think about this

[8.0] hr_webcam not working

When I try to get a picture for an employee it won't detect any webcam. It only happens with chrome. I tried the webcam at other sites like onlinemictest.com and it works perfectly...

I tried this with an Odoo 8 and Chrome 60.0.

public holidays doesnt work

i'm currently used this module for generate the holidays in my country, but doesnt work becouse the calculate its wrong, must be 3 days and no 4 days if i have activate the public holiday.
i tried removing work schedules to see if that was the problem But no change was seen
image
and this how i configurate the holiday
image
I hope you can help me please
Thanks!

ensure_one() error op benefit_rate

We have installed this module but do get an error after applying a benefit rule when opening a contract or opening employee benefit rates.

error:

return new_api(self, _args, *_kwargs)
File "/opt/odoo/custom/community_addons/hr_employee_benefit/models/hr_employee_benefit_rate.py", line 110, in get_amount
self.ensure_one()
File "/opt/odoo/odoo-server/openerp/models.py", line 5303, in ensure_one
raise except_orm("ValueError", "Expected singleton: %s" % self)
except_orm: ('ValueError', 'Expected singleton: hr.employee.benefit.rate(1, 2)')

What is the best way to fix this?

Migration to version 8

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-8

Modules to migrate

Modules used for payroll

In order of dependencies

  • hr_period by @tarzan0820 in #145
  • hr_public_holidays by @grzekru in #85 / #209
  • hr_salary_rule_reference by @dufresnedavid in #137
  • hr_employee_exemption by @Zwygart in #121 @dufresnedavid in #165
  • hr_worked_days_hourly_rate by @coleste in #122 @acysos in #188
  • hr_employee_benefit by @dufresnedavid in #137
  • hr_worked_days_from_timesheet by @acysos in #189
  • hr_employee_benefit_exemption by @vincentcoll
  • hr_employee_benefit_on_job by @elemire
  • hr_employee_benefit_percent
  • hr_leave_accruals
  • hr_payroll_analysis by @tarzan0820 in #150
  • hr_payroll_register
  • hr_payslip_amendment by @tarzan0820 in #141
  • hr_payslip_ytd_amount
  • hr_salary_rule_variable
  • hr_worked_days_activity_from_timesheet
  • hr_activity_on_timesheet

Modules to be deprecated starting from 8.0

Migration to version 10.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-10.0

Modules to migrate

  • hr_contract_default_trial_length
  • hr_contract_hourly_rate
  • hr_contract_init
  • hr_contract_multi_jobs
  • hr_contract_reference - By @leemannd - #316
  • hr_contract_state
  • hr_department_sequence
  • hr_emergency_contact - By @leemannd - #314
  • hr_employee_age - By @Yopli2k - #293
  • hr_employee_benefit
  • hr_employee_birth_date - Even that the module is already ported, the field is already present in Odoo as a date (https://github.com/odoo/odoo/blob/10.0/addons/hr/models/hr.py#L113)
  • hr_employee_data_from_work_address
  • hr_employee_firstname - @espo-tony - #276
  • hr_employee_gravatar
  • hr_employee_id - By @astirpe - #272
  • hr_employee_legacy_id
  • hr_employee_phone_extension - By @leemannd - #313
  • hr_employee_reference
  • hr_employee_seniority
  • hr_expense_account_period - See #399
  • hr_expense_analytic_default
  • hr_expense_analytic_plans > hr_expense_analytic_distribution - By @cubells - #388
  • hr_expense_invoice - By @cubells - #367
  • hr_expense_move_date - DEPRECATED - see #393
  • hr_expense_sequence
  • hr_experience - By @jlaloux - #306
  • hr_family
  • hr_holidays_leave_auto_approve - By @espo-tony - #271
  • hr_holidays_compute_days - By @yelizariev - #261
  • hr_holidays_legal_leave - By @yelizariev - #262
  • hr_infraction
  • hr_job_categories
  • hr_job_hierarchy
  • hr_labour_union
  • hr_language - By @acsonefho - #380
  • hr_payroll_register
  • hr_payslip_amendment
  • hr_payslip_move_date
  • hr_payslip_ytd_amount - By @bassn - #278
  • hr_policy_absence
  • hr_policy_accrual
  • hr_policy_group
  • hr_policy_ot
  • hr_policy_presence
  • hr_public_holidays - By @yelizariev - #261
  • hr_recruitment_partner
  • hr_resume
  • hr_salary_rule_reference
  • hr_salary_rule_variable
  • hr_schedule
  • hr_security
  • hr_skill - By @jlaloux - #300 By @leemannd - #378
  • hr_transfer
  • hr_wage_increment
  • hr_webcam
  • hr_worked_days_activity
  • hr_worked_days_from_timesheet
  • hr_worked_days_hourly_rate

TODO

  • Several HR base resources renamed:

    find . -type f -name '*.xml' | xargs sed -i 's/menu_hr_configuration/menu_human_resources_configuration/g'
    find . -type f -name '*.csv'  -o -name '*.py' -o -name '*.xml'  | xargs sed -i 's/base.group_hr/hr.group_hr/g'

[8.0,9.0] hr_recruitment_partner doesn't work with fetchmail creating

Hi,

after installing hr_recruitment_partner you can't use fetchmail server to create hr.applicant anymore, because Odoo tries to create an empty partner, which won't work (name -> NULL).

So either the module should create a partner on its own in hr.applicant message_new() or the module should state, that it isn't possible to use the feature while installed.

Best Regards

[hr_wage_increment]: Error when "Individual" Wage Adjustment is clicked

I am running openerp 7.0 latest, installed wage_increment along with its dependencies, but when i click on wage adjustment >> Individual, i get below error:

Client Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch
response["result"] = method(self, _self.params)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1125, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1117, in _call_kw
return getattr(req.session.model(model), method)(args, *_kwargs)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, params)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, *kw or {})
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, args, *kwargs)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, args, *kw)
File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 532, in execute_cr
return fct_src(cr, uid, model, method, args, *kw)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, args, *kw)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1599, in default_get
defaults[f] = self._defaultsf
File "/usr/lib/pymodules/python2.7/openerp/addons/hr_wage_increment/wage_increment.py", line 101, in _get_effective_date
contract_id = self._get_contract_id(cr, uid, context=context)
File "/usr/lib/pymodules/python2.7/openerp/addons/hr_wage_increment/wage_increment.py", line 88, in _get_contract_id
data = self._get_contract_data(cr, uid, ['id'], context)
File "/usr/lib/pymodules/python2.7/openerp/addons/hr_wage_increment/wage_increment.py", line 76, in _get_contract_data
cr, uid, employee_id, ['contract_id'], context=context)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3679, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3731, in _read_flat
cr.execute(query, [tuple(sub_ids)] + rule_params)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 161, in wrapper
return f(self, args, *kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...ployee.id FROM "hr_employee" WHERE hr_employee.id IN (false)...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

access rules overlap

module: hr_skill
version: 8.0

Steps to reproduce

  • install the module and try to see an employee's form using the "Employee" profile.

Current behavior

  • the "Employee" has no rights as both the access rules have the same id, so only the Manager's rule remains in the database

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_hr_skill","hr.skill","model_hr_skill",base.group_hr_user,1,0,0,0
"access_hr_skill","hr.skill","model_hr_skill",base.group_hr_manager,1,1,1,1

Expected behavior

  • both the Employee as well as the Manager profiles should be able to see skills inside an employee's form

Payroll modules

  • Payroll analysis : #72
  • Add payslip with year-to-date amount and translated lines : #69
  • Added leave accruals module : #34
  • Worked Days from Timesheet with Activities : #76
  • Add public holidays to the leave types : #78
  • Add Employee exemption #83
  • Add HR Employee Benefits : #82

Move date in confirmed payslips where force period used

Dear colleagues,

We have noticed that it is not possible to confirm a payslip for a previous period (use the force period field), if the Salary Journal has the option 'Check Date in Period' set. The application defaults the move date to today's date.

But... we don't want to create a payslip journal entry with date 1st september for a payslip that was supposed to be paid on 1st august. The date and the period should match.

IMHO upon confirmation of a payslip the application should fetch the date from 'Date of Payment' in the payslip as the date to post to.

We would create a module that corrects the account move before it is posted, using the date of payment instead of today's date.

Please let me know if you agree with this approach.

[7.0][hr_family] REF Proposal to add many family in one2many

Hello,
We need a module that add family model.
Similar to hr_family module, but this should be one2many.

I want make a PR to 8.0 with this feature.
But I don't know if is a good idea.

class hr_family:
    _name = 'hr.employee.family' 

   def get_family_type():
          # inherit this function to add more family type
         return [('mother', 'Mother'), ('father', 'Father'), ('brother', 'Brother'), ('child', 'Child')]

    _columns = {
        'name': fields.char('Name', size=256, required=True),
        'dob': fields.date('Date of Birth'),
        'employee_id': fields.many2one('hr.employee', 'Employee'),
        'family_type': fields.selection( get_family_type )# or maybe is better a many2one with data/data
    }

What do you think?

[8.0][REF][hr_holidays] Holidays advanced

We will make a module that add holidays validations.
*As max days of holidays.
*Compute number total of holidays (without free days or weekend).
*Payment of holidays

Is a good idea make a PR here?

Need for hr_payroll_period

Hello, I have being looking at working porting several oca/hr addons to 8.0; took a good look at hr_payroll_period and I fail to see remarkable benefits over hr_payslip_run to justify the amount of code and complexity it introduces.

I think going forward we should be concentrating on making hr_payslip_run more usable... what are your thoughts on this?

Simple Attendance Integration with Barcode Reader & RaspberryPi

Hello Community,
I would like to use an easy attendance record system with Odoo.
Instead of using RFID/FingerPrint, Barcode can be considered as a cheap alternative.

My plan is to use an opensource hardware like RaspberryPi connected with
a barcode scanner and, we will run a python script in that, which will read the
inputs from the RaspberryPi, and will communicate with Odoo server via XML-RPC.

I have finished a prototype and it works. I need your valuable suggestions and
further help to complete it.

Thanks & Regards,
Nisthulan V.K
Dubai, UAE
+971 50 71 61 701
[email protected]

Recreate v9 branch from v8

@OCA/human-resources-maintainers

@dreispt I was talking about the recreation of v9 branch from v8 branch, when v9 branch was created only 22 modules were migrated to v8, since then there has been a lot of modules ported to v8, which were done in the new api, and little bug fixed done in v8, removal of modules dependant of Aeroo, plus translations from Transifex. Since all this has been done in v8, and v9 branch, for the momment doesn't have any module ported, i thougth it's a good moment to recreate the v9 branch from v8 branch, and will be more easier at migration of the modules already done in v8, since we will have to review only adaptation to v9, not all the process of migration, tests, new api, it will reduce the time reviewing the port to v9.

I am waiting your opinion and i don't exactly no if OCA has a tool for this, and if not i can create a PR that will make all v8 modules Not Instalable and overwrite V9 branch.

HR_EXPENSE_INVOICE - error when try to "generate Accounting Entries"

Odoo Version : 8
Module : HR_EXPENSE_INVOICE
ERROR MESSAGE : "Cannot reconcile supplier invoice payable with generated line. Please check amounts and see if the invoice is already added or paid. Invoice: False"

For some expenses where I am trying to link with an invoice, we have this error message.
We have verified if the amout of the invoice is the same as the expense and it is.

Question : if we need to uninstall the module installed in our server and update it by a new one. What's happening about all the expenses allready reconiled with an invoice?

I am stopped now and need to close our quarter.

Best Regards,
Youssef

[hr_worked_days_hourly_rate] Module lack of usability

module: hr_worked_days_hourly_rate
version: 1

Steps to reproduce

  • Define hourly rates on the contract
  • Create a payslip for the employee

Current behavior
-The hourly rates set on the contract are not automatically added to the payslip lines,

Expected behavior
It should add the date from and date to, with the rate set, probably a new salary structure should be added by default to get the value of the "BASIC" category.

Recruitment Partner data should have security access rules

The hr_recruitment_partner module saves Applicant personal data into Partners.
But this data is available to all users.
Since personal data is protected by data privacy regulations, only selected users should be able to access that information.

I believe we need a "Personal data" flag on Partners, and security rule on it so that only selected users can see it. By default, HR Officers would have this access.
Partners related to Applicants and Employees should have this flag enabled by default.

Thoughts?

[hr_worked_days_from_timesheet] - View inheritance may not use attribute 'string' as a selector.

Just trying to install hr_worked_days_from_timesheet module in Odoo 9.0 version. I got the following error:

Error details:
View inheritance may not use attribute 'string' as a selector.

Error context:
View hr.payslip.form
[view_id: 615, xml_id: n/a, model: hr.payslip, parent_id: 363]
None" while parsing /home/clovis/Documents/odoo9/hr-addons/hr_worked_days_from_timesheet/hr_payslip_view.xml:4, near

hr.payslip.form
hr.payslip












remove addons depending on aeroo reports

The following addons depend on aeroo report:

  • hr_payroll_register_report
  • hr_report_manpower
  • hr_report_payroll_attendance_summary
  • hr_report_payroll_net
  • hr_report_turnover

Aeroo reports is not an OCA module and the OCA policy is to not depend on 3rd party modules.

In the discussion on OCA/reporting-engine/issues/1, the main author of aeroo reports strongly objected to the inclusion of his work in OCA. Since he also did not sign the CLA, I don't see how we could forcefully include his code in our code base. I therefore ask for the removal of the modules above.

If someone cares for these, it would be great if they could be cleanly moved elsewhere, and we will gladly provide a link in the README.md file pointing to that repository. If noone cares, I shall remove the modules from the git repository in a few weeks.

update amounts in timesheet lines after payslip confirmation

Hi! We are finalizing a module for 7.0 that will allow to update the timesheet lines for a payslip period, based on the calculated average rate (total payslip amount / total hours worked) and the timesheet lines for that payslip period.

This will make sure that the analytic costs created by the timesheet are updated to match with the actual cost once the employee payslip is confirmed.

Would this module be of interest to OCA?

Error in legal leave module Odoo 10

Hi,
When I try to set Legal Annual check box, I receive this error
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 640, in _handle_exception
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 677, in dispatch
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 333, in _call_function
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\model.py", line 101, in wrapper
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 326, in checked_call
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 935, in call
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 506, in response_wrap
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\web\controllers\main.py", line 885, in call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\web\controllers\main.py", line 877, in _call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\api.py", line 681, in call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\api.py", line 672, in call_kw_multi
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3572, in write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\fields.py", line 1000, in determine_inverse
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\hr_holidays_legal_leave\models\hr_holidays_status.py", line 35, in _inverse_is_annual
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\fields.py", line 885, in set
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 4825, in ensure_one
ValueError: Expected singleton: res.company()

Why?
Tnks

[7.0] Fix error in Aeroo reports

Test fail in travis due to Aeroo reports

2014-07-13 15:23:08,873 12085 INFO openerp_test openerp.modules.loading: module hr_policy_absence: loading data/salary_rules_data.xml
2014-07-13 15:23:08,878 12085 ERROR openerp_test openerp.sql_db: bad query: delete from hr_holidays_status where id IN (1)
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "holiday_status_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."hr_holidays" SET "holiday_status_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "holiday_status_id""
2014-07-13 15:23:08,878 12085 ERROR openerp_test openerp.tools.convert: Parse error in /home/travis/build/OCA/hr/hr_policy_absence/data/salary_rules_data.xml:6:
<delete model="hr.holidays.status" search="[('name','like','Legal Leaves%')]"/>
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 852, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 282, in _tag_delete
self.pool.get(d_model).unlink(cr, self.uid, ids)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4050, in unlink
'where id IN %s', (sub_ids,))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "holiday_status_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."hr_holidays" SET "holiday_status_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "holiday_status_id""
2014-07-13 15:23:08,880 12085 ERROR openerp_test openerp: Failed to initialize database `openerp_test`.
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/cli/server.py", line 97, in preload_registry
db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 203, in get
update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 354, in load_modules
loaded_modules, update_module)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 256, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 188, in load_module_graph
load_data(module_name, idref, mode)
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 76, in <lambda>
load_data = lambda *args: _load_data(cr, *args, kind='data')
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 124, in _load_data
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 959, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 852, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 282, in _tag_delete
self.pool.get(d_model).unlink(cr, self.uid, ids)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4050, in unlink
'where id IN %s', (sub_ids,))
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 161, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "holiday_status_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."hr_holidays" SET "holiday_status_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "holiday_status_id""

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.