Commit Graph
96 Commits
Author SHA1 Message Date
Kartik Chavda fae6762bfc [FIX] project: fix task analysis report base on set project
Purpose of this commit is to show only task that
has project_id set in 'Task Analysis' menu.

So, in this commit select only those tasks that has
project_id set in 'Task Anamysis' menu's query.

task-2722863

closes odoo/odoo#82565

Closes: #82442
X-original-commit: d8f3a0c4722d299f73892403b4ef5800913ea2a8
Related: odoo/enterprise#23409
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-01-12 10:17:53 +00:00
Laurent Stukkens (LTU) 4ed77405e4 [FIX] project: change user_id into user_ids in various view and reports
The `user_id` field was replaced in odoo/odoo#74087 by `user_ids`.
The field change was forgotten in various reports and the a wizard.

This commit fixes those.

task-2638359
closes #76166

X-original-commit: f584485f0c69eda002491ca9b63bc3d228e95001
2021-09-14 21:25:00 +02:00
William Braeckman 7563b448da [IMP] project: add personal task stages and multiple assignments
Adds personal stages to tasks.
Users assigned to tasks will be able to have their own pipeline to
handle their tasks independently of the project's pipeline.

The assignee field on Tasks has also been changed to a Many2many to
support multiple assignees on one task.

The same table is used to store those information, essentially a triplet
(task, user, stage), to ensure that:
1) personal stages only apply to tasks to which you are assigned to.
2) synchronizing to make sure that you don't have a personal stage for a
   task on which you are not assigned anymore.

Alongside those changes, some minor changes have also been made:
- Modified the task's tree view.
- Renamed the Tasks menu to 'My Tasks'.
- The default view is now the kanban view for the 'My Tasks' action.
- project_id is not required anymore, tasks with no project are
  considered 'private', those tasks are only visible to those that are
  assigned to it.
- Added tracking of both user_ids and depend_on_ids in the chatter.

Closes odoo/odoo#74087

Task ID: 2398734
2021-09-01 07:17:40 +00:00
Mitali Patel 8a585c0739 [IMP] sale_(project), hr_timesheet: improve task analysis report
Purpose of the commit is to improve the task analysis report
of the project app.

So in this commit, done the below changes:
- removed the # of tasks measure
- added the following measures: Rating Value (/5), Working Hours to Assign, Working Hours to Close
- removed the # from the labels of the following measures: Days to Deadline, Working Days to Assign,Working Days to Close
- renamed 'task title' into 'task'
- added a search on tag_ids and sale_order_id
- added the following filters:
   -My Projects + My Team's Projects
   -My Tasks + My Team's Tasks (rename 'Unassigned' into 'Unassigned Tasks')
   -Starred
   -Tasks Late + Tasks in Overtime
- added the following group bys: task, customer, kanban state, assignment date, creation date, deadline, last stage update

closes odoo/odoo#72587

Taskid: 2508645
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-07-22 09:09:49 +00:00
Dominik Rubo 3e768c232f [FIX] project: fix language errors
This commit fixes various types of language errors in strings visible to the
user, including
- singular/plural mix-ups
- missing or incorrect punctuation
- missing or incorrect articles
- inconsistent use of title case and sentence case and other capitalization
  errors
- mixed-up words
- missing words
- incorrect prepositions
- missing or incorrect apostrophes

closes odoo/odoo#60189

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 17:19:30 +00:00
Helly kapatel 1c9a6db16f [IMP] various: Change 'assignation' to 'assignment' across all modules
Purpose
=======
The main definition of 'assignation' is the following:
   "an appointment to meet someone in secret, typically one made by lovers"

The correct word we should be using is 'assignment':
   "the allocation of someone or something as belonging to a particular group or category"

So in this commit change every iteration of the word
'assignation' to 'assignment', across all modules.

closes odoo/odoo#45041

