Commit Graph
140847 Commits
Author SHA1 Message Date
fja-odoo b6a28a5545 [REF] website_sale, *: use website_url on product href
* = website_event_sale, website_sale_comparison, website_sale_wishlist

Some product links were not using website_url, now that we have an url
for product.product we should use that one to reach the right product.

Part of https://github.com/odoo/odoo/pull/34149
task-2007400
2019-08-05 13:03:52 +00:00
Christophe Simonis 5f419d4ad3 [MERGE] forward port branch 11.0 up to f2f24381f2 2019-07-25 16:12:08 +02:00
Stefan Andersen 6613611039 [CLA] signature for stfnndrsn
closes odoo/odoo#35156

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-25 12:00:09 +00:00
Christophe Simonis f2f24381f2 [MERGE] forward port branch saas-15 up to d649cab7b9 2019-07-25 11:43:19 +02:00
Christophe Simonis d649cab7b9 [MERGE] forward port branch saas-14 up to 39de3797f8 2019-07-25 11:42:01 +02:00
Christophe Simonis 39de3797f8 [MERGE] forward port branch 10.0 up to cb3bf5509f 2019-07-25 11:41:33 +02:00
Julien Castiaux 6d9dabd5d9 [FIX] web: hide dashboard tooltip on page change
Go to CRM/Sales/Team Pileline. Place your cursor on the chart, a tooltip
appears, move your cusror away, the tooltip disappear. Now clic anywhere
on the interface so the page change (i.e. on "x Open Opportunities") and
quickly while the page loads place your cursor on the tooltip, it
appears but when the page change it doesn't disappear.

The problem here is that the graph element is removed from the DOM which
prevent the correct handling of the `mousehover` event used internally
by nv.d3 to show/hide the related tooltip.

The solution is to manually hide the tooltip when the graph element is
removed from the DOM.

opw-2042286

closes odoo/odoo#35172

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-07-25 09:14:45 +00:00
David Dufresne 6e759184d6 [FIX] hr_timesheet: missing group to settings
The menu Timesheet / Configuration / Settings should only be displayed to the group Administration / Settings.
Without admin access, an access error is raised when clicking on the menu item.
The equivalent menu item in other apps is restricted to Administration / Settings.

closes odoo/odoo#35388

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-02 08:02:29 +00:00
David Dufresne 921fab992d [FIX] google_drive: do not reset refresh_token
When setting the authorization code, a refresh token is generated in
the background and stored in a system parameter.

However, when saving the general settings (res.config.settings)
without changing the authorization code, the refresh token is deleted.

The refresh token should only be deleted if the authorization was
removed.

This was not the case as the set_param is always called and a value is
only computed when the authorization code has changed. The current
value was never retrieved.

Set a ir.config_parameter only when it a value has changed.

closes odoo/odoo#35028

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-01 14:11:54 +00:00
Tatiana Deribina e08f706b11 [FIX] mail: translate message of copied object
When duplicating a record, the language is set to None in the context
when copying a record

new = self.with_context(lang=None).create(vals)
self.with_context(from_copy_translation=True).copy_translations(new, excluded=default or ())

In mail.thread, the usecase of no language in the context was considered

if 'lang' not in self._context:
track_threads = threads.with_context(lang=self.env.user.lang)

but not the case of a language explicitly set to None

This means that, when duplicating a record, the tracked fields mesages
were untranslated.

Fixes odoo/odoo#35213
Closes odoo/odoo#35331

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-01 12:48:22 +00:00
Tatiana Deribina 659aa432aa [CLA] signature for Tatiana Deribina 2019-08-01 12:48:22 +00:00
wan 668b0c71fd [IMP] account: add note and transaction_type to reconciliation model
Task 1999162
We want to be able to filter with the note and the transaction type, both in the bank statement line search view and in the reconciliation model

closes odoo/odoo#34482

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-07-25 07:46:00 +00:00
wan c358aacee6 [IMP] account_bank_statement_import: simplify transient
Task 1999162
2019-07-25 07:46:00 +00:00
wan 97c3f0f025 [IMP] account_bank_statement_import: import multiple files at once
Task 1999162

Before we could only import one file at the time. Now we can do more.
2019-07-25 07:46:00 +00:00
jem-odoo 76f01bfe8c [FIX] project: better computation of hours to close a task
Before this commit, the number of hours the task is
open is computed using the resource calendar. The same
measure expressed in days simply divide the number of
hour by 24. This is not what we intend: we want to know
the number of working days since the task was created,
and not a simple conversion from hours to days.

Task-37561

