Commit Graph
155101 Commits
Author SHA1 Message Date
Soukéina Bojabza 1dff079f09 [IMP] web_editor, *: improve toggle and d&d in grid mode for the images
*: website

In grid mode, the images take the whole space in their column so they
always have the same size as them. However, if text was added in the
column (before or after toggle), it always looked like it was
overflowing and the overlay would not cover it even after resizing.

Also, since these images have the value of the `object-fit` property
set to `cover`, the images are cut if they are too big for the column.
This is problematic if the image has a shape because the shape is cut
too, ruining the visual effect.

This commit solves these issues by distinguishing the images that are
alone in their column from those that are not. An image is considered
alone if it is a direct child of the column and if there is no text in
it (the line breaks and empty lines are excluded). Now, only this kind
of images, if they have no shape, take the whole space in the column
and have `object-fit` set to `cover`; the other ones behave like the
columns in normal mode.

This distinction also allows to block the edition of the columns
containing only an image. Indeed, adding text or dropping inner content
in them had the same overflowing effect.

task-2973198

X-original-commit: e9c7e020daf88022d6e02de0a5620074e8417b5a
Part-of: odoo/odoo#102525
2022-10-06 23:14:40 +02:00
Soukéina Bojabza 339f9636eb [IMP] web_editor, website: make Big Boxes snippet able to use grid mode
The grid mode allows some snippets to move and resize their columns in
a grid. However, some of them were blocked because they don't look good
in this mode. This is the case of the Big Boxes snippet: because it
contains two blocks full of padding and since toggling the grid mode
removes this padding, it ended looking weird.

This commit allows the previously blocked Big Boxes snippet to toggle
the grid mode. More generally, this commit allows snippets having only
columns containing a background color to look good in grid mode by
keeping a more logical padding for them.

task-2973198

X-original-commit: a051922f8359178f4abe578ce9555d34cbb02613
Part-of: odoo/odoo#102525
2022-10-06 23:14:39 +02:00
Soukéina Bojabza 1a8c4ddae9 [IMP] web_editor: finish the cleaning of the grid code
The merge of [1] happened before its code was totally cleaned. This
commit makes up for that: the variables have been correctly renamed,
the comments have been cut at 80 characters and useless blank lines
have been removed.

[1]: https://github.com/odoo/odoo/pull/93144

task-2973198

X-original-commit: 98741204c7b15cadeb22d6b536b0027327ba69fe
Part-of: odoo/odoo#102525
2022-10-06 23:14:39 +02:00
luvi 782a1dd3b9 [REF] website, *: adapt code to save on NewContentModal close
*: website_blog, website_event, website_forum, website_livechat,
website_sale, website_slides

This commit adapts the code of website, and modules depending on it, which
overrided the save method of the FormView controller to execute a doAction.

It was no longer possible to wait for the default save action to proceed,
because the default behavior is now to close the dialog, and here we need
to pass another parameter allowing to redirect the website to a newly
created record.

Now, a method is available directly from the NewContentModal, which reduces
the need for the service in form views. The save call pass the right method
to compute the path needed for the redirection once the record has been
created.

closes odoo/odoo#102522

X-original-commit: 916a5bebb3e74047a66503ddc59299540c252831
Related: odoo/enterprise#32448
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 23:14:25 +02:00
luvi 26b49f053f [FIX] web: close FormView in dialog on save
This commit fixes the behavior of the FormView in a dialog. Since the
view is only visible in edition, it is no longer necessary to keep the
dialog open after the save has been processed. If the save has been
successful, the dialog now closes as expected.

A test has been added to assert this behavior.

X-original-commit: 86f68fe072a50baf49b9a8cf06f9c1e2541756e3
Part-of: odoo/odoo#102522
2022-10-06 23:14:25 +02:00
Mathieu Duckerts-Antoine a393892e62 [FIX] mail: activity view: progress bar counters
The commit https://github.com/odoo/odoo/commit/c877cab866f2c1968f4f9aaf8ceebc02fa014eed
has recently refactored the css of the kanban column progress bar making
the rules for o_legacy_kanban_counter be applied only in legacy kanban
views. This lead the style of the progress bars in activity view to be
broken. Here we fix that style by copying the rules we want in the
file activity_view.scss.

