Commit Graph
68 Commits
Author SHA1 Message Date
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
Thibault Delavallée 81d98f32a5 [IMP] mail: improve activity types behavior and access rights
First purpose of this commit is to limit access on activity types.
Employees can now only read activity types. Indeed defining or modifying
activity types should not be done by employees as it impacts daily work
of all other employees. Specific app-based rights are added for project
and sale managers. Those have a specific menu to configure activity
types, meaning they should also have the access rights to do so.

Also including :

 * ease default computation for res_model_id of activity types: using
   default_res_model in context it is possible to specify a default
   res_model_id. It is useful for example to give a specific context
   in configuration menus;
 * add a domain on res_model_id field in order to limit it to models
   inheriting from mail.thread and not being transient;
 * various improvement in activity type form view to ease configuration
   notably the # days renamed to planned in;
2017-12-22 10:30:02 +01:00
Jérome Maes 424c16f115 [MOV] website_project,project: move all features
Making project depending on portal, makes website_project
useless. So move all feature from one module to the other.
2017-08-16 14:56:41 +02:00
Yannick Tivisse 98675d3919 [IMP] project: Replace 'Cumulative Flow' by a fovorite filter in task report
This report is too advanced and/or complex to be a single menuitem. Furthermore the model was a mess and a horn of plenty for bugs.

The class ProjectTaskHistoryCumulative inherits from the class ProjectTaskHistory, and create a view based on the same model.The orginal class defines a compute field 'end_date' which calls a compute method '_compute_end_date' that will either make a simple assignment or a SQL request if the columns is always opened or folded.

As ProjectTaskHistoryCumulative is declare with '_auto=False' the compute method will try to write on this table, which is obviously wrong because we are trying to write on a view.

This leads to erors when trying to edit a project stage like:

OperationalError: cannot update view "project_task_history_cumulative"
DETAIL:  Views that do not select from a single table or view are not automatically updatable.
HINT:  To enable updating the view, provide an INSTEAD OF UPDATE trigger or an unconditional ON UPDATE DO INSTEAD rule.

or when trying to delete a column which already contains some tasks.

So we removed this these models and view and replaced them by a simple favorite filter in the Tasks Reports
2016-09-02 08:46:33 +02:00
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
Yannick Tivisse 9e57185449 [IMP] base,sales_team: Move res_groups and menuitems to sales_team
Purpose:
Having the res_group defined in base and sales_team auto installed
with mail doens't make sense.