Taskid: 1966215
Closes: #45041
Related: odoo/enterprise#8375
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-20 14:12:51 +00:00
MaxLarue 279d32beab [IMP] project: update task report for easier override
Aliasing the fields in the select clause of the task report allow to do joins latter when inheriting from this object without getting ambiguous fields errors.

related task 2009563
2019-08-19 06:40:39 +00:00
Naglis Jonaitis 7417d8fc13 [IMP] *: fix typos in field definitions
* account, crm, hr, im_livechat, l10n_ch, l10n_it_edi, mail,
mass_mailing, project, stock, base

- `String` -> `string`;
- `defaut` -> `default`;
- `defaults` -> `default`;
- `reandonly` -> `readonly`;
- removed redundant `placeholder` attribute for `Char` field;
- removed redundant `size` attribute for `Float` and `Integer` fields;
- changed to use `Selection` instead of `Char` for a field having a
defined `selection`.

closes odoo/odoo#35356

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-31 17:14:19 +00:00
Geoffroy Larue 400f769796 [REM] project, hr_timesheet: remove date_start
Remove date_start in project.task model, because it is not
useful. Now using date_assign instead for reporting.

Add two ids in settings views to refer from enterprise modules.

closes odoo/odoo#31101
2019-02-15 08:48:55 +00:00
Nimesh Jethva 7046479365 [IMP]project_*: Improvement in model description
Purpose of this commit is to give description more "business oriented"
because those descriptions appears in Odoo Studio which is supposed to be used by end users, not only by developers.