closes odoo/odoo#102520

X-original-commit: 84788c27a6c22a55bb0d7e375ae60b78beeea050
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-10-06 23:14:22 +02:00
Eleftherios Kritsotakis 0e038ffba3 [FIX] point_of_sale, pos_stripe: broken payment methods form view
In this commit we the fix the payment methods form view
because it was broken after changing the implementation
of the <group> element to the new `grid`format.

closes odoo/odoo#102519

X-original-commit: 3450e48198c6dd1c26379ffd09aeaaaefa1fdc13
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2022-10-06 23:14:19 +02:00
tsm-odoo fc1613f68a [FIX] bus: adapt presence service to work with iframe
Before this PR, the presence service was relying on window events
blur/focus to determine whether or not odoo was focused. The issue is
that in the website backend, an iframe is used. When this iframe is focused,
the window looses the focus and vice versa.

This commit fixes this issue by using `window.parent.hasFocus` method.

task-3003950

closes odoo/odoo#102518

X-original-commit: ce57d4494f2bc6a1504f8a7bddddca2a3d2b794b
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-06 23:14:16 +02:00
Louis Wicket (wil) 30a9ecc14c [IMP] mail: split related paths only once
closes odoo/odoo#102501

X-original-commit: ab802a367c1e115e6f02a3657f42fae4e691ad28
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-06 23:14:13 +02:00
Aaron Bohy 79f1da291b [FIX] web: remove recursive errors in tests
Before this commit, in debug=assets, if a test crashed for
instance because we try to click on an element that doesn't
exist, we tried to load the stacktrace js lib, via loadJS.
However, in the test environment, loadJS is patched to go
through mockRPC. If in that particular test, mockRPC did
an assertion (e.g. assert.step), we entered an infinite loop
of loadJS calls, which obviously made the tab crash.

With this commit, we ensure to use the real loadJS function
when we want to fetch the stacktrace lib.

closes odoo/odoo#102295

X-original-commit: 0661c8fa1dad88b1f9c9e177e25ddb97211f55a2
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 23:14:08 +02:00
Damien Bouvy 74492a9a52 [FIX] web: remove gutter overrides in form groups
Causes inconcistencies in the case of a o_form_nosheet (form view
without a <sheet> tag) and are visually not obvious enough to warrant
inspecting this very deeply. Remove them entirely.

closes odoo/odoo#102511

X-original-commit: 018a7a0706928930486e324dbac32c2497ec52ba
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 22:22:45 +02:00
Damien Bouvy fe3e2877b2 [FIX] web: revert fix with too much side-effects
This reverts commit 8d7bcc8eee7a333e8e463469177a1a86f9928254.

The fix also impact a lot of form views without a <sheet> node
(o_form_nosheet), e.g. Settings, Knowledge articles, Mass Mailing, Bank
Reconciliation, widget, etc.

Not the correct solution.

X-original-commit: 00e71f3ebad40d32f74f945475fb474e89b6cf4a
Part-of: odoo/odoo#102511
2022-10-06 22:22:45 +02:00
Damien Bouvy 02416c523c [FIX] sale_timesheet: grid view fix
closes odoo/odoo#102508

X-original-commit: 73ad8ab0e040f71f7d16bda124a1349bab8e7434
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 22:22:42 +02:00
Damien Bouvy aadf7ca9f8 [FIX] hr(_*): update for grid views
X-original-commit: ea6497a73f4e20d02d02376bf766080735d8ec52
Part-of: odoo/odoo#102508
2022-10-06 22:22:42 +02:00
William Braeckman 09c53d8eee [FIX] website_sale: fix offcanvas bubble
The bubble is showed whenever a filter is activated and/or a price range
is selected in the filters.
However due to float precision the comparison made to check whether
there is a price filter could be wrong when using "weird" numbers.

TaskId-3009210

closes odoo/odoo#102507

