Commit Graph
52 Commits
Author SHA1 Message Date
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
Priyanka Kakadiya 562997b2bc [IMP] hr_timesheet: remove timesheet rule and access right for portal
Purpose of the commit is to clean the current portal right of
timesheet(analytic account line) and analytic account(no more ir.rule).

the idea is to remove ir.rule since the domain will be difficult with ir.rule
extension mecanism. Moreover, as this is "technical" data, we will use 'sudo' controller.
as we don't want to customize what is shown in portal.
End user is free to create its own ir.rule to connect odoo in xmlrpc
he will be the only responsible for that.

task-1932488
2019-06-14 04:49:21 +00:00
jem-odoo db92ca5fce [IMP] project,hr_timesheet: move analytic account business to project
When we remove the inheritS between project and analytic account, we move the
analytic_accound_id field in timesheet because it was the only use case for
a project to be linked to an analytic account.
This commit prepares new cost origin for a project (other that timesheet).
Register costs on project will required an analytic account to keep analytic
costs tracking. The analytic account management is now moved to project, like
it was in 10.0, but without the inheritS.

Task-1911581
2019-05-24 09:20:06 +00:00
jem-odoo 6b4062ea63 [IMP] project,hr_timesheet: module dependencies
For historical reason, project depended on product. Probably to use
UoM. Now, UoM is extracted in 'uom' module, and project does not
use UoM anymore (only with timesheet). Removing the 'product'
dependency requires to make hr_timesheet depending of uom, since
this one really use UoM mecanism.

Task #39079
2018-08-13 14:33:48 +02:00
jem-odoo 3dd3e26483 [IMP] project: a project is not an analytic account anymore !
This commit removes the inheritS between account.analytic.account and
project.project. This means :
- When a project is created, an analytic account is not necessarily
genareted
- project has now its own name, company_id and partner_id fields
- an analytic account can be linked to several project
- project module does not depend anymore of analytic, but hr_timesheet
does.

This change implied
- an analytic account is required on project to timesheet on
its tasks. So, when checking 'allow_timsheets', if an AA is not
provided at project creation, an AA will be generated.
- to timesheet on project, an active AA is required. We don't want
timesheeting on project linked to unused AA to avoid bad analytic
entries.

This prepare the fact a sale order can create multiple project, sharing
the same analytic account (the one from the SO).
2018-04-06 14:30:47 +02:00
XavierDo 2966d4faed [IMP] product: rename product.uom into uom.uom
Also rename product.uom.categ into uom.category to
 give it a decent name.
2018-02-26 14:27:26 +01:00
XavierDo 6a378e3839 [IMP] product: move uom in a new addon
Moves UoM models, test and data to a new addon in
order to be able to use uom without product.
A simple example is be to be able to use UoM for
timesheets.

This commit only move code, and adapt xml ids
without chaging any feature or functionnal
behavior.
Note: 'product' module now depends on new
'uom' module.
2018-02-26 14:27:26 +01:00
Jérome Maes 71d56cc398 [REM] website_project_timesheet: move to hr_timesheet
Since project depends on portal, this module can be removed.
2017-08-16 14:56:42 +02:00
Jérome Maes a806f96fa2 [IMP] hr_timesheet: ease time tracking use of timesheets
Purpose of timesheet module is to track user time. This commit applies
various improvements and tweaking to better reflect this purpose.

This commit provides some UI improvements

 * improve views : user_id field is not displayed on 'My Timesheet'
   action, since it will always be the same user;
 * simplify menus : 'My timesheet' only for current user's timesheets
   and 'All timesheet' for everyone's. The latter one allows creating
   timesheets for someone else, if you have the required access rights;
 * add calendar views for timesheets
 * some filters are added to ease time-based filtering of timesheets

This commit also reorganizes user groups. Groups are now

 * new 'timesheet user' group (different from base.group_employee). Users
   can record their own timesheet. New access rights were added to perform
   the same operations as before.
 * 'timesheet manager' (hr_timesheet.group_manager). Users can record
   timesheets for other users, access to settings and reporting tools.
2017-04-27 10:34:51 +02:00
Foram Shah 9b589ad8c5 [REM] hr_timesheet: removed invoicing dependency from timesheet 2016-09-16 14:46:40 +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
Xavier Morel 037e61af32 [REM] hr_timesheet: hr.timesheet.report
* removed hr.timesheet.report as it's mostly redundant with regular
  views on analytic lines