Related Task ID : 37311
2018-09-21 11:45:15 +02:00
Dipali Tank 21864f7b43 [IMP] account_*, project, event: various labelling, notably using customer instead of partner and using assets category
Closes #17826
2017-10-19 16:52:31 +02:00
Yannick Tivisse a9268af140 [IMP] project: Compute correclty the working days on reports 2017-08-07 12:19:31 +02:00
Yannick Tivisse e0b904fb5b [IMP] project: Make priority a 3-choices selection 2017-08-07 11:24:58 +02:00
Fabien Pinckaers 944c13a548 [IMP] project: priority -> starred, search on starred tasks 2016-12-17 14:49:18 +01:00
Thibault Delavallée 6b0064cc18 [DOC] project: improved and cleaned labels and helps 2016-09-22 13:47:19 +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
Gaurav Panchal 40fa74e3f5 [MIG] project: migration to new api except project.py 2016-06-30 14:41:21 +02:00
Yannick Tivisse 30db606c0f [IMP] project : rename Task Summary into Task title 2015-06-18 15:30:48 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16: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 4b6c948be5 [MERGE] forward port of branch 8.0 up to ed92589 2014-10-23 17:14:35 +02:00
Martin Trigaux 0bbb449d27 [FIX] project: use utc timezone in report 2014-10-23 08:58:37 +02:00
Christophe Simonis a42167d085 [MERGE] forward port of branch 8.0 up to 262eb66 2014-10-21 14:59:56 +02:00
Martin Trigaux 2893198165 [FIX] project: Overpassed Deadline computation
The field delay_endings_days represents the number of days since the deadline.
This field was using the write_date instead of now to compute it and was using the absolute value (so project in advance would also get overdue days
2014-10-17 17:21:30 +02:00
Jigar Patel db110b250a [REM] project : Remove reviewer field 2014-09-09 17:45:51 +05:30
qdc f57787e07e [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-26 11:56:49 +02:00
Christophe Simonis 5a5f811d23 [REVERT] commit 5e5c73e
Branch 8.0 is a **stable** branch. This mean no database schema
changes.
2014-08-22 13:59:22 +02:00
qdc 5e5c73e7ba [IMP] Cleaning of reporting (group_by, filters), adding new favourites and default views, some renaming (py and xml files) 2014-08-22 09:49:09 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Géry Debongnie 366a30db95 [FIX] correct various date issues in reporting
* remove old 'day', 'month', 'field' and replace them by the actual
date/datetime field
* remove weird cast to char when creating the view to prevent crash
when grouping on them
* remove duplicates (such as 'creation_date' and 'create_date')
* fix typing errors (field type date defined as a datetime in the
postgres view)
* fix search view definition
2014-07-30 15:11:22 +02:00
Denis Ledoux 88c022dfc8 [MERGE] forward port of branch 7.0 up to bbb8d8f25a 2014-07-29 11:42:10 +02:00
Thibault Delavallée 44a5268c00 [IMP] addons: search view cleaning / improvements due to the new search view display 2014-07-01 11:28:08 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary size parameters on char fields 2014-06-25 17:13:43 +02:00
Mahendra Barad (OpenERP) 3ed1c1b3a6 [IMP]improved priority and remove unused methods
bzr revid: mba@tinyerp.com-20140214114937-uzli19c8anu40lgn
2014-02-14 17:19:37 +05:30
Gery Debongnie 906f28109c [IMP] improves the task analysis reporting view by adding measures to the pivot table (num paid) and changes the view in dashboard project (addon project)
bzr revid: ged@openerp.com-20140129152440-ibi9ity10onbi3st
2014-01-29 16:24:40 +01:00
Thibault Delavallée 3a8b57ddc5 [FIX] project: seems weird to be able to work on write_date without using it
bzr revid: tde@openerp.com-20131023115525-1wu68w3fcljj37cs
2013-10-23 13:55:25 +02:00
Thibault Delavallée d56d97ec62 [REV] project: like before for CRM (see previous commit) reverted
most changes about stages.

Override in project_mrp is back therefore.

bzr revid: tde@openerp.com-20131023113716-jw8jh1jvn4dgpcyr
2013-10-23 13:37:16 +02:00
Thibault Delavallée 98ec74dd62 [IMP] project_issue: added date_last_stage_update in reports; removed month_last_stgae_update in project_task, only date is sufficient because reports already handle this correctly. Updated coding style of tests.
bzr revid: tde@openerp.com-20130710132954-tnr75cf33nti8r1u
2013-07-10 15:29:54 +02:00
Thibault Delavallée a497545cfd [REF] project_issue: removed state concept, updated views + reports + tracking.
bzr revid: tde@openerp.com-20130626155217-333zsa7hj8wjckcn
2013-06-26 17:52:17 +02:00
Thibault Delavallée 9e17dd58d8 [FIX] project: fixed various report views + some filters.
bzr revid: tde@openerp.com-20130626142242-aztr40zazsl20eif
2013-06-26 16:22:42 +02:00
Thibault Delavallée 8fbfc997ae [REF] project: stage/status refactoring
Removed concept of state on project.task (and propagated report)
Removed python inheritance towards base_stage (specific code will be re-added)

bzr revid: tde@openerp.com-20130626132519-988nfq8pw8h8c8e8
2013-06-26 15:25:19 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Antonin Bourguignon 1cf6c7f877 [MERGE] latest trunk
bzr revid: abo@openerp.com-20120912154911-yx8qrqk855omoqbs
2012-09-12 17:49:11 +02:00
Stephane Wirtel 91f8b5439c [FIX] project*: Replace the labels with 'Partner' by Contact
bzr revid: stw@openerp.com-20120809105009-0f7mw99dnavgs01s
2012-08-09 12:50:09 +02:00
Hardik 0c9c22e539 [FIX] project :KeyError: 'company_id' when group by 'Company'
lp bug: https://launchpad.net/bugs/1022496 fixed

bzr revid: hsa@tinyerp.com-20120709114152-s9mv0m67b2r5v63r
2012-07-09 17:11:52 +05:30
Kuldeep Joshi (OpenERP) 36b05a7194 [MERGE] lp:openobject-addons
bzr revid: kjo@tinyerp.com-20120702091329-mur9imoo2v6tb4hc
2012-07-02 14:43:29 +05:30
Kuldeep Joshi (OpenERP) 8407f04694 [IMP] Reporting menu change
bzr revid: kjo@tinyerp.com-20120629104326-1x1ojw0xfegodhm4
2012-06-29 16:13:26 +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