Commit Graph
245 Commits
Author SHA1 Message Date
Julien Castiaux dad9265d69 [FIX] project: correct filename on portal attachment
Create a project visible to a portal customer, create a task and attach
an attachment. As a portal user, go to the task and download the
attachment, the downloaded filename is the numeric identifier of the
document instead of the document filename.

The `?download=true` force the download of the attachment and correctly
set the filename.

opw-2008517

closes odoo/odoo#34098

Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
2019-06-13 13:22:22 +00:00
Toufik Ben Jaa ec327d3f86 [FIX] project: Access to attachments with CDN
- The attachments in the tasks page on the portal can be accessed by
  clicking on them.
  They are delivered by the controllers at URL `/web/content/XXXXX`.

  By default when enabling the Content Delivery Network feature on the
  website module, the content delivered by the controller
  `/web/content/` is done through the CDN which has no user account,
  thus may not have access to the attachment.

  To fix the issue, we disable the CDN feature for the attachments in
  the tasks portal page.

  OPW-194571

closes odoo/odoo#31924

Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-03-18 15:33:14 +00:00
Nicolas Lempereur b1a8a15c1a [FIX] project: double rating document name in search
The filter parent_res_name was already in the original search view so
the duplicated one was not needed and caused to have two times the
filter in the search view with possible different behavior.

opw-1949559
closes #31707

Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-03-08 14:04:03 +00:00
Pierre Paridans 220644785c [FIX] project: state, priority and title alignment
Priority's star, Kanban State's bullet and name fields should be well aligned
and take less space (specially for small devices).

Related to task 1929034

closes odoo/odoo#28965
2019-02-04 13:08:40 +00:00
Christophe Simonis 069278b652 [MERGE] forward port branch saas-11.3 up to 55dafc20f6 2018-12-11 18:51:05 +01:00
Christophe Simonis 55dafc20f6 [MERGE] forward port branch 11.0 up to 7e5d5045bf 2018-12-11 17:06:48 +01:00
Christophe Simonis b09f624f20 [MERGE] forward port branch 11.0 up to 263b388c50 2018-11-22 17:52:57 +01:00
Florent de Labarre baf48ee1f9 [FIX] project: remove unused and slow field
closes odoo/odoo#28887
2018-11-21 12:17:22 +00:00
Florent de Labarre 4e37ce8855 [FIX] project: remove unused field
If `description` contains an image, the loading time of the kanban view
can be rather long. Since the field is not even used in the view, it can
be removed.

opw-1915193

closes odoo/odoo#29034
2018-12-05 08:33:36 +00:00
Christophe Simonis cc8e8237bf [MERGE] forward port branch 11.0 up to 84500c27b1 2018-10-25 13:59:45 +02:00
Christophe Simonis f2ada1560e [MERGE] forward port branch 11.0 up to 22a13073f0 2018-10-19 12:25:17 +02:00
Lucas Perais (lpe) fee419c7ea [FIX] project: template render attachments sudo
Related issue odoo/odoo#27256
use case is in there

Retrieving the access token for an attachment should be done as sudo
Also, we adapt the code to the method, which appears to be "api.one" (lol)

OPW 1888873

closes odoo/odoo#28074
2018-10-23 14:16:48 +00:00
Lucas Perais (lpe) ed5417b71f [FIX] project: wrong context key in task action
In JS, the groupBy attribute is a list of strings

The default_group_by key that is sometimes present in the XML views
gets converted to a list at somepoint.

Before this commit, the task action couldn't be used in the app Dashboard

After this commit, it can

OPW 1894751

closes odoo/odoo#27908
2018-10-17 15:35:04 +00:00
Christophe Simonis b4e1be8ab0 [MERGE] forward port branch saas-11.3 up to b09f624f20 2018-11-22 20:06:48 +01:00
Pedro M. Baeza 1ad4d42f0b [ADD] *: replace hardcoded data URIs with helper
- Add a method for generating an image data URI, and expose it in QWeb context

- Fix reports, website templates or mail templates with data hardcoded
  data URIs, to use the helper (Python cases), or the existing
  kanban_image helper (for JS cases)

This will gracefully handle SVG support in addition to classical image
formats.

