Commit Graph
141057 Commits
Author SHA1 Message Date
Benoit Socias 875aca63f7 [IMP] web_editor: reuse palette from previous shapes when enabling one
Before this commit when toggling shapes on a snippet background, the
shape color palette was always set to the default one.

After this commit when toggling shapes on a snippet background, the
shape color palette is computed by combining the default palette with
the palette of the previous shapes in the page.

task-2431445
https://github.com/odoo/odoo/pull/64515

closes odoo/odoo#64515

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-02-03 12:08:51 +00:00
Benoit Socias fe44184b48 [IMP] web_editor: open shape selection when enabling shapes
Before this commit when toggling shapes on a snippet background, the
shape selection dropdown was shown as closed.

After this commit when toggling shapes on a snippet background, the
shape selection dropdown is automatically opened.
We have to use a click() on the toggler instead of an open() on the
dropdown to make the page containing the selected shape appear when
opening.

task-2431445
https://github.com/odoo/odoo/pull/64515
2021-02-03 12:08:51 +00:00
Benoit Sociasandqsm-odoo b67084e729 [IMP] web_editor: instantiate color palette only when necessary
Color palette are only visible once they are opened. However, we
instantiate them a lot to build the "options" editor panel which caused
the editor to appear buggy for some users... even if they would never
open a colorpalette. This fixes that issue. The fix is not entirely
stable but was made as stable as possible... better implementation will
be done in master.

task-2439295
https://github.com/odoo/odoo/pull/65223

closes odoo/odoo#66217

X-original-commit: 9aeba7dec95b397ef894f5a181920dff269d6ad4
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2021-02-15 18:30:10 +00:00
Benoit SociasandSamuel Degueldre caaaaa0785 [FIX] web, web_editor: avoid rendering color palettes more than once
Before this commit the palette was rendered each time it was opened.

After this commit if the palette has already been rendered only the
selected color is being updated in the palette (and its colorpicker).

task-2439295
https://github.com/odoo/odoo/pull/65223

X-original-commit: 7f19f63b18bc7d17a393b3535492c7f90595ca39
Co-authored-by: Samuel Degueldre <sad@odoo.com>
2021-02-15 18:30:09 +00:00
Benoit SociasandSamuel Degueldre 62b4e968c9 [FIX] website, web_editor: ensure the loader appears on click options
Before this commit the loader did not always get displayed when
switching to the options tab.

After this commit the loader always gets displayed ASAP when switching
to the options tab until the tab is ready and displayed.

task-2439295
https://github.com/odoo/odoo/pull/65223

X-original-commit: f2fa17540e130b5cf3f70570a3a97495cfbb7499
Co-authored-by: Samuel Degueldre <sad@odoo.com>
2021-02-15 18:30:08 +00:00
Joseph Caburnay 51a08bbfa3 [IMP] point_of_sale: show wizard when closing pos.session failed
When closing pos.session and it turned out that during the creation
of journal entry the move lines are not balanced, pos automatically
balances the lines by crediting the amount to balance and recording
it to the default pos receivable account.

In this commit, we are changing the behavior by allowing the user
to choose which account the imbalance amount be recorded. So the
workflow becomes:

1. Close pos session fails.
2. Wizard shows the amount to balance and asks which account to
record it.
3. Confirm the wizard to successfully close the session.

closes odoo/odoo#62425

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-02-15 12:06:31 +00:00
Mohammed Shekha 2d2019d4d2 [FIX] web: keep focus on searchbar when Tab pressed
before this commit: when searchbar has autocomplete and user press Tab key then
focus goes out of searchbar input while it should keep focus on searchbar so that
user can do search on other term.

after this commit: when searching on searchbar and pressing Tab key will keep focus
on searchbar input so that user can search again.

task-2393772

closes odoo/odoo#66239