X-original-commit: 9359a5b5f0f72550d69671f975da23d4734b490f
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-10-06 22:22:39 +02:00
William Braeckman b42c621438 [IMP] website_sale: add possibility to switch pricelist on mobile
This commit makes it possible again to change pricelist while on mobile
view.

TaskId-3009210

X-original-commit: d3f6dc8d269f82860d8e93482e03462ef66fa37f
Part-of: odoo/odoo#102507
2022-10-06 22:22:38 +02:00
William Braeckman 5a633d0061 [FIX] website_sale: fix clicking on radio button not applying
In the new aside to control filters and attributes (mobile mainly)
clicking on the radio input directly would not refresh the page
accordingly.

TaskId-3009210

X-original-commit: 989c827be5de366e37d92d6a35bcd0e0995db78d
Part-of: odoo/odoo#102507
2022-10-06 22:22:38 +02:00
William Braeckman 6390dbb45c [FIX] website_sale: fix icon alignment
Fixes an alignment issue between the grid and list icon on the /shop
page.

TaskId-3009210

X-original-commit: 2ea3a5609d5d955ad75baa4bf5c31f8aefb55554
Part-of: odoo/odoo#102507
2022-10-06 22:22:38 +02:00
Demesmaeker 731bd0d2f2 [FIX] sale: fix test_pricelist_dates
This time, for good

closes odoo/odoo#102506

X-original-commit: 464883bccab539b747e938aef7851c6917fee57c
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-06 22:22:31 +02:00
Romain Estievenart d7077d4986 [FIX] web: StateSelectionField on list view
Even if the `StateSelectionField` is readonly we doesn't want visual
difference and we remove the `disabled` class.
This behavior is the same as in 15.

We also remove `btn-link` as it's not appear as a link and we had to set
`p-0` to avoid the growing of the cell.

Steps to reproduce:

> Open the helpdesk app
> Click on VIP Support tickets
> Go to the list view
> Add kanban_state column => visual bug

closes odoo/odoo#102504

X-original-commit: 26d6942ed1b0c328d94e7dfd5e50c18a68c8c2f3
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
Signed-off-by: Romain Estievenart (res) <res@odoo.com>
2022-10-06 21:24:55 +02:00
Jorge Pinna Puissant 8bc68573bd [FIX] hr: reload_context when modifying the profile language
Before this commit, only when using the save button on the profile, the
context is reloaded with the new language. If we use the breadcrumb to
exit the profile view, the new language is saved, but the context is not
reloaded.

closes odoo/odoo#102493

X-original-commit: 41b2ca93f1fc6402ff5d88b7dd8af175dd49ac6d
Related: odoo/enterprise#32432
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 21:24:46 +02:00
Samuel Degueldre f3f5e28fef [FIX] account, web: restore single line layout for order line in edition
When the section and note fields were converted, the section and note
text field ignored the list-specialisation of the text field, resulting
in a textarea with a minimum height of 50 in list view which causes the
line to be too high. It was also not using the o_field_text class which
among other things hides the resize handle on the text area which looks
weird in list view. This commit fixes that.

closes odoo/odoo#102465

X-original-commit: 5735f89245f8efa980069973b3dbe94beac59061
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 21:24:43 +02:00
Habib (ayh) f25829e751 [IMP] analytic: no status indicator for optional plans
The status indicator for optional plans switches between grey and green and creates a perception that action is required, when in fact, all values are valid.
For this reason, the status indicator only applies to mandatory plans (green: ok, orange: editing, red: invalid)
The grey status is removed entirely.

closes odoo/odoo#102503

X-original-commit: e2cd7f93d49cbdd60d6f84b465b042fae9389bb1
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Ayob Habib (ayh) <ayh@odoo.com>
2022-10-06 19:59:21 +02:00
Thanh Dodeur 99f49ca08d [FIX] mail: prevent traceback on reconnecting to call
Before this commit, when reconnecting to a call that was still holding
a participantCard of an outdated rtcSession a crash would occur as
joining a call removes all your previous rtcSessions while generating
a new one while having a `isCausal` on their participantCards.