Closes #26635
2018-10-03 17:48:14 +02:00
Thibault Delavallée a736143fe0 [IMP] project: add activity view on main actions
Purpose is to extend the use of the newly-introduced activity view allowing
to see at a glance activities to perform on a given model. It eases daily
job of people working with activities.

Updated :

  * project all tasks main menu action as tasks coming from project already
    had the view;

This commit is linked to task ID 1889413.
2018-10-02 17:09:24 +02:00
Christophe Simonis 43b63a0465 [MERGE] forward port branch saas-11.4 up to 57e387b645 2018-10-01 16:01:54 +02:00
Christophe Simonis 998723b909 [MERGE] forward port branch saas-11.3 up to e980af9df0 2018-10-01 11:27:51 +02:00
qsm-odoo 4f15c939a7 [REF] *: add oe_structure IDs
Future update will allow to save oe_structure editions in an inherited
view instead of editing the original view in place. The condition is
to have an id on the .oe_structure element which contains the
'oe_structure' string.
2018-09-30 19:55:17 +02:00
Christophe Simonis 5f08d82bcd [MERGE] forward port branch 11.0 up to fd122aec52 2018-09-26 19:37:29 +02:00
sri-odoo c25689fa0e [REF] portal, *: portal background is now gray by default
* account, project, sale, website_crm_partner_assign

- adapt table bg to new default page background
- keep searchbar design across pages
2018-09-25 12:57:22 +02:00
Nimesh Jethva dd7c0774de [IMP] project: improve project form view usability
Some points have to be improved

 * 'Name of the tasks' field should always be visible. It shows the user such
   a change in configuration is possible;
 * tasks stat button is a way for the user to create a new task from the
   project form view. Just like the subtasks stat button that always shows
   on the task formview;
 * as he might be changing the 'name of the tasks', he should see the
   consequence of this change in the stat button (as the 'name of tasks'
   field might not directly speak to everyone, it is a way to show them what
   this field does);

This commit is linked to task ID 1884015 and closes PR #26906 .
2018-09-24 14:27:44 +02:00
Thibault Delavallée 23163a9c82 [IMP] project: light improvement of project portal page to match new page display
It was rendering quite badly compared to other new portal pages.
2018-09-21 17:12:55 +02:00
Thibault Delavallée 3652427c75 [FIX] project: fix display of rating page for projects
Display was ugly and using only a small part of the screen. Let us use the
whole available space.

This commit is linked to task ID 1880739.
2018-09-21 17:11:58 +02:00
Thibault Delavallée a1127326ee [FIX] project: fix typo in project portal rating 2018-09-21 17:11:55 +02:00
Prakash Prajapati da03aa3138 [IMP] project: remove the label 'record's colour' before the color picker
It seems not necessary to have this label.

This commit is linked to task ID 1884053 and closes PR #26936 .
2018-09-21 11:10:20 +02:00
Hiral Bhavsar 5b1ccb6609 [IMP] project, sale_timesheet: improve menus and filters
Specifications: improve menu organization, search filters and groupby, reorder
filters, update some field labels.

This commit is related to task #1875881 and PR #26938 .
2018-09-19 14:33:39 +02:00
Sébastien Theys 36d1b456d2 [IMP] portal,various: factorize "back to edit mode"
The same code was duplicated in several places. This commit creates a single template for it.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
RomainLibert 44fd3bc808 [IMP] *: implement new version of dashboards
In order to implement the next version of the dashboards in enterprise
we need to make some changes in community namely :
   * Modify some search views (used in the dashboards)
   * Remove the date/datetime filters from the search views as they are
     duplicated with the time ranges
   * Rename the menu items from Dashboard to Overview
2018-09-18 12:31:27 +02:00
jem-odoo 0cbf638730 [FIX] project: remove default group_by
When seeing the task of a proejct, we don't want to force
the group by stage on the list view.
2018-09-12 10:44:12 +02:00
sri-odoo a56a476a97 [REF] sale, project: move edit button into portal top banner 2018-09-12 09:37:56 +02:00
sri-odoo 9dc300b467 [REF] project, hr_timesheet: use template for 'tasks' and 'projects' 2018-09-12 09:37:56 +02:00
sri-odoo c78a2dbd8f [REF] portal, *: use a template for tables
Use a template in order to simplify maintenance and keep a consistent design
2018-09-12 09:37:56 +02:00
sri-odoo 1f946a2bec [REF] portal, *: move breadcrumbs in searchbar
* account, project, purchase, sale, website_crm_partner_assign