X-original-commit: ae90842be8a87999e0cdbbf00b86b1bbf92992ce
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-02-16 07:53:44 +00:00
Mohammed Shekha 9f870f83b2 [FIX] web: fix horizontal scroll position not preserved
before this commit: when there is a horizontal scroll in view say for example
kanban view where there are too many columns and user scrolls horizontally and
go to form view by clicking on any record and then come back to kanban view
horizontal scroll is not preserved and user is moved to scroll position 0
this is due to commit: https://github.com/odoo/odoo/commit/19eacf7d23c9413de4430a3422b5ed74b37ef242

after this commit: scrolling horizontally and then go to form view and come
back to previous view will preserve scroll position, we also consider case for
kanban view where there are too many columns and user click on 'Add Column'
user will be scrolled to new column element.

task-2418275

closes odoo/odoo#66230

X-original-commit: 171036aefe21799f7a791cc3cd73a7d249aa0b00
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-02-15 20:06:09 +00:00
Jorge Pinna Puissant f7bed6387c [FIX] event_sale: traceback raised when product have blocking message
- Install event_sale;
- On the Sale's settings check 'Sale Warning';
- Create a blocking message for a product;
- Create a SO;
- Add the product with the blocking message.

Before this commit, a traceback was raised before the blocking message
is shown.

Now, only the blocking message is shown.

opw-2458568

closes odoo/odoo#66202

X-original-commit: 768bcf58e8dc215b96b11bafa632c07dc683e297
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2021-02-15 16:46:32 +00:00
Bruno Zanotti (ADHOC) 14b615afa8 [FIX] l10n_ar: fix pre-printed invoice report
Fix pre-printed report so that invoice date remains
in same position as if not pre-printed

closes odoo/odoo#66193

X-original-commit: ab99aa426f5cd317ea69f26c213635b0ab39e716
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-02-15 16:05:23 +00:00
Nicolas Lempereur e539f3307a [FIX] calendar: currency in popover fullcalendar V4
The update of fullcalendar (ebce7719b) in 14.0 made #45881 not working
(they both happened in same month).

opw-2214445

closes odoo/odoo#65503

X-original-commit: 3ad005a49e44ce35800edcb8a178fc3544d99633
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-02-04 07:48:30 +00:00
Cocographique fe21692abe [IMP] website: set lead class font-size to match editor value
Currently, when you edit a paragraph with the lead class, the font-size
is set to x px. This value is not available in the font-size dropdown of
the editor. So no value is set as active (checked). With this change,
the lead font-size will now be 18px and match a default value from the
editor.

task-2209960

closes odoo/odoo#46902

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-02-15 16:23:17 +00:00
Krunal Trivedi d10b9f7164 [FIX] website: open dropdown to right position for sidebar menu template
closes odoo/odoo#66076

X-original-commit: 70f993e2209a1fd45d0ba938672295d79349febe
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-02-12 13:46:21 +00:00
Yannick Tivisse 79326748e6 [FIX] hr_work_entry: Adapt work entry name on modification
closes odoo/odoo#66066

X-original-commit: e684355e9c13ab11a05258a64719cdc5714a392b
Related: odoo/enterprise#16306
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-02-12 12:47:07 +00:00
Simon Genin (ges) 9f56448388 [FIX] tsconfig: add missing command name attribute
closes odoo/odoo#66180

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-02-15 14:11:19 +00:00
Lucas Perais (lpe) 717112f28d [FIX] web: multiedit in a grouped list view: enable fetchBatchedM2O and References
Have grouped list with reference a m2o or a reference field

Select some records, edit them

Before this commit: the names of the reference fields and m2o disappeared

That was because the saveRecords function did not take into account a grouped list

manual forward port of #65999

After this commit: it works as expected

closes odoo/odoo#66043

closes odoo/odoo#66175

X-original-commit: 8b6e86927941dce2018ea93f191b59856ea67e4b
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2021-02-15 13:46:45 +00:00
Lucas Perais (lpe) f31c34356e [FIX] web: list multi edit: prevent force save
Have a list with multi_edit enabled
Have a widget boolean_toggle displayed on some field
Select some records to be in multi edit mode