This commit removes this `isCausal` as the rtcSession of a
channelMember/participantCard should be able to change over time.

closes odoo/odoo#102498

X-original-commit: c903852de3e6d4b99600797c7b426e2e3dfa4bea
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 19:59:19 +02:00
rhe-odoo 6b54532093 [FIX] point_of_sale: sales_report payment issue
Problem:
In the point of sale, when a sale report is printed, the payment methods were written as [object object] because of the new translation behavior.

The sql function and the rendering is now written differently in order to see the labels of the payment methods

closes odoo/odoo#102497

X-original-commit: d17003541ec6a1ff23a4d21488352f360aee822d
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-10-06 19:59:16 +02:00
Lucas Lefèvre ea1f747f2c [FIX] spreadsheet_dashboard: don't import test files
closes odoo/odoo#102496

X-original-commit: 64d1450b0f644eb3da6f68f0c333730c7d630726
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-10-06 19:59:14 +02:00
Odoo's Mergebot 28d3c06aff [FW][FIX] stock, purchase{,_requisition}: Fix visual layout for forms
Description of the issue/feature this PR addresses:
1. Adapts the layout of the `Alternatives` tab of the purchase order form to the new grid system.
2. Fixes display of the confirmation mail for receipts in the purchase order form.
3. Adapts the layout of the backorder confirmation wizard to the new grid system.
A few fixes of the visuals of the Purchase Order form.

