Commit Graph
44 Commits
Author SHA1 Message Date
Martin Trigaux 604a47ead8 [IMP] *: remove global ACL
THese are rarely intended for all users but often intended only for
employees.

account:
account.incoterms: only used within internal business models
account.journal.group: same as account.journal, add sudo in computed field

account_edi: need access to accounting objects

base_address_extended:
res.city: only employees should access address data

board: only employees uses this (old) module

crm:
crm.stage: internal users business object

hr_recruitment: employees can read

im_livechat: apply same as for the steps

l10n_ar: used on partner, not only invoices
l10n_ec: accessed only through account.move
l10n_latam: accessed on res.partner

mail:
publisher.warrenty.contract: no data, only static models
mail.channel: group_user has already his own rule
mail.group: group_user has already his own rule
mail.message.subtype: group_user has already his own rule
mail.message.all: remove, already has a portal and employee rule

partner_autocomplete: no interaction with public

project:
project.tags: only needed for project sharing

sale_management:
sale.order.option: same as sale.order

utm: employee already has write access

web_editor: test models that have nothing to do here
web_tour: only employees uses tours

website_sale:
product.ribbon: add sudo for access

base:
ir.default: only employees uses set (could probably be converted to group_system)
ir.ui.view.custom: same as ir.ui.view, add sudo when needed
report.*: portal users don't configure reports
res.users.log: create in sudo, no access needed (adapt test to use another model)
res.lang: still needed for public

closes odoo/odoo#118701

Related: odoo/enterprise#41285
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-06-12 22:39:26 +02:00
Kevin Baptiste 6c5f38ae37 [IMP] hr_recruitment: improve flow (back2basics)
* Redesign views
    * New layout for the job kanban card + redesigned menu
* Create new reports
    * Candidate Sources: get a better view on where applicants are
      coming from;
    * Time in Stage: shows how long an applicant is in the current
      stage.
* Archiving a job archives applicants as well

odoo/enterprise#24816
odoo/upgrade#3395

closes odoo/odoo#85479

Taskid: 2738082
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-04-01 13:37:09 +02:00
Kevin Baptiste 63c4a9b951 [IMP] hr_recruitment: add Interviewer access rights
Create a new Interviewer access rights.

This right is automatically given to users that are added as
Interviewers on a Job Position or on an Application.

An interviewer can only access applications they are interviewer of the
job or the application itself, the chatter is disabled for them as it might
contain some sensitive information (salary details, contract link, etc.)

closes odoo/odoo#78622

Taskid: 2669730
Related: odoo/enterprise#21778
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-01-24 11:09:50 +00:00
Victor Feyens 9ddfc18b41 [FIX] hr_recruitment: manager ACL should target manager group
Hr user shouldn't have the rights to modify recruitment stages.
2020-03-27 09:54:53 +01:00
Martin Trigaux 65530dfd6a [ADD] *: add ir.model.access on all transient models
Following changes needing ir.model.access on transient models too.
Remove groups declaration on the action to move it to ir.model.access
when possible.
Rules are strict by default with no unlink access by default and high
priviledge asked. Adaptations may be needed later.
Write access is given as a wizard may need to be modified in case the
action triggers an error and the user has to correct a value

account*: use account.group_account_user for all transient by default
	  remove account.print.journal relic
stock*: use stock.group_stock_user by default
survey: survey user can send invitations
mail: allow any employee to execute wizards
      additional verifications are made to ensure they are executed
      only on the documents the user has access to you
      give portal access to mail.compose.message as portal still does
      some actions like posting messages on the forum
      add ir.rule to avoid reading somebody else messages
      increase the query count because of undeterminist count
crm: saleman for lead2opp, manager for massmailing
     partner manager for actions linked to partners
     avoid a write in test_lead_lost
sms: any employee can send sms
mrp: mrp user can execute wizards
     give unlink access as making write during do_produce operation
base_import: employees can import files
delivery: stock user can deliver
event_sale: sale user can configure the wizards
	    event user inherit from  sale rights