Before this commit, the record on which the boolean toggle button was clicked was written
and then the multi edit feature was triggered and wrote on all the records
The first write is unnecessary and counter intuitive

After this commit, only the write with all the multi edited records is done

X-original-commit: 23fcaeda6830f2dc0de17337f9c3da8faf0338ce
2021-02-15 13:46:44 +00:00
Lucas Perais (lpe) 97756072bb [FIX] web: list_test: an assert was not triggered, now it is
follows #59830

X-original-commit: e1fc6707ed4ddfe7c62e6beead8617e5fbe6ea9b
2021-02-15 13:46:43 +00:00
Bruno Zanotti (ADHOC) f7e9617e2b [IMP] l10n_ar: Add group by company by default in IIBB reports
closes odoo/odoo#65529

X-original-commit: a79c4ad32c0b10fa85b2bfdc919b8f61543f5f3e
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-02-04 11:28:20 +00:00
Samuel Degueldre aa9c71f689 [IMP] web_editor: introduce many2one UserValueWidget for reuse
Previously, edition of many2ones in the front-end was done through a
snippet option. While this works fine for raw many2ones in the page, it
is desirable that other snippet options can leverage a many2one as a
part of a more complete or comprehensive option. This commit introduces
a many2one userValueWidget that will be able to be reused by snippet
options, and adapts the existing many2one snippet option to use it
instead.

The interface has also been reworked so as to lean on the existing
we-select UserValueWidget for the sake of interface consistency.

Thanks to fja-odoo for first iteration.

task-2190603

closes odoo/odoo#63835

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-02-09 09:36:42 +00:00
Anh Thao Pham (pta) d85889f50f [FIX] account: fix counterpart values of Reconciliation Models for Statement Line with no Partner
- Go to Accounting > Configuration > Reconciliation Models
- Create a Reconciliation Model:
  * Type: Suggest counterpart values
  * Amount Nature: Amount Paid/Received
  * Label: Contains test
  * Counterpart Values: [Add a line with "Percentage of balance" as Amount Type and 100 as Amount, for example]
- Create a Bank Statement of any amount with "test" as Label and no Partner
- Post Bank Statement and Reconcile it
Created Bank Statement matches conditions of Reconciliation Model but Counterpart Values are not suggested.
No counterpart values are suggested if there is no Partner on Bank Statement

During preparation of reconciliation, reconciliation is skipped because an open balance
has to be created but no receivable/payable account is retrieved as there is no Partner
on Bank Statement.

If no Partner is set, receivable/payable account is retrieved from company.

opw-2441484
opw-2442491

closes odoo/odoo#66167

X-original-commit: b9052f30dd8c26e0402a7f4a55b72204e9f1e633
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-02-15 12:48:08 +00:00
Xavier Morel 707da2bba1 [FIX] purchase: avoid broken domains
Combining domains using `+` is not ideal as it's somewhat easy to
unwittingly create broken ones and perform unexpected
selections. Combining with `expression.AND` should be a lot more
reliable.

closes odoo/odoo#66160

X-original-commit: 696819972d5a51f826fb675f0cb712f819c2cdf4
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2021-02-15 11:50:26 +00:00
huakkai ce2081ccb1 [CLA] huakkai signs Odoo's CLA
closes odoo/odoo#66149

X-original-commit: 4928ea9f7a35d1d2f00cf07300a90bab7bb3fb9a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-15 10:29:45 +00:00
root 0ce435427d [IMP] sale_timesheet: allow easier xpath expressions
Before this commit it is rather hard/unsafe to xpath into this view.
As the view is huge and quite some HTML elements are used a few times (table for example) it is risky. Especially since some enterprise modules build further on this.
After this commit all major elements have a name which allow easy xpathing for inheritance.

closes odoo/odoo#66131

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-15 08:16:36 +00:00
Mohammed Shekha a036f5ccf4 [FIX] web: horizontal scrollbar in form without sheet
before this commit: when form view have buttonbox or notebook tag and form does
not have sheet tag then form will have horizontal scrollbar in screen, this is
because we added scss mixin which always add negative margin of 32px because we
added mixin by considering form will have sheet tag and because of that when
form does not have sheet tag it shows useless horizontal scrollbar.

