Commit Graph
114392 Commits
Author SHA1 Message Date
Géry Debongnie f2a5ebe32f [FIX] web: properly handle setting stored in localstorage 2017-12-11 10:26:57 +01:00
Ivan Yelizariev 8a9900200b [REF] website_sale: remove obsolete optional_products variable
The variable is not used anymore.

This commit closes #21461
2017-12-06 20:24:46 +01:00
Richard Mathot f9a189e07e [FIX] hr_holidays: poorly designed demo data
If an user (or a developer) wants to install this module twice, she
could not before this patch. Because those demo data call a function
that crashes if the state of the demo data has been modified... and
modifies it!
We avoid this issue by resetting the states of the demo data
explicitely (before a deeper refactoring)
2017-12-06 17:00:25 +01:00
William Henrotin 2b19d9e95d [IMP] mrp: filter on 'this month' missing
by default, the filter on activities for the current month must be set
in the Overall Equipment Effectiveness
2017-12-06 16:27:08 +01:00
Prakash Prajapati f74d557334 [IMP] mrp: improve report Overall equipment effectiveness. 2017-12-06 16:27:08 +01:00
fda-odoo 411afe54be [IMP] website_rating_project: redesign project rating page
This commit improves and cleans the project rating page;
 - statistics of top 5 rated in last 15 days in right column of the page
 - move progress bar for tasks on right side of the page
 - show the detail of a rating when mouse hovering on the smiley

Since the page is refreshed, the statistics computation is done
with a single SQL request to extract all raw data to calculate
period and partner stats to display.

Thanks to @ror-odoo for the first implementation and to @jem-odoo for its review
2017-12-06 16:02:29 +01:00
Thibault Delavallée ebc4704b21 [FIX] test_mail: update counters
It seems query count oscillates between 45 and 46. I will have to check
but let us raise it a bit to avoid random red runbots.
2017-12-06 13:12:32 +01:00
Christophe Simonis 8ac9e3b667 [MERGE] forward port branch 11.0 up to acff087b01 2017-12-06 12:54:37 +01:00
Christophe Simonis acff087b01 [FIX] point_of_sale: use defined variable
Oversight of previous forward-port
2017-12-06 12:53:39 +01:00
dip-odoo 8eea65b61d [IMP] mail: add a 'Done & Schedule Next' button in activity wizard
Purpose
=======

Users often log an activity and want to schedule another one immediatly.

We should limit the number of clicks

Specification
=============

- Mark as done should be a secondary button
- Add a new secondary button : DONE AND SCHEDULE NEXT
- It should mark the activity as done and close the modal
- It should open a new activity modal

Behavior and available options are now the same in the Chatter modal and
the wizard itself. It implies correcting the crm_tour flow
2017-12-06 12:40:41 +01:00
Nicolas Lempereur b1886ef60e [FIX] google_{account,calendar}: typo PY3 01e35141
When an error happen (which may have been intended as such and ignored
down the error pipeline) in google_account/google_calendar there was
some typos that tracebacked.

opw-783271
closes #21263
2017-12-06 12:40:41 +01:00
Christophe Simonis 8ef7af6afe [MERGE] forward port branch 11.0 up to f96a797fe6 2017-12-06 12:02:58 +01:00
Christophe Simonis f96a797fe6 [MERGE] forward port branch saas-16 up to b8540eefe3 2017-12-06 11:59:38 +01:00
Thibault Delavallée 010add2903 [FIX] test_(performance/mail): better use test_performance in test_mail and update counters
Containing

 * fix self._round not always existing;
 * fix counter for activity creation;
 * use self.str() in order to have some variation in test_mail;
 * separate base performance to mail feature specific performance tests;
2017-12-06 11:33:10 +01:00
Arnold Moyaux 3beffd3a34 [REF] hr_maintenance: rename to Maintenance - HR 2017-12-06 10:25:55 +01:00
Arnold Moyaux dfb50572eb [REF] maintenance: rename to maintenance 2017-12-06 10:25:55 +01:00
Arnold Moyaux 992b13e382 [IMP] mrp: kanban view, see working user
This commit add an icon for each people that worked on the Wo
and also
a play icon if the WO is in progress
a pause icon if the WO's workcenter is blocked.
2017-12-06 10:25:55 +01:00
amoyaux 2c0211f94d [REF] mrp: move step from quality_mrp to workorder 2017-12-06 10:25:55 +01:00
qsm-odoo dc5755698c [FIX] web: restore saas modals
This commit basically reverts 4974f8edb7
The fix was unstable (as restoring a feature that was not there
before release, even if originally merged before). This was in
particular breaking saas modals as lots of them are still opened
using 8.0 system... and opening them this way might make them appear
below their own backdrop in the new system the mentioned commit
restored.

We will think about that feature again for a future version.
2017-12-05 18:45:58 +01:00
Goffin Simon c487381dbf [FIX] pos_restaurant: Installing pos_restaurant with demo data
When installing the module pos_restaurant with demo data, the check boxes for
module_pos_restaurant and is_table_management must be checked.