* moved "detailed activities" to reporting, renamed it, added a pivot
  view
* redirected timesheet link from HR dashboard to the detailed activities
  action

  - added department_id to analytic lines as that link is filtered by
    department
  - fixed bug in kanban view: button context wasn't evaluated in the
    correct context
2016-05-02 19:20:14 +02:00
Tanguy Charlier 16bf40f7c4 [IMP] hr_timesheet: Timesheet entries are now related to projects
- Hide account_id field and add a required project_id field on timesheet entries
- Remove is_timesheet field: as project_id is only required for timesheet entries and not for other analytic lines, it can be used to determine wether a line is a timeheet entry or not.
- Remove project_timesheet module as all its functionalities are moved to hr_timesheet
- Replace timesheets on contract option on products by timesheets on project
- Small fixes and improvements in timesheets and projects views and groups
2016-02-18 01:25:55 +01:00
Nicolas Martinelli e021a08b30 [IMP] hr*: adaptation due to the new Sale module
Major changes:
- No use of UoS anymore
- No journal since invoicing is managed in Sale
- No invoicing from timesheet

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 18:10:18 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
odoo-tac 14183ba2be [REF] Refactored hr_timesheet: Refactored the "timesheet" model in several modules. hr.analytic.timesheet is removed, and account.analytic.line is used directly to represent timesheets.
Also removed worklogs on tasks and replaced them by generic timesheets, i.e. account.analytic.line(s)
2015-04-28 10:31:18 +02:00
Christophe Simonis d64fe8279b [MERGE] forward port of branch 8.0 up to c92e70b 2014-11-17 17:31:12 +01:00
Martin Trigaux ef55d19e34 [FIX] hr_timehseet: restrict access right
Fix error while moving it at ca209eb
2014-11-13 11:26:44 +01:00
Rucha Dave ca209eb184 [FIX] hr_timesheet(_sheet): access rights on report
hr.timesheet.report was moved from hr_timesheet_sheet to hr_timesheet but not the ir.model.access
Avoid warning "The model hr.timesheet.report has no access rules, consider adding one."
Fixes #3319
2014-11-13 11:03:22 +01:00
cod-odoo a301b4c7fc [MOVE] account: moved account/project files to analytic or account, depending on which module the moved code belongs to. This allows to remove references to project in account module. Also added some improvements in project when deleting a project (delete account if void) or when deleting an account (delete project if void). 2014-08-04 13:23:46 +02:00
Denis Ledoux dle@openerp.com 7e1ffaf613 [REM]Remove all account.journal.view and account.journal.column references
bzr revid: dle@openerp.com-20121122104504-ezgj2666zkhgybpj
2012-11-22 11:45:04 +01:00
Amit (OpenERP) 7cc6d92d16 [FIX] hr_timesheet : user allow to delete his own timesheet line
lp bug: https://launchpad.net/bugs/939294 fixed

bzr revid: amp@tinyerp.com-20120430100828-fxpbkij4igmi36io
2012-04-30 15:38:28 +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
Fabien Pinckaers 696b7100be fix
bzr revid: fp@tinyerp.com-20110917145407-qp45yk4ma7mo6pp3
2011-09-17 16:54:07 +02:00
Hardik Ansodariy (OpenERP) 2296b52568 [IMP]:improved hr module
bzr revid: han@tinyerp.com-20110711112329-72h3rbgs0n06pzs1
2011-07-11 16:53:29 +05:30
mtr eee73abb9d [FIX] hr_timesheet: changed the access rights for analytic journal user,employee can now encode his timesheet
lp bug: https://launchpad.net/bugs/767153 fixed

bzr revid: mtr@mtr-20110608133439-mx2v1fod5jczpamf
2011-06-08 19:04:39 +05:30
ARA (OpenERP) bbdec831a7 [FIX] hr_timesheet: An employee cannot encode his own timesheet
lp bug: https://launchpad.net/bugs/767153 fixed

bzr revid: ara@tinyerp.com-20110517054158-83r20bep8hnhqaek
2011-05-17 11:11:58 +05:30
ARA (OpenERP) 53ea40d8e9 [FIX] hr_timesheet:an employee shouldn't be able to see all timesheet line
lp bug: https://launchpad.net/bugs/755659 fixed