after this commit: if formview does not have sheet tag and form contains button
box or notebook tag then form will be displayed properly without unnecessary
horizontal scrollbar.

task-2411627

closes odoo/odoo#63961

Related: odoo/enterprise#15519
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-02-15 11:43:32 +00:00
Andrea Grazioso (agr-odoo) bd4080be17 [FIX] purchase: correctly display category and note in portal
Create a puchase order for a portal customer with sections and notes in
the order. Confirm and send email.
Access portal with the customer and look for the PO.
Section and notes will be displayed as products, with quantity 0, unit
price 0,...

opw-2429376

closes odoo/odoo#66116

X-original-commit: 56185d04a98a2238b11e6d2eef0d8fcdb30d7b68
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2021-02-12 18:37:21 +00:00
oco-odoo fb8cc48483 [REV] account: revert commit 08f3d2b90e3d48daa26ab48872b9cfd4d8db981f
We actually want to keep on computing tax tags this way. Consider the following example:

- configure a sales tax like this
amount : 20%

100% - base : +01
100% - taxe : +02
-10% - taxe: -03

- Make an invoice for 100. It looks like this:

credit 100 - debit 0 - +01
credit  20 - debit 0 - +02
credit   0 - debit 2 - -03

===> Since the repartition line was configured with a negative factor, and because credit lines with + tags do + in the report, we actually expect the tax report to contain +2 in grid 03, since we're applying tag -03 to a negative amount. That's why this fix was a bad idea.

closes odoo/odoo#66115

X-original-commit: 9cf77f67adb9bc96f266c675c64d58217a334129
Related: odoo/enterprise#16334
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-02-12 18:17:57 +00:00
Benjamin Frantzen (bfr) e3bd3fec38 [IMP] account_edi: merge account_edi_extended
TASK ID: 2457873

closes odoo/odoo#65745

Related: odoo/enterprise#16226
Related: odoo/upgrade#2144
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-02-11 08:08:18 +00:00
Tiffany Chang (tic) 99ce4c3ff8 [IMP] stock: improve product moves report
Small improvements to the Product Moves (move line) report:
- added 3 new filters: Last 12 Months, Last 3 Months, and Last 30 Days
  (default Last 12 Months)
- added standard Date filter (i.e. by quarter, month, year)
- updated the Stock Moves stat button in product [template] view to
  display # incoming/outgoing moves within the past 12 months

Task: 2371067
COM PR: odoo/odoo#63598

Signed-off-by: Steve Van Essche <svs-odoo@users.noreply.github.com>
2021-02-12 16:10:25 +00:00
Odoo's Mergebot 24e11acf22 [MERGE] *: Add support for native JS modules and sourcemaps
Because of the way Odoo works at its core, we do not know before hand
which files will be loaded as an asset in the browser, because it
depends on the installed Odoo addons.  This is why it is historically
difficult to integrate Odoo with standard JS tooling, and this is why
Odoo needs to use a custom javascript module system.

However, there is a way to use native JS modules (and gain all the
benefits from it: IDE autocompletion, ease of refactoring, intellisense,
...): we can write JS as native JS modules, but convert them at runtime
into Odoo custom modules. This is exactly the strategy applied by this
PR.

This has a lot of benefits, but there is a downside: we can no longer
serve statically JS files in debug=assets.  This would be a dealbreaker,
if we did not have sourcemaps.

So, this PR introduces

- support for native JS modules
- add a specific asset controller `/web/assets/`
- generate sourcemaps (for debug=assets mode)

Note that part of the complexity of this work is cause by the debug=assets mode, where we need to have a fixed route for the debug asset bundle (so we do not lose breakpoints when debugging), but we still need to safely regenerate the bundles whenever the JS code is modified.