opw:785943
2017-12-05 16:56:30 +01:00
Christophe Simonis b8540eefe3 [MERGE] forward port branch saas-15 up to 970be94f37 2017-12-05 16:46:14 +01:00
Christophe Simonis 970be94f37 [MERGE] forward port branch saas-14 up to e9c2dcd28d 2017-12-05 14:52:16 +01:00
xmo-odoo 96fcd4b56c [FIX] website_sale_stock: don't break product from non-website routes
Fixes #21442
2017-12-05 14:35:31 +01:00
Yannick Tivisse 03375dad3c [FIX] product: Hide product variant field if option not actived
Purpose
=======

If the group_product_variant is not activated, the field should be hidden
2017-12-05 14:26:56 +01:00
Christophe Simonis e9c2dcd28d [MERGE] forward port branch 10.0 up to dd7ee15fb8 2017-12-05 14:21:11 +01:00
Christophe Simonis dd7ee15fb8 [MERGE] forward port branch 9.0 up to ce038f5d15 2017-12-05 13:52:02 +01:00
Lucas Perais (lpe) 2a86e9245c [FIX][BACKPORT] Always round monetary values in database
backport of afef71d6b9

Original commit message:

Let `create` and `write` round monetary field values before sending them to the
database. Pass the values to be written to `field.convert_to_column`, so that
the currency can be retrieved from the values, and the value be rounded.
2017-12-05 13:46:06 +01:00
Xavier Morel 150fc064fd [FIX] product: image changes not sticking everywhere
Fixes #20046

Simply reverting e5ef1c5917 looks to
work *but* since I didn't note the repro case for the issue and don't
remember what it was it may re-introduce previous breakage. Instead,
ensure all "sizes" for the image are reset if any of the sizes is
present *and* Falsy by adding a final case to the conditional.