In some circumstances, we need to move the breadcrumbs into the
searchbar.
2018-09-12 09:37:56 +02:00
sri-odoo 5f71dad5e3 [IMP] portal, *: review home entries templates
* account, project, purchase, sale, website_crm_partner_assign

- Create a single template to be used for all doc's entry in order to
  simplify maintenance
- Make the entire entry clickable using bts4 classes
- Fix an alignment issue between title and badge
2018-09-12 09:37:56 +02:00
Christophe Simonis 86ff929ad6 [MERGE] forward port branch saas-11.4 up to 1199451606 2018-09-10 17:06:18 +02:00
Yannick Tivisse 7978d4ba0f Revert "[IMP] *: Define groups on res.users models"
This reverts commit 99f497b390.
2018-09-10 14:23:42 +02:00
Christophe Simonis 68d36512ef [MERGE] forward port branch saas-11.4 up to d78f23df84 2018-09-07 20:20:45 +02:00
Christophe Simonis 49c3264ce0 [MERGE] forward port branch saas-11.3 up to 4850fb0838 2018-09-07 14:43:48 +02:00
Christophe Simonis 21a186dadd [MERGE] forward port branch 11.0 up to 737ca0eb42 2018-09-06 18:13:56 +02:00
Xavier Morel a3cd0ac2ce [FIX] project: add access token to task attachment display
Following CDN expansion (d98b262398)
portal attachment links now go through the CDN, which is an issue for
restricted-access attachments e.g. attachments bound to specific objects
(such as support tickets).

Add an access token to the attachment links in the /my/task template.

Cf OPW-1882014 (fixed ad-hoc by editing the relevant view on odoo.com)
2018-09-06 16:44:00 +02:00
jem-odoo 75031d61dd [FIX] project: restore default group by
When switch to list view for tasks, we want them to be grouped
by stage. This was removed at 8169134715 without
justified reason, so this commit reset the previous behavior.
2018-09-05 15:23:05 +02:00
Sanjay Jamod 2b51fefa5e [FIX] *: BS4, adapt page-header class
Closes https://github.com/odoo/odoo/pull/26420
2018-08-31 12:01:36 +02:00
Pragya Ladda 3c4c6b955d [FIX] project: use correct field name for rating
- Description of the issue
  Get internal server error while render page at website side

- Current behavior before commit:
  name field does not exist in rating.rating model
  because of this page should not be render and gives internal server error

- Desired behavior after commit:
  set proper field res_name which is already exist in rating.rating model

Closes #26568
2018-08-24 15:48:26 +02:00
Sébastien Theys 46846d8176 [FIX] various: replace t-field-options by t-options
The syntax changed but those occurrences were not updated.

Task: none
PR: none
2018-08-24 10:46:37 +02:00
qsm-odoo 0a6fe87681 [FIX] *: BS4, restore some portal breadcrumb
The new 'breadcrumb-item' class was missing at some places.
2018-08-20 17:46:46 +02:00
Deep Patel 6434e9d37a [FIX] *: BS4, badge in list items on portal pages
* account, project, purchase, sale, website_crm_partner_assign

With BS3, badges inside list items were automatically right-aligned.
This is not the case anymore so we have to put an explicit class for
this. Also, badges have no default style anymore, so we have to choose
a color (secondary in this commit).
2018-08-19 16:57:14 +02:00
Fabien Pinckaers 5d44df1c0a [IMP] *: tabindex on a[type='action'] for BS style fix 2018-08-18 16:17:50 +02:00
Fabien Pinckaers 2c61a3514c [IMP] project: show link of empty list 2018-08-18 11:42:24 +02:00
jem-odoo 3e1207c4ac [IMP] project: task log settings 2018-08-13 17:32:22 +02:00