closes odoo/odoo#63177

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-02-15 13:30:18 +01:00
Francois (fge) 402740f73e [ADD] web: add /web/assets for assets bundle
Part of PR 63177
2021-02-15 10:55:00 +01:00
Francois (fge)andSimon Genin d29666c04c [IMP] web, *: adapt some JS files to new module system
The previous work on adding support for native JS modules needs to adapt
some existing files, which have an incompatible name (with a '/').

Also, we convert a few JS file in /web to the native JS module system,
to show that it can work.

Part of PR 63177

Co-authored-by: Simon Genin (ges) <ges@odoo.com>
2021-02-15 10:18:11 +01:00
Simon Genin (ges)andFrancois 396fec3929 [ADD] cli: add a command to generate tsconfig
With the new native JS module system, we have a lot of new features for
the developer: autocompletion, docstrings, ...

However, it does not work across modules: if a JS file in
/addons/stock/static/src/some_file.js want to import a file in web, say
/addons/web/static/src/blabla.js, we will need to use a statement like
this:

import { something } from '@web/blabla';

Obviously, there is no automatic way for IDEs to know that '@web' should
map to 'addons/web'.

This is why we propose to use a tsconfig.json that defines the mapping
between modules and their paths.  This is not mandatory, and only
affects those developers that work commonly in JS.

Part of PR 63177

Co-authored-by: Francois (fge) <fge@odoo.com>
2021-02-15 10:18:11 +01:00
Francois (fge)andSimon Genin 8e29438d54 [IMP] base: add sourcemap support for JS files
Because of the previous commit introducing support for native JS
modules, it is no longer possible to serve statically JS files in
debug=assets mode. Because of that, we serve a (non minified) bundle
instead, but with sourcemaps.

This commit contains the code for the sourcemap generator.

Part of PR 63177

Co-authored-by: Simon Genin (ges) <ges@odoo.com>
2021-02-15 10:18:11 +01:00
Simon Genin (ges)andFrancois 929fec3a54 [IMP] base: add support for native JS modules
Because of the way Odoo works at its core, we do not know before hand
which files will be loaded as an asset in the browser, because it
depends on the installed Odoo addons.  This is why it is historically
difficult to integrate Odoo with standard JS tooling, and this is why
Odoo needs to use a custom javascript module system.

However, there is a way to use native JS modules (and gain all the
benefits from it: IDE autocompletion, ease of refactoring, intellisense,
...): we can write JS as native JS modules, but convert them at runtime
into Odoo custom modules. This is exactly the strategy applied by this
PR.

This has a lot of benefits, but there is a downside: we can no longer
serve statically JS files in debug=assets.  This would be a dealbreaker,
if we did not have sourcemaps (implemented in the next commit).

This commit introduces the python code that will transpile native JS
modules into odoo JS modules.

Task ID: 2414902
PR: 63177

Co-authored-by: Francois (fge) <fge@odoo.com>
2021-02-15 10:18:11 +01:00
ijas ahammed c9a71fbfb4 [FIX] crm: reposition tour bubble to allow scheduling an activity
In the crm tour, we have a step where we want the user to drag and drop the
card. But the bubble for this step is just besides the icon to schedule the
activity. So if user tries to schedule the activity and hovers on the tour
bubble, the tour help overlaps the drop-down of activities and prevents
user from scheduling one.

This commit fixes the issue by moving the bubble for this step at the right
side of kanban card so that tour does not prevent user from scheduling the
activity.

closes odoo/odoo#66136

Task-id: 2449223
X-original-commit: e9b5a0522f019adb7ae17164e314206a61c71cc6
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-02-15 08:24:52 +00:00
Adrien Widart 69fddf832f [FIX] microsoft_calendar: add current partner to attendees
When synced, if the user has an event on Microsoft Calendar and if this
user is not the organizer (he is only an attendee), he will have to
enable "Everybody's calendars" on Odoo Calendar to see this event.