If any of the image fields is present and non-falsy one of the
previous branches will be taken, so we can just check that any of the
image fields is present at all (this implies it's falsy).
2017-12-05 13:35:51 +01:00
Romain Derie ce038f5d15 [FIX] auth_oauth: correctly retrieve user facebook email
Before this commit, you could never get the user's facebook email. Since there
was no email field on facebook response, email would be then set to an auto
generated value like 'provider_2_user_0123456789123456' by odoo.

Now, we correctly request user's email to facebook.

opw-782771
2017-12-05 13:29:06 +01:00
Yannick Tivisse c31c5a619a [MERGE] website(_sale): Improve 'todos' in website's dashboard with minor usability
Purpose
=======

Todo buttons are too confusing because it's mixing app suggestions & business todos, etc.
It looks empty when ecommerce is not installed

Specification
=============

[IMP] website(_sale): Improve UX for the website dashboard

    There are some usability issues in the website dashboard

    1/ Move button 'Go to Website' in the header
    2/ Hide the action button bar if there's nothing in it
    3/ Align the labels in the graph's legend
    4/ Make the legend labels and display more obvious
    5/ Modify the graph colors to be more readable
    6/ Remove margins around todo buttons

[IMP] website_sale: Fetch confirmed orders grouped by product templates

    Sales graph should be based on confirmation_date of sales orders, not the date_order.

    Date should be aggregated by product templates, not variants

[IMP] website: Reload website dashboard when coming back from breadcrumb

    When clicking on a dashboard element (eg: an invoice) and modifying it doesn't reload the dashboard, which could be confusing.

[IMP] website_sale: Display correct records on dashboard buttons

    Display the wanted sales orders when clicking on 'Abandoned Carts' or 'Unpaid Orders'

[IMP] website: Remove the suggested app on the website dashboard

[IMP] sale: Rename 'Order Date' into 'Confirmation Date' in SO tree view

[IMP] sale: Don't copy confirmation date on duplication
2017-12-05 13:17:41 +01:00
Dhawal Limbuwala 4764cae315 [IMP] website(_sale): Improve UX for the website dashboard
Purpose
=======

There are some usability issues in the website dashboard

Specification
=============

1/ Move button 'Go to Website' in the header
2/ Hide the action button bar if there's nothing in it
3/ Align the labels in the graph's legend
4/ Make the legend labels and display more obvious
5/ Modify the graph colors to be more readable
6/ Remove margins around todo buttons
2017-12-05 13:13:23 +01:00
Dhawal Limbuwala 595a7b9c1b [IMP] website_sale: Modify demo data to be displayed on dashboard 2017-12-05 13:13:23 +01:00
Dhawal Limbuwala 930b682b1d [IMP] website_sale: Fetch confirmed orders grouped by product templates
Purpose
=======

Sales graph should be based on confirmation_date of sales orders, not the date_order.

Date should be aggregated by product templates, not variants
2017-12-05 13:13:22 +01:00
Dhawal Limbuwala 3821eb218e [IMP] website: Reload website dashboard when coming back from breadcrumb
Purpose
=======

When clicking on a dashboard element (eg: an invoice) and modifying it doesn't reload the dashboard, which could be confusing.
2017-12-05 13:13:22 +01:00
Dhawal Limbuwala 350fd6aa8a [IMP] website_sale: Display correct records on dashboard buttons
Purpose
=======

Display the wanted sales orders when clicking on 'Abandoned Carts' or 'Unpaid Orders'
2017-12-05 13:13:21 +01:00
Dhawal Limbuwala 109857949d [IMP] website: Remove the suggested app on the website dashboard 2017-12-05 13:13:21 +01:00
Dhawal Limbuwala 0b19e1737e [IMP] sale: Rename 'Order Date' into 'Confirmation Date' in SO tree view 2017-12-05 13:13:20 +01:00
Dhawal Limbuwala 132738da5f [IMP] sale: Don't copy confirmation date on duplication 2017-12-05 13:13:20 +01:00
Adrien Dieudonne 6d7d6d9460 [FIX] web: debug_manager: change view_type to form in url
Before this commit, there were an error when you tried
to change the view_type directly from the url in debug mode.
The controller of the view wasn't defined and a crash happened
when we tried to render the DebugManager.View.

To fix this, we now wait for the 'switch_mode' which sets
the controller to the active view.
'do_load_state' is now chained to 'switch_mode'
2017-12-05 11:37:48 +01:00
Nicolas Lempereur 04bfd54013 [FIX] sales_team: multicompany issue typo 3ad1867e
3ad1867e could lead to wrong results in a multicompany setting because
the change got the company from the lead but it was intended to be
gotten from the user.

Since ('company_id', 'child_of', False) returned "root" companies, the
code still got a sales team but possibly one from another company if the
user was on another company that its sales team.

This would lead to an access issue that this commit solves.

opw-784455
closes #21428
2017-12-05 11:07:51 +01:00
Ruter fe8668e509 [FIX] web: Setting disable_favorites on Search View causes Exception 2017-12-05 09:31:00 +00:00
Ruter ed326e0569 [CLA] signature for ruter 2017-12-05 09:31:00 +00:00
jem-odoo 969184e4da [FIX] sale_timesheet: timesheet revenue should be zero on milestone 2017-12-05 09:59:37 +01:00
jem-odoo 1f09312bde [FIX] sale_timesheet: reset delivered qty when removing last timesheet line
When removing a timesheet line (on delivered quantity SO line), the delivered
quantity should decrease. This is the case when the is at least one timesheet
left, but not when we remove the last timesheet.
Forcing resetting value to zero make vendor bills flow, so adding
'sale_analytic_norecompute' key was required to force delivered
quantity.

This commit fix this bug, and provides some tests.
2017-12-05 09:59:37 +01:00
Alexandre Kühn 6cc5a9963b [FIX] web,*: time format from user's language
Before this fix, the chatter always showed dates of messages in military time format.

This was not the expected behavior, as the user could have had customize
the date and time format in the settings of the current language.

Steps to reproduce the issue:

1. Set Odoo in English
2. Settings > Translations > Languages > English
   2.1. Set Date Format to %m/%d/%Y
   2.2. Set Time Format to %I:%M:%S %p
3. CRM > (Select any opportunity with at least one message) > Mouse hover on elapsed time (e.g. "an hour ago")

Expected:

- It shows the customized time format (e.g. 11/07/2017 5:33:36 PM)

Results:

- It shows the military time format (e.g. Tue Nov 07 2017 17:33:36 GMT+0100)

opw-781647
2017-12-05 09:13:31 +01:00
Lucas Perais (lpe) 519555054a [FIX] web: BinaryFile not download when new record
Let's have:

- on res.company a binary file field named x_file
- on res.users a related binary field to company_id.x_file, and make it readonly
- On the res.users form view, display the new field
Before this commit in create mode, upon clicking on download the file, the server crashed, because the record id was empty.
Then, the JS crashed in turn because of the unhandled 404 from the server.

Since the id of a new record will always be unset, we choose to disable the download option in this very specific case

OPW 777042
2017-12-05 08:19:08 +01:00
Joren Van Onder b2f0af4543 [FIX] point_of_sale: allow searching a partner on >2 fields
When searching for a partner the ' ' (SPC) character can be used as a
field separator. You can search for e.g.:

'agr namur'

which will return the 'Agrolait, 69 rue de Namur,...' partner.

For some reason only the first space was considered a separator. So
e.g.:

'agr namur belgium'

wouldn't work.

This commit makes it so that every space character is considered a
separator.

Fixes #21357
2017-12-04 14:18:36 -08:00
Christophe Simonis a8d01cbf4e [MERGE] forward port branch saas-15 up to a447da75fd 2017-12-04 20:12:19 +01:00
Christophe Simonis a447da75fd [MERGE] forward port branch saas-14 up to e7d174a142 2017-12-04 19:25:51 +01:00
Christophe Simonis e7d174a142 [MERGE] forward port branch 10.0 up to 78aef7605c 2017-12-04 19:06:41 +01:00