- Move the empty res_config class and the related view from
  base_setup to sales_team (base_setup only contains the 'General Settings'
  model and views
- Move the 'sale' related content from product to sale module (Access rights,
  menuitems,...)
- Set sales_team at autoinstall False. The module is installed when needed by
  crm or sale for example
- Set sales_team as a dependency of voip. (Access rights defined for configuration
  purpose)
- Set sales_team ad a dependency of subscription (Access rights issue too)

[FIX] account: move some ir.model.access to sale module
[FIX] payment: Move some ir.rule to website_sale
[FIX] stock: move some ir.model.access rule to sale_stock
[FIX] project: Move some ir.model.access rules to crm_project_issue
[FIX] mrp: Move some ir.model.access rules to sale_mrp
[FIX] calendar: move some ir.model.access rules to crm

Rename xmlids accordingly. Example: 'base.group_sale_manager' becomes
sales_team.group_sale_manager.

[ADD] sales_team: See own documents => See only his sales team
Moved the "User: Own Leads Only", "User: All Leads" and "Manager" groups from sale and crm
into sales_team module. Add the record rules so that user can see only his Own Sales Team
if "See Own Leads" is sales right and can see all sales teams if he is having sales rights
of "See All Leads" or manager.
2016-06-09 16:05:25 +02:00
Yannick Tivisse ccdb5cbfc0 Revert "[IMP] base,sales_team: Move res_groups and menuitems to sales_team"
This branch need more testing instead of doing 10 fixes. A lot of issues are occuring
when installing modules in different orders.

This reverts commit fa6e415cdb.
2016-06-06 17:26:30 +02:00
Yannick Tivisse fa6e415cdb [IMP] base,sales_team: Move res_groups and menuitems to sales_team
Purpose:
Having the res_group defined in base and sales_team auto installed
with mail doens't make sense.

- Move the empty res_config class and the related view from
  base_setup to sales_team (base_setup only contains the 'General Settings'
  model and views
- Move the 'sale' related content from product to sale module (Access rights,
  menuitems,...)
- Set sales_team at autoinstall False. The module is installed when needed by
  crm or sale for example
- Set sales_team as a dependency of voip. (Access rights defined for configuration
  purpose)
- Set sales_team ad a dependency of subscription (Access rights issue too)

Rename xmlids accordingly. Example: 'base.group_sale_manager' becomes
sales_team.group_sale_manager.
2016-06-06 15:46:52 +02:00
Nicolas Martinelli 908f416573 [IMP] project*: adaptation due to the new Sale module
Major changes:
- New start and expiration dates
- Remove field Contract Status
- Simplified because use of sale_timesheet

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 18:15:24 +02:00
Thibault Delavallée 09c40cfae8 [FIX] project: task stage access right issue
Employees (base.group_user) can read tasks. However they miss the right to read
task stages (project.task.type). This causes issues when reading the form view
of a task. This commit fixes this issue.
2015-08-27 17:07:02 +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
Pariket Trivedi 2b61f6f6b3 [IMP] project,project_issue,portal_project: code cleaning
- remove unnecessary copy() method from project/res_partner.py
- remove old methods on project.project
- progress is not used anymore on project.project
- use clickable statusbar for project states
- remove _resolve_project_id_from_context
- rename project.category becomes project.tag to be more explicit
- remove old methods on tasks
- issues: remove option fetchmail_issue
2015-05-12 16:31:43 +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 562272d9a0 [MERGE] forward port of branch saas-3 up to c89d1a0 2014-10-23 13:08:44 +02:00
Martin Trigaux 118b5073e0 [FIX] project: read access for project user
Backport of 79bed94 (project user access to resource.calendar) and adding the access to resource.calendar.attendance.
It is needed to compute function fields such as day_open (present in form view of project.issue)
Fixes #3201
2014-10-21 16:56:08 +02:00
Martin Trigaux 2e2778c1b1 [IMP] project: convert file CRLF to Unix end of line 2014-10-21 16:54:56 +02:00
Denis Ledoux 79bed94271 [FIX] project_issue: project issue user must be able to read resource calendar
In order to be able to read the days_since_creation field
2014-08-19 17:57:48 +02: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
Thibault Delavallée 9b41f8fadc [TESTS] project: refactored tests. Moved surviving yml tests into unittest; added mailgateway test.
bzr revid: tde@openerp.com-20130710101508-62eh89gzq22qvpq5
2013-07-10 12:15:08 +02:00
Ajay Chauhan (OpenERP) fb0d701ce5 [IMP] project: set mail alias rights to project_manager
bzr revid: cha@tinyerp.com-20130205070036-e1ghl2dufz83mwf8
2013-02-05 12:30:36 +05:30
Arnaud Pineux 2fb7baa325 [IMP] demo for french users
bzr revid: api@openerp.com-20121211140346-bhh8o1rf5h57epcz
2012-12-11 15:03:46 +01:00
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
Fabien Pinckaers 2ed6acfea1 [MERGE] fix in access rights
bzr revid: fp@tinyerp.com-20120706150817-s01gbb4gga6dxybm
2012-07-06 17:08:17 +02:00
Thibault Delavallée 289dad87d4 [MERGE] Merged with addons/trunk.
bzr revid: tde@openerp.com-20120703122020-79rl9b03mygz5s0h
2012-07-03 14:20:20 +02:00
Dharti Ratani (OpenERP) 35f394ac16 [IMP]fixing sale application related access errors
bzr revid: dhr@tinyerp.com-20120702084420-4f5ouv9rrf0m7w01
2012-07-02 14:14:20 +05:30
Dharti Ratani (OpenERP) a1b4d74f32 [MERGE]
bzr revid: dhr@tinyerp.com-20120629060714-iwdnbocw1ygt3pwz
2012-06-29 11:37:14 +05:30
Fabien Pinckaers c15de911e5 [IMP] fix project dashboard, removing bad reports, imp dashboard
bzr revid: fp@tinyerp.com-20120628163009-xeiz0xewhqzoimxl
2012-06-28 18:30:09 +02:00
Dharti Ratani (OpenERP) ded491ae3e [IMP]project user read access to analytic account
bzr revid: dhr@tinyerp.com-20120618124305-6la3hyl6gz0t27jv
2012-06-18 18:13:05 +05:30
Dharti Ratani (OpenERP) 4dddcfcb53 [IMP]allocating all accessrights of project to a project manager
bzr revid: dhr@tinyerp.com-20120618071339-101ym86uisbxmr2i
2012-06-18 12:43:39 +05:30
Dharti Ratani (OpenERP) 053285acd0 [IMP]Project - fixing access rights for project user and manager
bzr revid: dhr@tinyerp.com-20120615124316-m8vx3pq2jmjl4o46
2012-06-15 18:13:16 +05:30
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
Kuldeep Joshi (OpenERP) f10ee06af4 [IMP]project: remove res.partner.address
bzr revid: kjo@tinyerp.com-20120307070225-h95rszb7idselhfj
2012-03-07 12:32:25 +05:30
Kuldeep Joshi (OpenERP) 3dede44ae8 [FIX] project : mail right to project user
lp bug: https://launchpad.net/bugs/912182 fixed

bzr revid: kjo@tinyerp.com-20120105124545-biu8a9cphhcz8vmx
2012-01-05 18:15:45 +05:30
Fabien Pinckaers 12d854f48e [FIX] on project, timesheets
bzr revid: fp@tinyerp.com-20111223100053-pi9qw3tt5i1a7r2c
2011-12-23 11:00:53 +01:00
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 c1810c3483 [NEW] Project Cumulative Flow and Task History for Kanban
bzr revid: fp@tinyerp.com-20111203140427-jf57fyvvo60g31dl
2011-12-03 15:04:27 +01:00
Fabien Pinckaers 07bfa5c23d [IMP] access rights
bzr revid: fp@tinyerp.com-20101228145253-192pr7ifqlyt90jn
2010-12-28 15:52:53 +01:00
François Degrave 8850bcb84b [FIX] dependencies in security groups
bzr revid: fde@openerp.com-20101228083043-6sfsuh4uvqvhu3ap
2010-12-28 09:30:43 +01: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
Fabien Pinckaers fe9500c14e [IMP] access rights cleaning
bzr revid: fp@tinyerp.com-20101016164709-8w551aaosqx0dufu
2010-10-16 18:47:09 +02:00
jas c18c64a99a [IMP] project : improved access rights, group and menus
bzr revid: jas@tinyerp.com-20101015141126-gzqsm3jm4sei200d
2010-10-15 19:41:26 +05:30
sbh (Open ERP) 317f801499 [Fix] Project: Fix the access rule of project manager
bzr revid: sbh@tinyerp.com-20100827055847-6f4eq16xc3pofqp8
2010-08-27 11:28:47 +05:30
sbh (Open ERP) b8e2e2139d [REM] project: Remove the project.message object ,
[ADD] project_message: Add the action related to project

bzr revid: sbh@tinyerp.com-20100826105642-i8938zr08bwahgw6
2010-08-26 16:26:42 +05:30
Harry (OpenERP) 343f5cad18 [FIX] project: Remove dependcy of mail_gateway from project module and add dependent mail_gateway module into project_mailgate module
bzr revid: hmo@tinyerp.com-20100820123727-7dj6gek00vqau1ae
2010-08-20 18:07:27 +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
AMP (OpenERP) 0167021256 [MOD] project_*: usability improvement in access rights
bzr revid: amp@tinyerp.com-20100806112915-633mbup0b3z3grgs
2010-08-06 16:59:15 +05:30
AMP (OpenERP) 9b5984dca8 [MOD] project_*: usability improvement in access rights
bzr revid: amp@tinyerp.com-20100805101407-vr205zdnfy3dre9h
2010-08-05 15:44:07 +05:30
AMP (OpenERP) 6eb86abda3 [MOD] usability improvement in access rights
bzr revid: amp@tinyerp.com-20100723072243-kpex4cdgckhga46d
2010-07-23 12:52:43 +05:30
rch(OpenERP) 4266b285c3 [IMP]: Improved project dashboard.
bzr revid: jni@tinyerp.com-20100713120301-zbn0v36ofcyhwwvp
2010-07-13 17:33:01 +05:30