To reproduce the error:
(Need one Google/Microsoft account A01 and one Microsoft account A02)
1. With A01, on Google/Microsoft calendar, create an event and invite A02
2. On Odoo, enable the sync with Microsoft
	- See [instructions](https://www.odoo.com/documentation/user/14.0/general/calendars/outlook/outlook_calendar.html)
3. Go to Odoo Calendar, click on "Sync With Outlook"
	- ! The sync must be done with A02

Error: The event is not displayed. The user must enable "Everybody's
calendars" to see it.

The problem comes from the attendees creation: it uses Microsoft
attendees' email address to link a partner with the event. However,
nothing ensures or requires that A02's email address is the same than
current partner's one. As a result, it is possible that the current
partner is not among the attendees. Moreover, Microsoft does not say
which attendee is the synced one. Thus, this fix always adds the current
partner to the attendees, so he will no longer need to enable
"Everybody's calendars".

OPW-2439189

closes odoo/odoo#66103

X-original-commit: 7579787c101923d450217cd167f50b9fcf21c690
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-02-12 16:32:09 +00:00
Adrien Widart eb1bd5c1e7 [FIX] sale_stock: consider state on qty_at_date widget update
When adding a line to a new SO, if the delivery date is in the future,
and even though the quantity will be sufficient at that time, the
symbol of the quantity remains red ("Not available").

To reproduce the error:
1. Create a storable product P
2. Create + Confirm a RfQ
    - Add 1 x P
    - Set the receipt date in the future (e.g., today + 7 days)
    - (! Do not receive the product)
3. Create a SO
    - Add 1 x P
    - (In Other Info) Set the delivery date after the receipt date
(e.g., today + 8 days)
4. Save & Go back to order lines

Error: The chart next to the requested quantity is always red. This is
not true since the delivery is scheduled after the product reception. If
you click on the chart, the forcasted stock on delivery date is 1.
Therefore, the chart should be green.

This fix improves #60054: the latter updates the computation of
`will_be_fulfilled` using `free_qty_today` because there was an issue
when the SO is confirmed. However, the initial widget behaviour was
correct when the SO is not confirmed.

OPW-2440724

closes odoo/odoo#66101

X-original-commit: 685006681a54670b5e3f1615c2eb632700fffc65
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-02-12 16:17:31 +00:00
Nicolas Lempereur 09e5b712ef [FIX] mass_mailing,web_editor: content no under sidebar
Depdending on situation several fixes (f885202, fc8e446) leads to issue
in small screen size:

- in iframe editor with without snippets => the width of the content is
  decreased of several times the sidebar that is not shown

- in editor with sidebar => the content gets behind the sidebar

With this changeset we remove part of the above commits which seem to
fix both issue.

note: this also fixes that the mass mailing content applied CSS should
not depend on screen size, or what is send would differ dependin on
which screen size clicked on SAVE (on last inlining of CSS).

opw-2426400

closes odoo/odoo#66104

X-original-commit: 3e41618240036f1f47bb25b993c46b4d268031d5
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-02-12 16:32:37 +00:00
Julien Giannone 8a1690dda4 [FIX] mail: (mobile) Prevent server sync for open/close state
This commit prevents the opening/closure of a channel on mobile when
the action is performed on desktop and reciprocally

closes odoo/odoo#66102

Tasks-id: 2267593
X-original-commit: a257e0ede12ead06c0f8dba90c3868761da6ea71
Related: odoo/enterprise#16323
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-02-12 16:22:11 +00:00
Nicolas Lempereur 65a916b048 [FIX] web_editor: content under top bar in iframe
In ff81fa479 there was some refactoring for change of structure on
frontend, but for the iframe editor (eg. mass mailing), this caused that
the top edition bar was over the content.

opw-2426400

closes odoo/odoo#66099

X-original-commit: d4a2e6cda246b498f604ac5765a5ef5d0041a577
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-02-12 15:59:43 +00:00
Priyanka Kakadiya f728b2d97a [FIX] mail: fix new message chatwindow issue
Current behavior before PR:
When looking for a user through the new message chat window, if there is already
a chat open for this user, the new message window is still open on selecting the
user.

Desired behavior after PR is merged:
when opening a chat from a new message, if the chat with this user is already
open then it will close the new message chat window on selecting the user.

LINKS:
PR https://github.com/odoo/odoo/pull/65851
Task-2449118

closes odoo/odoo#66085

X-original-commit: 016dedf172f750a0fcb1138a798faf2a224d513e
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-02-12 14:52:15 +00:00
Fabrice Henrion 1b2087b6bd [IMP] hr: rephrase tooltip
closes odoo/odoo#55710

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-12 15:12:55 +00:00
Mohammed Shekha 68ccf3bec5 [IMP] web: fix UI glitch on image widget when too smal image
with this commit, we fixes UI glitch on image widget when image is too small,
when hovering over too small image Edit and Delete icon will ne displayed but
it is displayed with glitch, so to avoid that glitch we added min-width to
icons div.

task-2376452

closes odoo/odoo#66077

X-original-commit: 7aaad8480dde97b2d04b4148e4e54beb57b7f141
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-02-12 13:56:35 +00:00
Jeremy Kersten 70eb143b2f [IMP] website: use correct groups on field access_token
Previously, since the group name was wrong, nobody can access this.
Now we let group_website_publisher read it...
Change is not critical, since previous typo make it unreadable for
all.

closes odoo/odoo#66061

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-02-12 12:10:22 +00:00
Mathieu Duckerts-Antoine 862b21f156 [FIX] web: boolean field autocompletion with 'No'
Before this commit, select the "No" option of a boolean field in the
search bar autocompletion menu would crash.

closes odoo/odoo#66058

X-original-commit: ad5d642c455d3215857f25e0d69c593324178d29
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-02-12 12:02:43 +00:00
Laurent Stukkens (LTU) b32e4b7141 [FIX] web: ensure o_status is well displayed
Before this commit:

* When a o_status class is set on a label element it is not well displayed
  in project.task_type_edit, event.event_stage_view_form and helpdesk.helpdesk_stage_view_form
  since this commit has been introduced 288b24cbdf

After this commit:

* o_status labels are correctly displayed.

task-2453268
Related PR: odoo/enterprise#16173

closes odoo/odoo#66048

X-original-commit: 6bb64722a11fb6c7ba216aff5ae1c11159c92559
Related: odoo/enterprise#16300
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-02-12 11:15:34 +00:00
Kevin Baptiste 9580b2607c [IMP] hr_work_entry: change button style
Allow to set the work entry button as primary or secondary.

closes odoo/odoo#66047

Taskid: 2447940
X-original-commit: ab00e33796e3083714649e46beb0514e9333ce74
Related: odoo/enterprise#16299
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-02-12 11:14:48 +00:00
Nasreddin (bon) 9d43a73394 [FIX] hr_holidays: Display correct number of days
Issue

	- Install `Time Off` module
	- Go to `Time Off` and switch to month calendar view (default view)
	- Select range of date

	In wizard, `duration` is not set.

Cause

	`date_to` and `date_from` are overided on default get request.

Solution

	Do not override default value of `date_from` and
	`date_to` if provided in default get request.

opw-2447931

closes odoo/odoo#66044

X-original-commit: 1ec4aa0b61777739d8bc82bbee968b9838f58410
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-02-12 11:00:01 +00:00
Yannick Tivisse 60aa239897 Revert "[FIX] google_drive: fix traceback when add filter"
This reverts commit 82f236d98e322efd84c873df54f8e728e1d2a1bf.

The fix is actually not solving all the issues, and also introduce
a behavior change. Actually, the expected result for filters like

<filter string="My Pipeline" name="my" domain="[('user_id', '=', uid)]"/>

will result into a evaluated filters, but invalid as the uid is set to
the person configuring the google configuration, not the user who will
use it.

As it is tricky (or even impossible) to solve the issue properly in all
the cases, we prefer to warn the user that the filter is invalid instead.

closes odoo/odoo#66042

X-original-commit: 5df2c1d10318cc53f1c3e90256cba6a48d246dcb
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-02-12 10:53:20 +00:00