Current behavior before PR:
Alternatives RFQ:
![2022-10-04_09-54-07](https://user-images.githubusercontent.com/18055894/194296728-849e9693-c4d5-42d9-83b5-576de54eecf2.png)

Confirmation before arrival:
![image](https://user-images.githubusercontent.com/18055894/194297447-328d640f-387a-43e6-b59d-cb8ab707be82.png)

Backorder confirmation:
![image](https://user-images.githubusercontent.com/18055894/194311631-d7228eba-57d8-48cc-9dae-659d9e4aef99.png)

Desired behavior after PR is merged:
Alternatives RFQ:
![image](https://user-images.githubusercontent.com/18055894/194297724-e93654e5-b8ac-4e00-b1ca-569b35bc6337.png)

Confirmation before arrival:
![image](https://user-images.githubusercontent.com/18055894/194297503-d846d7c6-8bfb-41d7-92fd-14552a9bdc17.png)

Backorder confirmation:
![image](https://user-images.githubusercontent.com/18055894/194311451-d50e39d7-46f4-4f56-bc76-27f8daeeb149.png)

closes odoo/odoo#102495

Forward-port-of: odoo/odoo#102431
Signed-off-by: Tiffany Chang <tic@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-10-06 19:59:09 +02:00
clesgow 320d81d5d3 [FIX] stock: Backorder wizard layout
Adapts the layout of the backorder wizard to the new grid css for
groups.

Part of task-2985735

X-original-commit: b3f151b3a64312939e5f10c209f54a38b621c8a8
Part-of: odoo/odoo#102495
2022-10-06 19:59:08 +02:00
clesgow d850128292 [FIX] purchase: re-align receipt reminder
Avoids breaking the layout by hiding the label instead of fully removing
it from the DOM

Part of task-2985735

X-original-commit: 36eab7d034b52657bae988e5c35b0c429df2c05b
Part-of: odoo/odoo#102495
2022-10-06 19:59:08 +02:00
clesgow f6ed2835e5 [FIX] purchase_requisition: Adapt for grid
Adapt to the new css grid for groups. Without this, the values in the
`<p>` are squished into a small fraction of their columns.

Part of task-2985735

X-original-commit: 8544fd84916153ffe903a639f3b88b2e83554337
Part-of: odoo/odoo#102495
2022-10-06 19:59:07 +02:00
Mathieu Duckerts-Antoine 44f5d4d986 [FIX] web: breadcrumb ellipsis
Going to My profile (user menu item when hr installed), the user name
is not fully displayed in the breadcrumb although there is enough space
to display it. We fix that by removing a rule that has become apparently
useless.

closes odoo/odoo#102492

X-original-commit: 09b5b83b41cd450359993eaca510d2e5b5a429ea
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-06 19:59:04 +02:00
Simon Genin (ges) 8cc76de483 [FIX] web: visual: tag list in kanban
If the kanban box template is too simple, with basically no classes to
wrap content, the tags would suddenly take too much vertical space and
overflow the kanban card.
Since the property h-100 doesn't seem to be actually needed, it's
removed.

closes odoo/odoo#102491

X-original-commit: 571017873a4099fd4f514e6cc186d1bf03778d9e
Signed-off-by: Luca Vitali <luvi@odoo.com>
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2022-10-06 19:59:01 +02:00
Géry Debongnie dcf6f8ef3c [REF] web_editor: lazyload html2canvas
Before this commit, the html2canvas library was loaded in the
assets_common bundle, which is in turn loaded by pretty much all odoo
users.

Since it is a big library, and it is only used in two different cases,
it makes sense to lazy load it.  The call in convert_inline.js has been
adapted.  It is however also added to the point of sale bundle, and
could probably be lazy loaded as well.

closes odoo/odoo#102490

X-original-commit: 3d94b0212d2b7f4d412a578055de42e3f88058eb
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-10-06 19:58:59 +02:00
maximilien(malb)andJohn Laterre e58f098d1a [FIX] account: Unbalanced journal entries warning
Change of the error when a journal entries is unbalanced, so that the error is clearer for the user

closes odoo/odoo#102487

Task-id: 2999182
X-original-commit: cb2c8c1865b7f567d193f8a561a403b520180122
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Co-authored-by: maximilien(malb) <malb@odoo.com>
Co-authored-by: John Laterre (jol) <jol@odoo.com>
2022-10-06 19:58:56 +02:00
John Laterre (jol) d5bfc839df [FIX] account: automatically create balancing lines on entries
Currently, in a Journal Entry, applying a tax on any journal item doesn't compute the corresponding tax line.

We end up in a situation where the move appears balanced but doesn't take into account the taxes applied. Moreover, the move cannot be posted.

The solution involves several steps:
- Changing a tax on a line now triggers a save.
- Changing the debit or credit on a line with taxes will also trigger a save.
- The company's suspense account is used for the balancing line.

During the save, a check is added to see if the move is unbalanced.
In that case, a balancing line will automatically be created to ensure the move can be saved.

X-original-commit: a3e9ca9586cba9d6161d4c05a7bfff9beeeddea7
Part-of: odoo/odoo#102487
2022-10-06 19:58:56 +02:00
gawa-odoo e0680fc7fd [FIX] account: prevent analytic distribution on all lines of invoice
Before the fix, the payable/receivable line would also receive the distribution.
The compute function will only add it to the lines of display_type 'product' (as before 7e34030).

We now also add it to taxes that don't have `use_in_closing`.

closes odoo/odoo#102486

X-original-commit: 5551f336b61a6d441f3ec5416f987d8a98c221ca
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-06 19:58:50 +02:00
Sébastien Theys 49020574f3 [FIX] mail, website: hide backend chat windows from website preview
Part of task-2978890

closes odoo/odoo#102473

X-original-commit: cd7b6a799d84f59ac3b64b262cd13d00965c9c71
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 19:58:47 +02:00
Jacky (trj) cd353e2b52 [FIX] pos_restaurant: orders table synchronization
Due to how we change the reactivity in the UI and the printing changes that kept
being computed and set when an order object is created, fetched orders became part of
the `ordersToUpdateSet` which is wrong. Only updated orders should be tracked and send
to the back end.

Also fixed how the transferred order should act when offline then online.

closes odoo/odoo#102472

X-original-commit: db553434a4a07599bcefb628ef672807f89db863
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2022-10-06 19:58:44 +02:00
Bruno Boi 3d1fed59f0 [FIX] web: not melt caret with text of some inputs
- Before this commit
The carets of autocomplete fields and datepickers inputs is behind the
text if the value shown in the input is too long.

- After this commit
Fixed.

closes odoo/odoo#102400

X-original-commit: 8027e13aa3bb515452ab48b7f9253cbde02d8b60
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2022-10-06 19:58:38 +02:00
Ricardo Gomes Rodrigues (rigr) ae5453775b [FIX] account: prevent resequence of an invoice if it's in a locked period
Currently, the user can resequence invoices that are in a locked period.
This is not desirable, this commit fixes this.

closes odoo/odoo#102469

X-original-commit: b1009e4aa514215054de44544a8914c16932f55e
Related: odoo/enterprise#32423
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2022-10-06 19:04:33 +02:00
Kevin Baptiste 8a71cdf22b [FIX] hr_holidays, lunch: fix post-always edit
This PR adapts the form views since the merge of #100570.

task-3002537

closes odoo/odoo#102467

X-original-commit: de72d27ea121c1944d7a3d3e5996ce08473d3b09
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 19:04:31 +02:00
Dossogne Bertrand f39e08e69b [FIX] hr_skills: fix skills display
Fixes skills display on both employee and applicant page.

task-3002256

closes odoo/odoo#102463

X-original-commit: b93af7c2b502d7b884fbb6a271e5c5cda03af054
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-06 19:04:28 +02:00
Mathieu Duckerts-Antoine 4044635677 [FIX] web: ModelFieldSelectorPopover: edition of path in input
Before this commit, it was not possible to edit the path via the
model field selector popover input (visible in debug mode). We fix that.

closes odoo/odoo#102462

X-original-commit: 084af201f1f4f4cb3476ab34d3dcd649a71a4254
Signed-off-by: Luca Vitali <luvi@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-10-06 19:04:25 +02:00
stefanorigano (SRI) 7ce4abcc10 [FIX] web: 'listView` and tables
- Set striped tables order to 'even'
- Adjust vertical padding

task-3008334

closes odoo/odoo#102443

X-original-commit: 12fbe5bbfb63d344e3f4e074f752551baaa3cd48
Related: odoo/enterprise#32409
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-06 19:04:14 +02:00
tsm-odoo cc462a0be4 [IMP] bus: throttle update bus presence method
Before this commit, the `updateBusPresence` method could have been
called many times in a row, resulting in many `update_presence` messages
being sent through the socket. This commit solves this issue by throttling
this method in order for it to only be called once in `UPDATE_BUS_PRESENCE_DELAY`
seconds.

closes odoo/odoo#102442

X-original-commit: 0b581f5af509040928babf0e892732c0f4c873e5
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-06 19:04:11 +02:00
Didier (did) b95c95e6d4 [IMP] mail: convert LegacyComponent CallOptionMenu
part of task-2783065

closes odoo/odoo#102433

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-10-06 19:04:09 +02:00
maximilien(malb) a6fff60782 [FIX] account: journal view
The "configure email server" was misplaced, a colspan fix this issues

closes odoo/odoo#102429

X-original-commit: 8a435032d8a15c954a949b7c5fac5bd4ee18ca22
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
2022-10-06 19:04:06 +02:00
Pierre Masereel f510dd8fe9 [FIX] point_of_sale: display cash balance on session
When you are opening the session form in the backend to display what has
been done during the session you cannot easily see what was the starting
and ending balance of the cash of a session.

So we are now displaying those fields in the session form.

closes odoo/odoo#102428

X-original-commit: 0ab780ec61d265e2d68d873bd8bc5b7bebfcd01f
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-10-06 19:04:00 +02:00
Damien Bouvy 59481e5421 [FIX] stock: return wizard grid form views compat
closes odoo/odoo#102426

X-original-commit: 0e66037ca6a6fb3c2c107520545de9d09281457a
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-06 19:03:58 +02:00
William Braeckman eec2f1eea4 [FIX] website_sale: reintroduce pricelist selector on product pages
There was a missing class on the pricelist selector for product pages
leading to the pricelist selector simply not being displayed.

TaskId-3007737

closes odoo/odoo#102425

X-original-commit: 522cb8116d959dbc17717e149b76490b0ec2fd63
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-10-06 19:03:55 +02:00