Commit Graph
71 Commits
Author SHA1 Message Date
Antony Lesuisse ccf606e026 [ADD] website_project: Portal access to Projects
Split project to move portal features to a new module named website_project.

Portal users may now access their projects and tasks throught the
website_portal My account page. The Backend portal menuitem is removed.

Simplify the privacy settings of project, to be visible to portal users the
project must be in 'portal' mode.

Original authors: Vipul Bhatt, Florian Wintjens
2016-07-06 01:17:43 +02:00
Gaurav Panchal 40fa74e3f5 [MIG] project: migration to new api except project.py 2016-06-30 14:41:21 +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
Yannick Tivisse 1ecba213f4 [IMP] Newly created users get all manager access right
Coming from a bug in web_settings_dashboard. Invited user didn't have any rights
when created from the dashboard, which was leading to an error.

This bug leaded to a new discussion. Better to have basic employee having user
rights for all main applications. For bigger entreprises there is an admin that
will carefully remove extra rights, if necessary. The target is small businesses,
it makes sense that every way to create a user gives the same result.

In conclusion, each new user has a full access to the applications by default

How is it implemented ?
We added an inactive default user which original access right to the groups
'base.group_user' and 'base.group_partner_manager' in base. Each
application will extend the default user's access right by adding the maximal
access right for this application.

On user creation, we will use by default the 'group_id' field from the default
user. We will in the same time remove the ugly 'default_groups_ref' key which
was passed sometimes in the context for some fields in some views, and sometimes
nothing.

So, the user can modify the access rights for the default user, but he should be
aware that removing project user access rights for a default user will prevent
a *created on the fly in a task* user will not be able to access the task.
2015-11-20 16:27:32 +01:00
Christophe Simonis d750206c49 [MERGE] forward port of branch saas-6 up to e9f1ee4 2015-10-01 15:16:59 +02:00
Denis Ledoux fa17b86a9f [FIX] project: multi-company security rules in Tasks Analysis
This change avoid to display the tasks
that a user is not permitted to see
in the reporting view 'Task analysis'

Closes #4399

Courtesy of jkei
https://github.com/jkei
2015-09-28 15:58:15 +02:00
Thibault Delavallée e6f038a821 [REF] mail: mail_thread: followers update
Followers can now be partners or channels. Partners following a document
will receive needaction, as previously. However people can follow documents
through channels. Members of a channel are able to listen to a stream
of messages using the channel. Those messages do not create needaction
messages. It is therefore possible to follow documents without receiving
too much notifications. For interesting documents subscribing with its
partner will create notification.

message_follower_ids fields is udpated. It is now a many2many to
mail.followers, not to res.partner anymore. A subscription can be either
a partner (partner_id) or a channel (channel_id).

