Commit Graph
21 Commits
Author SHA1 Message Date
Thibault Delavallée 6b0064cc18 [DOC] project: improved and cleaned labels and helps 2016-09-22 13:47:19 +02:00
Raphael Collet fa082019a0 [IMP] models: change API of _group_by_full
The dictionary `_group_by_full` is replaced by a field parameter `group_expand`
that is assigned to the method name.  The API of the method has been simplified
as well:

    @api.multi
    def _read_group_stage_ids(self, domain, read_group_order=None, access_rights_uid=None):
        # the stages are given by self.ids (wrong model);
        # read_group_order is the order given to read_group() on self;
        # return stages.name_get(), {stage.id: stage.fold)

    _group_by_full = {'stage_id': _read_group_stage_ids}

is now written:

    stage_id = fields.Many2one(..., group_expand='_read_group_stage_ids')

    @api.model
    def _read_group_stage_ids(self, stages, domain, order):
        # stages is a recordset;
        # order is the order to use on stages' model;
        # return a recordset which is a superset of stages
2016-09-16 17:35:24 +02:00
Denis Vermylen (dve) 85741a0687 [IMP] project,...: improve english text
is senT
(*) this configuration -value-(remove) is related to the company you're logged inTO
is -a- plain text
2016-09-13 17:50:20 +02:00
Christophe Simonis 1a77d9d02a [MERGE] forward port branch saas-12 up to 476cb5a0 2016-09-03 23:57:57 +02:00
Christophe Simonis 55d2e4b7cf [MERGE] forward port branch saas-11 up to bde7f88 2016-09-02 17:23:34 +02:00
Christophe Simonis 8a4635a4e2 [FIX] project{,_issue}: mark related fields as readonly 2016-09-02 13:58:27 +02:00
Yannick Tivisse 665781d5a8 [IMP] various: Move all configuration fields from res_company form to the related modules
=======
Purpose
=======

The company form should be heavily simplified. It's complex to have some settings on the company form, and others on the Settings menu of the related app. It would be much easier to have all settings in Settings menu (res.config) and nothing on the company, even if some of the Settings are multi company. (Stored on the company but set from the Settings menu).
2016-09-02 13:44:15 +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
Yannick Tivisse bfa98c718d [IMP] project: Don't display onboarding data tasks while the project is archived 2016-09-02 08:46:33 +02:00
Simon Lejeune 742c81e1ff [FIX] project: default order of task type
Before this patch, the order of a project's task type (its columns)
were defined by a sequence. However, when you quick-create columns,
they have the same sequence value: 1 by default. This results in
weird behavior when you edit a task type (for example, by changing its
tooltips), the column is moved at the end.

By ordering by sequence and id, the behavior is more intuitive
as the colum doesn't move when you edit it.
2016-08-30 17:18:59 +02:00
Raphael Collet bf668b64c1 [IMP] all: clean usage of safe_eval
Specifically: do not import `safe_eval` as `eval`, keep it explicit instead.
2016-08-11 15:36:56 +02:00
Thibault Delavallée c8a313d51e [IMP] various: use odoo for imports instead of openerp and update class names 2016-08-10 15:48:07 +02:00
Jainik Patel 6a434fae8a [IMP] project: split rating on issue in its own option 2016-08-10 14:15:31 +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
Fabien Pinckaers fb289e0b5d [SEC] rating: escape feedback, text2html to avoid js injection
[IMP] rating: website rating page: reviewed design, rate on click, update on submit
[IMP] rating_project: rating_status: 'no' instead of False
[IMP] rating_project/issue: smileys insteaf of thumbs for consistency in kanban
[IMP] rating: allow to update an existing rating (feedback + rate)
[IMP] rating: consistency on rating names (statisfied, not satisfied, higly dissatisfed)
[IMP] rating: avoid deadend after rating, button to go to Odoo
[IMP] rating: res_config better sentence
2016-07-02 18:33:55 +02:00
Ravi Gohil b9e8bc5687 [FIX] project: consider inactive projects for analytic accounts 2016-06-30 14:41:23 +02:00
Ravi Gohil 25dcc5e03c [IMP] project: use sql constraint for start/end date 2016-06-30 14:41:22 +02:00
Ravi Gohil 58b5d09890 [MIG] project: migration to new api of project.py
Also:
- removed onchange_partner_id() from 'project.project' model as
  'pricelist_id' field does not exist in project nor in any inherit(s)
  since its removal in 2008 by 07b1f0b9da
- removed 'type' field from _defaults dictionary of 'project.project'
  model as it does not exists anymore, it used to be defined on
  account.analytic.account
- removed on_change_template() from 'account.analytic.account' model as
  it doesn't seem to be useful and/or called from any view
- overridden _default_get() for 'project.project' model to set default
  value for 'use_tasks' field of inherits account.analytic.account
2016-06-30 14:41:22 +02:00
Gaurav Panchal 40fa74e3f5 [MIG] project: migration to new api except project.py 2016-06-30 14:41:21 +02:00
Ravi Gohil 2c29168307 [MOV] project: split and restructured files according to new API guidelines
- created report/project_cumulative.py for model
  project.task.history.cumulative that was in project.py
- moved project.project kanban view from project_dashboard.xml
  to project_views.xml, which required moving some menuitems
  as well so they are available while refering them in other files
2016-06-30 14:41:21 +02:00
Ravi Gohil 1449a1eaf1 [MOV] project: renamed and moved files according to new API guidelines 2016-06-30 14:41:20 +02:00