gamification: employee can give badge
google_service: resolve FIXME
hr: add specific rights
    manager can set a plan according to group on button
    anyone who can write on an employee can register a departure
hr_expense: set rights based on buttons
hr_holidays: an approver can make a summary report
hr_recruitment: recruiter can refuse a candidate
hr_timesheet: can use the wizard if can create a timesheet
l10n_eu_service: managers can create fiscal positions
mass_mailing: same group as on mass.mailing.list
membership: accountant can create invoice from membership
payment: accountant can create a link
	 as the source is an account.move
	 keep the payment.acquirer.onboarding.wizard to system user
	 only as it is called during company configuration
point_of_sale: PoS manager only can use wizards
	       never create closing_balance_confirm_wizard records
product_expiry: stock user has rights on stock.picking
product_margin: access from accounting menus
repair: same rules as for above models
sale: set ir.rule for self wizard only
      add rule from model introduced in payment to add salesman group
sale_crm: saleman can create a quotation from a lead
sale_coupon: any saleman can generate coupon
	     add self ir.rule
sale_product_configurator: salesman can select product variants
snailmail: employee can send letters
website: designers can write on website
website_crm_partner_assign: same rule as group on action
website_sale: sale ACL as for payment.acquirer.onboarding.wizard
website_slides: anyone can send invitation

base: base.language.*: allow employee (cf lang_install)
      change.password.user: can not read change password wizard of
      other users
      test.*: no access is needed

Courtesy of Damien Bouvy, William Andre and Antoine Prieëls for review
of acl
2020-02-04 17:54:18 +01:00
jbm-odoo b2a2d0a730 [IMP] hr_recruitment: Add refuse reason and a wizard when archiving
Purpose
=======

Like in crm, having a refusal reason to get some metrics on recruitment
+ recruitement dashboard

id=2003841

closes odoo/odoo#38467

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-06 11:55:34 +00:00
Dhaval Suthar 956b9f88f7 [REF] hr_recruitment: replace report by pivot / graph views
hr.recruitment.report is not necessary anymore as it can be replaced by
classic pivot and graph views on hr.applicant model.

Applicant has been slighty modified to ease reporting

 * adding group_operator average on both salary fields;
 * adding missin delay to close computation on applicant;
2017-05-10 15:02:17 +02:00
Yannick Tivisse 7fa2691175 [IMP] hr_*: Split the HR access rights by application
PURPOSE
=======

For each and every Hr application there should be one user category (One app = one category).

SPECIFICATION
=============

HR remains as it is : Employee, Officer, Manager

Each Application should have 2 access rights: User and Manager. Example for Recruitment:
- The user has access to the recruitment process
- The manager has access to the job position configuration