Some access rules have been updated accordingly.
2015-08-21 12:11:56 +02:00
Damien Bouvy 8bd6074f03 [IMP] project,project_issue,project_timesheet,project_issue_sheet: project visibility and access rights modifications
[REM] portal_project: move ALL the things
- move portal access rights from portal_project  and website_project_issue to project and project_issue
- move portal menuitems back to their respective module
- remove public visibility of projects
- adapt demo data to have a 'Demo Portal' project
- add correct access rights for account.analytic.line for portal users
- small view tweak (do not display 'timesheet' tab if one can't see antyhing in it anyway)
2015-08-14 13:19:03 +02:00
Yannick Tivisse e485b6c5ee [IMP] Project : remove task delegation
Conflicts:
	addons/project/wizard/project_task_delegate.py
2015-07-08 15:39:02 +02:00
Yannick Tivisse d2dd78889d [FIX] Menu configuration in root menu 2015-07-06 14:02:00 +02:00
Martin Trigaux 0b2ee16885 [FIX] project: access rights and followers
For privacy_visibility 'followers' or 'portal', the user should be follower of the project (not the task).
Remove public access to portal task
Fixes #2372

If no project on the task (or other rule), an employee (not a portal) can access if is follower of the task.
Follower rule is not enough as a user creating a rule will subscribe to the rule but to subscribe to record, the user should have access to it in the first place.
To make sure the snake does not bit its tail, fallback to give access on task where the user is reponsible (user_id = user.id).
Fixes #139

Adapted the tests to the new behaviour (removed not relevant and added some on creation)
2014-11-18 18:52:46 +01:00
Martin Trigaux c22ed1390b [FIX] project: access task without project
Allow access to task without a project defined if the user is follower.
Fixes #3450
2014-11-06 18:05:28 +01:00
Christophe Simonis d562249278 [FIX] project: force menu name
bzr revid: chs@openerp.com-20140425170357-iqcqqfe71mm2z0qg
2014-04-25 19:03:57 +02:00
sgo@tinyerp.com 6a3cdf718c [MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130605071905-o2ldzc6vxqnoe099
2013-06-05 12:49:05 +05:30
Thibault Delavallée 8c31d9772a [FIX] project, task, issue, portal: fixed access rules for employees/portal users + added an help on privacy_visibility.
bzr revid: tde@openerp.com-20130426130259-35j0v7lg7unxhzzp
2013-04-26 15:02:59 +02:00
sgo@tinyerp.com d5451cf7f2 [MERGE]sync with trunk
bzr revid: sgo@tinyerp.com-20130417060441-6vnz2tiym5fawr2n
2013-04-17 11:34:41 +05:30
Thibault Delavallée b6223ecb7f [FIX] [ADD] project, project_issue, portal_project, portal_project_issue: improved privacy_visibility selection of project.project; improved access rules; added tests to enforce them.
bzr revid: tde@openerp.com-20130412143719-ztjo06r900l024dm
2013-04-12 16:37:19 +02:00
sgo@tinyerp.com 15f6bea1e9 [IMP]improve yml for project and add access rights as needed
bzr revid: sgo@tinyerp.com-20130312112700-zamjzcjp5d9nv5n0
2013-03-12 16:57:00 +05:30
Olivier Dony 3fe6987ce7 [MERGE] Harmonization of noupdate flag on security XML data, courtesy of Alexis de Lattre (Akretion)
ir.rule records are in noupdate data blocks to let the admin
alter them without fear of them being reset at next update.
Other records such as groups are in normal mode, so they
can be updated whenever necessary

bzr revid: odo@openerp.com-20121218232001-t425t4hi7qbmsip2
2012-12-19 00:20:01 +01:00
Ajay Chauhan (OpenERP) b5f940c04f [IMP] project: made little change in ir rule
bzr revid: cha@tinyerp.com-20121010083548-lt8oncuanvcfpqk2
2012-10-10 14:05:48 +05:30
Ajay Chauhan (OpenERP) 2d1cb5d05d [IMP] project: solved the issue of 'Followers Only' visibility for project
bzr revid: cha@tinyerp.com-20121008131720-v1573v9zitef1whp
2012-10-08 18:47:20 +05:30
Thibault Delavallée 41198901cd [FIX] Project: fixed a security rule based on follower_ids, that is now message_follower_ids.
bzr revid: tde@openerp.com-20120910075850-0b5sg1vljcc8gba9
2012-09-10 09:58:50 +02:00
Thibault Delavallée 6c109e7d7e [REM] project: removed custom 'followers' fields; security rule updated to use follower_ids.
bzr revid: tde@openerp.com-20120822074924-bbb5lc1w48dtebeb
2012-08-22 09:49:24 +02:00
Alexis de Lattre 5101771cd9 Harmonize the noupdate flag on security XML files :
- ir.rule objects are noupdate="1"
- all other objects are noupdate="0"

bzr revid: alexis@via.ecp.fr-20120713170838-pjsysliyt6twazrc
2012-07-13 19:08:38 +02:00
Quentin (OpenERP) 46f2c2c9ca [IMP] improvements during code review
bzr revid: qdp-launchpad@openerp.com-20120628121820-r8bxfzq38fy8pcgt
2012-06-28 14:18:20 +02:00
Sanjay Gohel (Open ERP) 1702b2335d [IMP]remove tabs and add spaces instead of them
bzr revid: sgo@tinyerp.com-20120628064005-zuerrpazumf5lf1q
2012-06-28 12:10:05 +05:30
Quentin (OpenERP) dc1edf44be [IMP] project: implemented the privacy/visibility record rule in a cleaner way + some cleanup and bug fixing related to contract management
bzr revid: qdp-launchpad@openerp.com-20120614100922-5g29ui88nhqojon2
2012-06-14 12:09:22 +02:00
Amit Patel (OpenERP) 618aacc5a7 [IMP]:passed base menus ref instead of project.
bzr revid: apa@tinyerp.com-20120613131507-1yezuu5k7dc1h9s3
2012-06-13 18:45:07 +05:30
Quentin (OpenERP) c44790c56d [MERGE] merged with main trunk
bzr revid: qdp-launchpad@openerp.com-20120613090855-9tpft9kutxzgwyze
2012-06-13 11:08:55 +02:00
Raphael Collet fcca76b487 [MERGE] trunk-first_10_clicks-psi (add group to enable task delegation)
bzr revid: rco@openerp.com-20120612095835-iisiv73hqbhe9l9w
2012-06-12 11:58:35 +02:00
DBR (OpenERP) fbff0b9ef2 [IMP]project: Set record rule for public or followers
bzr revid: dbr@tinyerp.com-20120604064419-3scxoolmyj8iskw3
2012-06-04 12:14:19 +05:30
Ajay Chauhan (OpenERP) 91647a7d17 [IMP]project : change reference of group group_delegate_task
bzr revid: cha@tinyerp.com-20120529073311-98bkx7jlisvinrba
2012-05-29 13:03:11 +05:30
Ajay Chauhan (OpenERP) ee04e1002f [IMP]project : add new group to restrict delegation
bzr revid: cha@tinyerp.com-20120529061415-x8salptgz19hyop2
2012-05-29 11:44:15 +05:30
Jagdish Panchal (Open ERP) a8c940cdb2 [IMP] Project: Add new field in configuration wizard, add new group in security xml, and apply group in project_view.xml
bzr revid: jap@tinyerp.com-20120427071701-obqjn71vu7dykjki
2012-04-27 12:47:01 +05:30
Raphael Collet ba1454149c [IMP] groups: remove auto-inclusion of admin in groups, and make the inclusion explicit in groups
bzr revid: rco@openerp.com-20120404090830-nteimn2kvz8nkk7h
2012-04-04 11:08:30 +02:00
Raphael Collet 70bb0dd810 [IMP] base_contact, event, knowledge, product, project, sale_mrp: avoid redefinition of sale groups
bzr revid: rco@openerp.com-20111212145128-zx64v0uwf8n0lwyu
2011-12-12 15:51:28 +01:00
Raphael Collet 5aa61b26e8 [IMP] product, project, purchase, purchase_requisition: add group categories
bzr revid: rco@openerp.com-20111212140528-g8oxverkipswionf
2011-12-12 15:05:28 +01:00
Raphael Collet ba6342174e add group implications
bzr revid: rco@openerp.com-20110802130811-pkdmw43ufifz0tpj
2011-08-02 15:08:11 +02:00
Olivier Dony beac68b7d2 [REVERT] all: revert incorrect change of default ir.rules for multi-company
By default only records belonging to the user's company or descendant companies
should be visible. The original patch introduced visibility of records
from ancestor companies, which should be suited only for a few cases, such
as res.patner.
Original revision: 3164.24.175  sbh@tinyerp.com-20101223095216-n6psmzicdcs8is8x

lp bug: https://launchpad.net/bugs/720175 fixed

bzr revid: odo@openerp.com-20110228135754-6skiy4fb9dg54xb6
2011-02-28 14:57:54 +01:00
Sbh (OpenERP) abd780fd52 [Fix] : correct security rule of company_id
bzr revid: sbh@tinyerp.com-20101223095216-n6psmzicdcs8is8x
2010-12-23 15:22:16 +05:30
Harry (OpenERP) 764b9f251e [FIX] correct regression on intalling module without demo data
bzr revid: hmo@tinyerp.com-20101114134821-7djwpr6nmmxu584q
2010-11-14 19:18:21 +05:30
uco (OpenERP) f7f51a9497 [ADD] Task ID-1720: The demo user should be in all '<application's name> user' groups.
bzr revid: uco@tinyerp.com-20101102095327-77v9g35gjosrc5ky
2010-11-02 15:23:27 +05:30
Olivier Dony 496a2bbcc8 [FIX] project: Project Managers are allowed to see all tasks even if they are Project Users too
bzr revid: odo@openerp.com-20101018125118-5pbcqqm2amjfvltr
2010-10-18 14:51:18 +02:00
Fabien Pinckaers 37680303df [IMP] ir.rule reviewed
bzr revid: fp@tinyerp.com-20101018092840-7a6wv2vw2s6a1a2s
2010-10-18 11:28:40 +02:00
Fabien Pinckaers 2c63a39497 [IMP] access rights, account tax include no more required, some fixes
bzr revid: fp@tinyerp.com-20101017203119-2p80zc0nz6tjpxr8
2010-10-17 22:31:19 +02:00
Rvo (Open ERP) e826dfeb69 [IMP]: Security, added ir.rule for Project Manager Group
bzr revid: rvo@tinyerp.co.in-20100922080645-81q0mireru2k6csf
2010-09-22 13:36:45 +05:30
amp (OpenERP) bd426f0346 [IMP] crm,hr_*,auction,knowledge,mrp,product,project,sale,survey : access rights improvements
bzr revid: vir@tinyerp.com-20100810134529-wyqlh5d3zabd25gv
2010-08-10 19:15:29 +05:30
qdp-launchpad@tinyerp.com a0f7d20f8b [FIX] project: security access rule corrected
bzr revid: qdp-launchpad@tinyerp.com-20100712224033-615wex94s3nqvycp
2010-07-13 04:10:33 +05:30
Mustufa Rangwala 26f266785e [IMP] clean project_* code (DHS)
bzr revid: mra@mra-laptop-20100702143706-k5zeko7e9n7ikvk1
2010-07-02 20:07:06 +05:30
Fabien Pinckaers 8baf16f25e [IMP] access rights. Remove bad stuff on point of sale
bzr revid: fp@tinyerp.com-20100612162154-f9dgju8wsmn79gq0
2010-06-12 18:21:54 +02:00