closes odoo/odoo#30092

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-13 12:16:26 +00:00
jem-odoo f499166df0 [REF] resource: move code from mixin to calendar
This commit simply moves methods from the resource
mixin to the calendar, so it can be use without having
a resource.
Indeed, in some case, we want to know the duration (in
days and hours) according to a working calendar without
any resource attached (typically services using a
working calendar).

Task-37561
2019-08-13 12:16:26 +00:00
Kevin Baptiste f9fafcdcfb [IMP] hr: improve employee profile usability (back2basics)
Improve the usability of the employees profile / "My Profile"

TaskID: 2048672

closes odoo/odoo#35587

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-13 13:00:40 +00:00
RomainLibert 39a0162b80 [IMP] hr_holidays: Improve general UX (back2basics)
TaskID: 2048892

closes odoo/odoo#35541

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-13 13:35:17 +00:00
Thibault Delavallée fad9a64181 [FIX] mail: fix typo in variable name
Shame TDE, shame !

closes odoo/odoo#35693

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-13 12:57:41 +00:00
mcm-odoo 49bd48ccd2 [IMP] website_slides: make course picture editable in frontend
Purpose of this commit is to allow website designers to change course images
directly from front-end.

Task 2026846
2019-08-13 12:57:19 +00:00
Lucas Lefèvre bb55252b67 [FIX] hr: Display company in form view
The company of an employee should be displayed
in a multi company setup.

closes odoo/odoo#35680

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-13 09:14:35 +00:00
RomainLibert 1ca4c49ca1 [IMP] hr: synchonize image_1920 depending on self edit setting
Currenty if the self edit setting is deactivated, a user has to be
hr_user in order to change its employee image through the employee
profile.
The problem is that if the image on the employee is currently
not set, we should copy it through the employee profile whatever the
setting value

closes odoo/odoo#35542

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-13 12:50:21 +00:00
Sébastien Theys 67e3924bfe [IMP] tools, product, website_sale: rename image_variant_max
Follow up of 58a2ffa26f

Variant specific field `image_raw_original` was meant to be renamed to
`image_variant_1920` instead of `image_variant_max` to follow the same naming
convention as the other fields (having the pixel number in the name).

closes odoo/odoo#35493

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-08-06 12:29:13 +00:00
jbm-odoo 853a773ee4 [IMP] settings: Improve general UX (back2basics)
TaskID: 2043133

closes odoo/odoo#35382

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-13 12:32:30 +00:00
Sébastien Theys 054baf94a6 [IMP] product: improve constraints & messages on attributes & values
Usability improvements:

- Prevent the user from doing actions that will lead to exceptions.
- Improve error messages when exceptions do happen.

Also add more constraints to keep the database in a consistent state.

task-2035609

closes odoo/odoo#34833

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-08-09 12:49:31 +00:00
Romain Derie fae0579106 [FIX] sale_coupon: remove em tag from report
In master, em tag are not displayed in PDF report.
Strangly, the space to display the element is taken but the element content is
invisible.
If the action report is change from PDF to HTML, the element is displayed as it
should, in italic.

As having `Code:` in italic is not that mandatory, this commit removes the em
tag to display `Code:` again.

closes odoo/odoo#35685

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-08-13 10:42:26 +00:00
svs-odoo e4ac262c98 [IMP] stock: paste multiple SN in lot_name field
When user doesn't use automatically generated move lines, he/she can
copy a list on Serial Number in the `lot_name` field, it will create a
new move line for each value with the corresponding `lot_name`.

Also, as we need a line break char to split the field value, we need the
field is a testarea as a simple input can't have value with breaklines.
So, the `lot_name` need to be a field text instead of char.

Task #2028780

closes odoo/odoo#35532

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-13 09:07:48 +00:00
svs-odoo 1d675780c2 [IMP] stock: adapt assign serial numbers
In detailed operation view, the method to generate and assign multiple
SN numbers will create a move line depending of the SN name the user
defined and the number of SN to generate. These features are only
accessible if picking option "Pre-fill Detailed Operations" is disabled.
Also, hides the quick "Assign Serial Numbers" button in the same case.

Task #2028780
2019-08-13 09:07:48 +00:00
svs-odoo a831e01464 [FIX] stock: don't display precreated moveline
For picking of type receipt, don't display pre-created moveline so user
are encouraged to create move lines instead of modify the existing ones.

Task #2028780
2019-08-13 09:07:48 +00:00
svs-odoo 08fec2cd42 [IMP] stock: new move lines take putaway location
When user create a new move lines, if a putaway is applyable, the
default `location_dest_id` will be define from the putaway.

Task #2028780
2019-08-13 09:02:51 +00:00
Simon Lejeuneandsvs-odoo 1d9ffe45be [REF] stock: hide show reserved option on form view
This way we keep the current behavior of the barcode client action but
we don't display move lines on receipt.