Each Application should grant the employee user access right (Namely the 'HR Officer')
2016-09-06 14:35:09 +02:00
Martin Trigaux 11812b0b9e [FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is
created inside this module (typically menus and groups).
While there is no technical reasons to do so but this may introduce issues:

- these records will not be deleted during uninstall
- if a language is loaded before the installation of the module, it won't be
  translated

The uninstallation will only remove the records with an external id linked to
this module (these would only be removed when removing base).

Installing a language before the module will drop the translations not linked
to an existing external id (as it can not be resolved).

This commit correct all the external ids tagged as from base or other incorrect
modules.
2016-09-02 16:14:26 +02:00
Kinjal Mehta 3912beff31 [MOVE] hr_recruitment_survey: Make a bridge module with survey related code
==============
Specifications
==============

Add an option in the settings to use the surveys or not
By default : do not use interview forms.
If the option is false : on the job application, hide the Interview form field
2016-08-22 12:48:56 +02:00
Darshan Kalola (OpenERP) 9166c305c1 [MERGE]sync with trunk.
bzr revid: dka@tinyerp.com-20140415092844-u9vrtpjvwdr2ke5m
2014-04-15 14:58:44 +05:30
Bharat R. Devnani (OpenERP) 29a9b583bd [MERGE] merged with main addons
bzr revid: bde@tinyerp.com-20140304060714-fcws13ui6gcprxo8
2014-03-04 11:37:14 +05:30
Richard Mathot (OpenERP) b650340a29 [FIX] adaptation of hr_recruitment module to the new version of survey
bzr revid: rim@openerp.com-20140207162615-n8txh4ymlipatbwl
2014-02-07 17:26:15 +01:00
jke-openerp 46b0c7aa00 [REF] Rename model crm.meeting into calendar.event
Remove 2 unsused field from calendar.event model (dir,sequence)

bzr revid: jke@openerp.com-20140115093805-1g1j1oymyxsb6kgh
2014-01-15 10:38:05 +01:00
jke-openerp eeb4e9629f [TYPO] Replace base_calendar to calendar in csv security
bzr revid: jke@openerp.com-20131219160620-kcjrqv0uald99qqe
2013-12-19 17:06:20 +01:00
ima-openerp 6259b475cd [IMP]added access rights for manager and user in hr_recruitement and project module.
bzr revid: ishwarmalvi13@gmail.com-20130912132859-lwxivwsrld9ccf2c
2013-09-12 18:58:59 +05:30
Fabien Pinckaers 88cb414e81 [IMP] access rights: hr for calendar
bzr revid: fp@openerp.com-20130224102727-vua96cndhky966d3
2013-02-24 11:27:27 +01:00
Ajay Chauhan (OpenERP) fc7fb157fc [IMP] hr_recruitment: added access right for crm.meeting.type
bzr revid: cha@tinyerp.com-20130221121647-ffnqsmpmdww0e7ns
2013-02-21 17:46:47 +05:30
Foram Katharotiya (OpenERP) ea0fe9f1cb [IMP] give rights to officer for applicant
bzr revid: fka@tinyerp.com-20120921083502-7pw3vfsxu8s8dtrf
2012-09-21 14:05:02 +05:30
Antonin Bourguignon 89a27bf5b6 [IMP] hr_recruitment, project: better access rules for categories
bzr revid: abo@openerp.com-20120816144403-4nd2bbiq5dfnwc2i
2012-08-16 16:44:03 +02:00
Thibault Delavallée 4fad550d69 [MERGE] Merged with main addons.
bzr revid: tde@openerp.com-20120709081834-18pf4bol39s50uno
2012-07-09 10:18:34 +02:00
Raphael Collet b52e4ce840 [IMP] hr_recruitment, import_google: remove dependency on module crm
bzr revid: rco@openerp.com-20120706130920-wj44bogblyt6kenq
2012-07-06 15:09:20 +02:00
Thibault Delavallée 843c33d10b [REM] Removed mail.message access rights defined in various modules. mail.message access rights will be defined as attachments.
bzr revid: tde@openerp.com-20120508135509-ujeqpgh83uui6nbz
2012-05-08 15:55:09 +02:00
Bhumika (OpenERP) df507dbe9e [FIX] hr_recruitment: remove referecne of res.partner.address
bzr revid: sbh@tinyerp.com-20120307054919-nux5472zjscght8j
2012-03-07 11:19:19 +05:30
Fabien Pinckaers f27318c8af [IMP] Security Rule: removed duplicates due to inheritancies of groups
bzr revid: fp@tinyerp.com-20111212181113-mhnnbps3ip8ls6pp
2011-12-12 19:11:13 +01:00
Olivier Dony a3b12602ee [IMP] hr_recruitment: spellcheck, simplify mail compose wizard
bzr revid: odo@openerp.com-20110907183328-lkmn6roww23atp9e
2011-09-07 20:33:28 +02:00
Olivier Dony 4fcb67bef1 [MERGE] latest trunk
bzr revid: odo@openerp.com-20110822171856-1zkyunpjyz5ffdth
2011-08-22 19:18:56 +02:00
Fabien Pinckaers 4e1bcd16f9 [FIX] hr_recruitment access rules
bzr revid: fp@tinyerp.com-20110819133607-wgap1frd1knnhz55
2011-08-19 15:36:07 +02:00
Rifakat Haradwala (Open ERP) 63de8740bc [FIX] csv file semicolon error
bzr revid: rha@tinyerp.com-20110405061713-b9qmkeqqg64er6lf
2011-04-05 11:47:13 +05:30
Rifakat Haradwala (Open ERP) 47a85e9f8f [IMP] mail: rename module email to mail because of parsing error
bzr revid: rha@tinyerp.com-20110404094552-j2rdq2sbeqrbffgn
2011-04-04 15:15:52 +05:30
Yogesh (OpenERP) e1afe5828a [IMP] change module name emails to email and related to changes in addons all module. move email_gateway module file in email module and also related changes in related module..
bzr revid: ysa@tinyerp.com-20110310073900-ivesygpb7cdwpp43
2011-03-10 13:09:00 +05:30
Yogesh (OpenERP) 05336df19f [IMP] change module name email to emails.
bzr revid: ysa@tinyerp.com-20110208094016-7svkud5dzdf8a2uc
2011-02-08 15:10:16 +05:30
Yogesh (OpenERP) 93f54b8f03 [IMP] email, email_template and email_gateway related changes done in addons module..
bzr revid: ysa@tinyerp.com-20110207072906-knh218shj8ufyxu7
2011-02-07 12:59:06 +05:30
François Degrave 6fd9d3bb9c [IMP+FIX] HR access rights, menus
bzr revid: fde@openerp.com-20101229073956-oze90c0gwlkk4s9t
2010-12-29 08:39:56 +01:00
AMP (OpenERP) 480ea8452f [MOD/IMP] hr_* : hr_evaluation,hr_recruitment Usability improvement in access rights
bzr revid: amp@tinyerp.com-20101007110640-us0sp7ib1uaw6akm
2010-10-07 16:36:40 +05:30
AMP (OpenERP) 1d15f71146 [MOD] project_timesheet,hr_* : usability improvement in access rights
bzr revid: amp@tinyerp.com-20100901132905-hslnywxf4zxogxdo
2010-09-01 18:59:05 +05:30
AMP(Open ERP) aff16ab9a5 [MOD/IMP] hr_* : Improvement in access rights
bzr revid: vir@tinyerp.com-20100813133645-w8nex9k1he2zjq9h
2010-08-13 19:06:45 +05:30
DBR (OpenERP) 5f4d7ff09b [MOD/IMP]hr_* modules access right changes in configuration
bzr revid: dbr@tinyerp.com-20100804133252-vh4vbkhmvsev0pnw
2010-08-04 19:02:52 +05:30
DBR (OpenERP) a446dfb18e [MOD] hr_* :Improvement in hr_* modules groups and accessright
bzr revid: dbr@tinyerp.com-20100803131117-jkvf2a7pe955en2u
2010-08-03 18:41:17 +05:30
PSI(Openerp) 92bb132404 [IMP] hr_recruitment: date to open and close on hr applicant + changes with report also, access rights
bzr revid: mra@mra-laptop-20100802095742-32tzwof760xlbwih
2010-08-02 15:27:42 +05:30
Fabien Pinckaers ca09185d52 [IMP] Improvements of access rights in trunk
bzr revid: fp@tinyerp.com-20100611100429-hgj7rx6feytizgag
2010-06-11 12:04:29 +02:00
Rvo (Open ERP) 5fd39ca156 [ADD]: access rights for osv_memory and osv_osv objects
bzr revid: rvo@tinyerp.co.in-20100421111435-v4u8cemnfir19kh0
2010-04-21 16:44:35 +05:30
Fabien Pinckaers 9bfcfe593c [FIX] hr_recruitement new module
bzr revid: fp@tinyerp.com-20100228203651-ke3h093in34cvz39
2010-02-28 21:36:51 +01:00
Fabien Pinckaers c25e9765f2 typo
bzr revid: fp@tinyerp.com-20100228200229-ijg8rovl1sumc8dj
2010-02-28 21:02:29 +01:00