bzr revid: ara@tinyerp.com-20110411070035-rmd3l2a1g3zdfomt
2011-04-11 12:30:35 +05:30
François Degrave fb250aaa6a [IMP] HR access rights
bzr revid: fde@openerp.com-20101229130758-hs1xxnj8zm45fl6c
2010-12-29 14:07:58 +01:00
Harry (OpenERP) 20ab1d1df4 [FIX] account: security
bzr revid: hmo@tinyerp.com-20101229085716-y13ctpn3ptenrfl0
2010-12-29 14:27:16 +05:30
AMP (OpenERP) 92c78d14e6 [MOD/IMP] hr_* : hr,hr_attendance,hr_contract,hr_expence,hr_timesheet,hr_timesheet_invoice,hr_timesheet_sheet Usability improvement in access rights
bzr revid: amp@tinyerp.com-20101007094729-1sdtsxube9ti5lw2
2010-10-07 15:17:29 +05:30
AMP (OpenERP) 6c8bc73943 [MOD/IMP]hr_*: usability improvement in access rights
bzr revid: amp@tinyerp.com-20100920102935-xuwe0m1it6foy5wh
2010-09-20 15:59:35 +05:30
AMP (OpenERP) b4a3da2cc0 [MOD]hr_*: usability improvement
bzr revid: amp@tinyerp.com-20100918073924-3020grhwot6v837w
2010-09-18 13:09:24 +05:30
AMP (OpenERP) 01d5194378 [Merge]
bzr revid: amp@tinyerp.com-20100918053839-c1ob3r2pf54frh7s
2010-09-18 11:08:39 +05:30
Vir (Open ERP) aaea54012a [FIX,MOD] hr_*, survey : problem with access rights are sovled
bzr revid: vir@tinyerp.com-20100917120814-e45m5gwpqvrirk8y
2010-09-17 17:38:14 +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) 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
rpa (Open ERP) 4076708b25 [FIX]: hr_attendance: Problem of duplicate id in access rule
bzr revid: rpa@tinyerp.com-20100712112623-t0xg68chfe96lfln
2010-07-12 16:56:23 +05:30
Jni (Open ERP) 35cc919184 [MOV]:hr_timesheet,hr_timesheet_sheet:Moved Timesheet Analysis in to the hr_timesheet_sheet module.
bzr revid: jni@tinyerp.com-20100707135458-11y9sep9trk3x8x1
2010-07-07 19:24:58 +05:30
Harry (OpenERP) 31503e3db8 [FIX] remove security rule of osv_memory object
bzr revid: hmo@tinyerp.com-20100707072453-3w0kw505tbit7h8l
2010-07-07 12:54:53 +05:30
UCO (OpenERP) 3217cf7e4c [REM]: Removed access rules for OSV memory objects
bzr revid: rpa@tinyerp.com-20100628134938-23kiccr4355jfhmg
2010-06-28 19:19:38 +05:30
Fabien Pinckaers fde1a06f5a [IMP] report on hr_timesheet + fixes
bzr revid: fp@tinyerp.com-20100625100743-m0sklyrvtad4ykoy
2010-06-25 12:07:43 +02:00
atp (Open ERP) 51f24907b0 [MERGE]: merge with lp:~openerp-dev/openobject-addons/trunk-dev-addons3
bzr revid: atp@tinyerp.co.in-20100614054449-kov9r566gpvqohey
2010-06-14 11:14:49 +05:30
atp (Open ERP) 70edef7787 [IMP]: hr_timesheet: Improvement in hr_timesheet_sign_in_out wizard for emp_id field.
bzr revid: atp@tinyerp.co.in-20100614051659-2ecn73g7m1awf37t
2010-06-14 10:46:59 +05:30
Fabien Pinckaers 220eac1612 fix
bzr revid: fp@tinyerp.com-20100611132211-zd8zff7aq2ifgsde
2010-06-11 15:22:11 +02:00
Fabien Pinckaers 672f3e8d6c [IMP] access rights improvements
bzr revid: fp@tinyerp.com-20100611125528-mlhkzlditz2awk1k
2010-06-11 14:55:28 +02:00
husen daudi c41b085679 improve security rights for timesheet (ref:nch)
bzr revid: hda@hda-20090219063537-p2xmlsgu2n1n3zvf
2009-02-19 12:05:37 +05:30
Christophe Simonis 1a138e1454 fix and complete access rules
bzr revid: christophe@tinyerp.com-20081017162038-kzsgroivk73t0vyx
2008-10-17 18:20:38 +02:00