Users could edit the view, display "show_reserved" and check it to get
back the old behavior in the form views.

task-2028780

Co-authored-by: svs-odoo <svs@odoo.com>
2019-08-13 09:02:51 +00:00
Simon Lejeune 01b052d7db [REF] stock: show reserved set as false on receipt picking type
task-2028780
2019-08-13 09:02:50 +00:00
Simon Lejeune ffd5d5a097 Revert "[REM] *: removes 'show reserved' Picking option"
This reverts commit 8d33cd1268f1119ede1a2e5a3465ee8a4dafc6fb.
2019-08-13 09:02:50 +00:00
Robot Odoo 47d50dba22 [MERGE] web, various: improve ribbon widget and its use
PURPOSE

Have a nice ribbon widget to display state of records: part II

SPECIFICATIONS

A POC for a new ribbon widget has been recently introduced at 02fbb73.
It adds a ribbon on the top right of a form to make some status more visible
and more user friendly. This commit greatly improves the design of this
ribbon in order to have a real ribbon.

You have to specify the text attribute to show the text on the ribbon.
You can also specify a bg_color attribute to color the background with a
bootstrap background color class according to the business meaning of the
flag displayed in the ribbon.

CRM: Replace Won / Lost bootstrap badges by ribbon widgets in lead /
opportunity form view.

Various: Next to 883c96b and recent ribbon widget update some form
views have to be updated. It is best displayed following those rules

* after oe_button_box in order to fix overlapping;
* before image to overlap it cleanly;

LINKS

Task ID : 2032621
PR : #34662

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-13 15:52:52 +02:00
Mohammed Shekha d4de4cd94a [FIX] survey: handle error.datetimepicker in survey's datetimepicker
Purpose of this commit is to handle error.datetimepicker event of
datetimepicker element. If not handled then window.onerror will handle it and
give unexpected warning via crashmanager. Note that this issue comes from commit
e6d4ab84da which binds window.onerror in frontend
also and hence uncaught javascript error is also handled by it.

As we do not want to raise crashmanager if user enters wrong value in
datetimepicker let us handle it in survey.js correctly.

Task 2044512
Also see https://github.com/odoo/odoo/pull/32132

closes odoo/odoo#35609

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-13 12:07:34 +00:00
Patrick Hoste 175994cbe2 [FIX][IMP] various: correctly place ribbon widget in form views
PURPOSE

Have a nice ribbon widget to display state of records: part II

SPECIFICATIONS

Next to 883c96b781 and recent ribbon widget update some form views
have to be updated. It is best displayed following those rules

  * after oe_button_box in order to fix overlapping;
  * before image to overlap it cleanly;

LINKS

Task ID : 2032621
PR : #34662

Task
2019-08-13 11:29:44 +00:00
Patrick Hoste c52c8da491 [IMP] crm: replace Won / Lost bootstrap badges by ribbon widgets
PURPOSE

Have a nice ribbon widget to display state of records: part II

SPECIFICATIONS

Replace Won / Lost bootstrap badges by ribbon widgets in lead / opportunity
form view.

LINKS

Task ID : 2032621
PR : #34662
2019-08-13 11:28:55 +00:00
Patrick Hoste 82d563b035 [REF] web: make ribbon widget great and user friendly
PURPOSE

Have a nice ribbon widget to display state of records: part II

SPECIFICATIONS

A POC for a new ribbon widget has been recently introduced at 02fbb737b9.
It adds a ribbon on the top right of a form to make some status more visible
and more user friendly. This commit greatly improves the design of this
ribbon in order to have a real ribbon.

You have to specify the text attribute to show the text on the ribbon.
You can also specify a bg_color attribute to color the background with a
bootstrap background color class according to the business meaning of the
flag displayed in the ribbon.

LINKS

Task ID : 2032621
PR : #34662
2019-08-13 11:28:51 +00:00
fja-odoo 20efea970a [IMP] *: display some onchange warning with notif
* = base, web, sale, stock, sale_stock, stock_account

Warnings for the onchange now takes a type to know if it needs to be
displayed with a notification. Else it is displayed with a dialog
notification (like before).

Related to https://github.com/odoo/odoo/pull/32132 and
https://github.com/odoo/odoo/pull/35209

Part of https://github.com/odoo/odoo/pull/35342

task-2047628

closes odoo/odoo#35342

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-08-09 15:47:09 +00:00
fja-odoo 79d7904b4f [FIX] web: fix the display of one line warning
Warning message without breakline were not displayed correctly using pre
tag.

Related to https://github.com/odoo/odoo/pull/32132 and
https://github.com/odoo/odoo/pull/35209

Part of https://github.com/odoo/odoo/pull/35342

task-2047628
2019-08-09 14:17:31 +00:00
fja-odoo 83310f4404 [IMP] *: change title and subtitle of warnings
* = portal, test_website, web, website

The title will now be "Someting went wrong." and we will no longer
display the error type as it is not usefull info to the user.

The message of the warning modal was not displayed right if too long.
Now it will be displayed properly.

Related to https://github.com/odoo/odoo/pull/32132 and
https://github.com/odoo/odoo/pull/35209

Part of https://github.com/odoo/odoo/pull/35342

task-2047628
2019-08-09 14:17:31 +00:00
fja-odoo 9c3fe4aae2 [IMP] web: keep toast open when hovered
Previously non sticky toast were automaticaly closed after a delay.
Now while a toast is hovered it will stay open and when the cursor
leaves the toast, the delay is reset.

Related to https://github.com/odoo/odoo/pull/32132 and
https://github.com/odoo/odoo/pull/35209

Part of https://github.com/odoo/odoo/pull/35342

task-2047628
2019-08-09 14:17:30 +00:00
Hetashree Chauhan 0cc30bf083 [IMP] sale(_*): replace confirmation date with order date
* pos_sale, sale, sale_crm, sale_management, sale_stock, website_sale

Purpose of this commit is replace the confirmation date field with
order date from sale. As order_date and confirmation_date of sale order
are having same value so no need to keep two fields, remove confirmation
field and instead use order date.

cretae_date use as order Date and replace the order_date on confirmation
of the order as confirmation date.

task-2027274
closes: #34571

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-08-13 09:40:12 +00:00
Romain DerieandPratima Gupta e87cec8c49 [IMP] sale_coupon: allow discount on multiple specific products
Before this commit, a discount could only target the whole order, the cheapeast
product or a specific product.

With this commit, it becomes possible to select multiple specific products.
This will ease some realistic ecommerce flows.

For instance, one might create a promotion targetting all his bikes by simply
adding all bikes products into the specific products field. This is easily done
with the many2many widget on the form view.

task-33737

closes odoo/odoo#35500

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>


Co-authored-by: Pratima Gupta <pgu@odoo.com>
Co-authored-by: Romain Derie <rde@odoo.com>
2019-08-13 09:21:52 +00:00
Romain Derie 779e47caf3 [FIX] sale_coupon: finish renaming products from b62ebab58
Commit b62ebab58 refactored "all the brol" but left half the occurences
untouched.
It was therefore hard to read and understand the tests as the same items would
be referenced with 2 names.
2019-08-13 09:21:52 +00:00
Mathieu Duckerts-Antoine 52181a2219 [FIX] web: favorites have unique descriptions
In the favorites menu, it was possible to create two
favorites with the same name (contrarily to the
specifications). The root cause of the problem was that
the submenus of the favorites menu were not updated at
all. This commit fixes that situation.

closes odoo/odoo#34902

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-08-13 08:18:16 +00:00
Mathieu Duckerts-Antoine 397e00f181 [FIX] web: toggle favorite correctly updates other filters status
When toggling a favorite filter, the options used by
the active date filters/groupbys and the field created
via autocompletion were not correctly cleared, leading
to strange situations. This is fixed by this commit.
2019-08-13 08:18:16 +00:00
Mathieu Duckerts-Antoine ff70f9683f [DOC] web: update search view documentation on filters.
Document the changes brought by a previous commit
that modifies the date filters functioning.

Task ID: 2028787
2019-08-13 08:18:16 +00:00
Mathieu Duckerts-Antoine 6d4ac56b0f [IMP] *: adapt xml files to new date filters functioning
A previous commit modifies the way in which
date filters work in the Filters menu.
In particular, the attribute default_period of filters
with date attribute cannot take anymore values
like 'this_week', 'last_7_days',...

This commit modifies the xml acoordingly by replacing
the attributes date and default_period by a suitable
domain.

Task ID: 2028787
2019-08-13 08:18:15 +00:00
Mathieu Duckerts-Antoine d561868bfa [IMP] web: review date filters and groupbys functioning
This commit modifies the functioning of date filters
in the control panel Filters and Group By submenus.

For a filter with date attribute set, the list of
proposed options is shorter but allows a bigger set of
domains to be quickly created (through combinations of the options).
The resulting list of domains is different of the previous one:
domains like "Today" or "Last Week" are left aside but many others
(and their unions) are now accessible.
The domains generated in that way are no more dynamic but it is still possible
to save dynamic filters in general.

This commit also reintroduces the multi selection of options for groupbys of type
date/datetime in the groupby menu.

Task ID: 2028787
2019-08-13 08:18:06 +00:00