Commit Graph
155521 Commits
Author SHA1 Message Date
tsm-odoo f9e7a34ef7 [IMP] mail: remove owl bus on/off
These are deprecated since Owl 2, and lead to memory leak in the
compatibility layer. This PR removes the last ones in the mail code.

task-2877316

closes odoo/odoo#103301

Related: odoo/enterprise#32842
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-18 13:17:11 +02:00
Lucas Perais 62526a3546 [FIX] web: discarding an existing record in form view action target new.
Do an action in target new that will spawn a record in its form view.
The typical example is "Edit View: XXX" in the debug systray.

On the dialog, click on "Discard".

Before this commit, that button did not close the dialog.

After this commit, that "Discard" button closes the dialog.

closes odoo/odoo#103275

X-original-commit: 08751e0eef0cefe74e626ffa8ba26a5e8f18113f
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2022-10-18 13:17:06 +02:00
Lucas Perais 4c224159b9 [FIX] web: basicRelationalModel trigger_up reload
Before this commit, the basicRelationalModel could not handle the legacy
event "reload" trigger by the basicModel., resulting in crashes.

In particular, when the method "action_archived", via the method `record.archive()` returns an action
(in target new usually) to confirm or ask the user for some additional information, closing that modal
will trigger a model reload via the event.

After this commit, this whole flow is tested and works correctly.

closes odoo/odoo#102826

X-original-commit: 0abb90fb2aa7857990b5f5dae95e9e891125b5fa
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2022-10-18 13:17:00 +02:00
Lucas Perais bf053ecef9 [FIX] sale_stock: re-introduce qtyAtDate legacy Widget.
This widget may be used in some arch only handled by legacy code.
We reintroduce it to prevent crashes.

closes odoo/odoo#102748

X-original-commit: dfe98cff11a723627d46a6619223b6a41a5243fc
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2022-10-18 13:16:57 +02:00
Alexis Lacroix 7a23c27e85 [IMP] base: add banner_route to graph view attributes
odoo task id 2985113

closes odoo/odoo#102397

Related: odoo/enterprise#32382
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-10-18 13:16:39 +02:00
Aurélien Warnon 286fe8dca1 [FIX] survey: fix the survey list view
It was not possible to open the survey list view anymore because the renderer
override was trying to set the "canCreate" property, which only as a getter.

Instead, we base our logic on the existing "canCreate" property, as it does
exactly what we want.

Task-3026904

closes odoo/odoo#103351

X-original-commit: 6db2847b476a21d6a96baddecb8231e47157ae0e
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-18 12:19:39 +02:00
Bruno Boi e0139fc677 [FIX] web: calendar filter without main color attr
# Before
A calendar arch without a main color attr that has
some dynamic filters would crash.

# After
No traceback occurs, the default color is used.

closes odoo/odoo#103350

X-original-commit: 54e690b9c789ea862ce3039dd6040e210fa80b39
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2022-10-18 12:19:37 +02:00
Benoit Socias 93d63a7f28 [FIX] website: return to the root page after install from 404 page
This commit removes the path part of the reloaded page after a module is
installed from the website editor so that it lands on the root page of
the website, when the current page is a 404.

Steps to reproduce:
- Access `/@/a`, an undefined page.
- Edit.
- Discard.
- +New.
- Install Blog.
=> Reloaded `/@/a` but without its assets generated.

closes odoo/odoo#103345

X-original-commit: 886900c33d18f647016e596ba41c193f5fcf8a43
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2022-10-18 11:21:15 +02:00
Laurent Smet d15ff0818d [FIX] account: Fix missing parenthesis in query
The OR in query was ignoring the previous AND making the query returning randomly partners not linked to the current journal item.

closes odoo/odoo#103340

X-original-commit: 174d117a30f3a70e7993ea75816de381dda0fa6b
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Laurent Smet <las@odoo.com>
2022-10-18 11:21:13 +02:00
maximilien(malb) 8f7565601c [FIX] account: top button display fix
Multiple button had weird display where the number was not aligned with the text, and the spacing between the number and the text was missing

closes odoo/odoo#103336

X-original-commit: 92e923c8ef4419206dd78a61720a0df5c98b8f59
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
2022-10-18 11:21:10 +02:00
Dylan Kiss (dyki) e2793ff7f1 [FIX] account: copy analytic distribution on cut-off entries
Currently, when you create a "Cut-Off" entry on an account move line of an invoice or bill, the analytic distribution set on the original line is not copied to the automatically created account move lines.
This fix solves this issue by copying the original analytic distribution.

closes odoo/odoo#103119

X-original-commit: d8bc4175268ebde615902524f3ac7c25e2cf0c17
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2022-10-18 11:21:08 +02:00
Louis Wicket (wil) 051495ab95 [IMP] mail: move code from components to models (DiscussMobileMailboxSelection)
- Create DiscussMobileMailboxSelectionView model
- Pass DiscussMobileMailboxSelectionView record as props

Task-3014747.

closes odoo/odoo#103317

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-17 18:11:21 +02:00
Louis Wicket (wil) 2e2700e69e [IMP] mail, *: move code from components to models (ThreadTypingIcon)
*: im_livechat

Task-3004018.

Part-of: odoo/odoo#103317
2022-10-17 18:11:20 +02:00
Louis Wicket (wil) 2ae8ad027c [IMP] mail: move code from components to models (ThreadTextualTypingStatus)
Task-3002619.

Part-of: odoo/odoo#103317
2022-10-17 18:11:20 +02:00
Louis Wicket (wil) 2a57a6765f [IMP] mail: move code from components to models (MessagingMenuTab)
Task-3004195.

Part-of: odoo/odoo#103317
2022-10-17 18:11:20 +02:00
Louis Wicket (wil) f6a3153612 [IMP] mail, *: move code from components to models (DiscussSidebar)
* = im_livechat

Create DiscussSidebarView
Replace the use of useUpdate with useUpdateToModel
Task-3004215.

Part-of: odoo/odoo#103317
2022-10-17 18:11:19 +02:00
tsm-odoo 461f1c7998 [IMP] bus: last notification id reset after restoring db
Before this PR, the last notification id known by the client
was not reset after restoring the database. This was an issue
since there can be a gap between the last notification  and the
one that has been restored with the database. In this scenario,
messages are not received after restoring the database since the
client subscribes to higher notification ids that the ones that are
created.

This PR fixes this issue by defaulting to 0 if the one the client
passed is higher.

closes odoo/odoo#103311

X-original-commit: 5118da53a6e9adb94577a4f16999522a7e1e8c10
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
2022-10-17 17:11:05 +02:00
Adrien Minne 47ffe7b285 [FIX] spreadsheet: filter clear button for automatic default value
For the date filters with a default value set to "Automatically fitler
on the current period", the clear button don't work. It does not clear
the filter but revert it back to the default value.

The bug happens in the global filters side panel as well as in the
dashboards.

Odoo task 2989909

closes odoo/odoo#103270

X-original-commit: 27e58050aacf0ae525f1e1b6fec7b69133781312
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
Signed-off-by: Minne Adrien (adrm) <adrm@odoo.com>
2022-10-17 16:14:58 +02:00
Dylan Kiss (dyki) 21d54a1275 [FIX] analytic: fix styling of analytic distribution tags widget
The analytic distribution widget in the Analytic Distribution Model form displayed its selection field on a new line, making it too large and odd. This PR fixes the styling and simplifies the widget.

closes odoo/odoo#103282

X-original-commit: 73b11378b18a709537dff5b60373b40009a04a14
Signed-off-by: Ayob Habib (ayh) <ayh@odoo.com>
2022-10-17 14:17:42 +02:00
Yenthe666 38542ceac0 [FIX] CONTRIBUTING.md: update template link to V16
Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

closes odoo/odoo#103274

Forward-port-of: odoo/odoo#103207
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-10-17 13:09:26 +02:00
Yenthe666 324472d86c [FW][FIX] SECURITY.md: deprecate 13.0
Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

closes odoo/odoo#103273

Forward-port-of: odoo/odoo#103206
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-10-17 13:09:23 +02:00
mafo-odoo 73a49fbe82 [FIX] loyalty: missing invisible reward_product_uom_id
Steps to reproduce:
- Go to reward and loyalty add a reward to a program
- Select the free product reward in type
- Select a product

Current behavior:
There is a JS traceback

Explanation:
The reward_product_uom_id was missing from the form

closes odoo/odoo#103272

X-original-commit: 7552a828ce72e51ecd171519f6de6b14478791ac
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
Signed-off-by: Fockedey Martin (mafo) <mafo@odoo.com>
2022-10-17 13:09:20 +02:00
Mathieu Duckerts-Antoine 9a640383c9 [FIX] web: relational model: many2one update with no label
Before this commit, click on the "Search More" option in a list many2one
and then selecting an option in the opened dialog would lead to a crash.
This used to happen because the record is updated with a value of the
form [integer, undefined] (that is with no defined label) and nothing was
done in the list model to fetch that label, making impossible to render
the many2one after the update.
Here we make sure that a label is available after the update.

closes odoo/odoo#103271

X-original-commit: 81abccf729ef5b56a8656961931b7489e4364a1f
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-10-17 13:09:18 +02:00
Mathieu Duckerts-Antoine d9cd064ef7 [FIX] web: kanban: many2one label after drop
Have a kanban view grouped on a many2one and displaying that many2one
with a widget in the record cards. Drag a record from one column to
another: a crash occurs. This happens because the record update is done
with a value of the form [id, undefined] (that is with no defined label)
and nothing is done in the kanban model to fetch that label,
making impossible to render the many2one after the update. We fix that
problem by using the known group display name as label for the dropped
record.

X-original-commit: 2a6fe373d48385485933429fbc1e6e3eabd877b4
Part-of: odoo/odoo#103271
2022-10-17 13:09:18 +02:00
Malay Khamar 63b02bd872 [FIX] hr: make Attachment count working on Job Positions
closes odoo/odoo#103263

X-original-commit: 5ba7d6b02d78dfadc7aec542d20f5185d4058ffc
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-17 12:13:28 +02:00
Odoo's Mergebot 1e8c2bdc23 [FW][FIX] crm(_*): fix team member kanban and lead mining request form views
Purpose:
* To ensure consistency with rules configuration, some records should not be
opened from there.

* In sales team, the gauge showing the count of assigned leads in the members
kanban cards was not shown anymore. In this commit, the style of previous version is
restored. We also fix the unnecessarily large height of the embedded kanban view.

* On teams kanban view, action field values were joined with their label.

Task-3004227

closes odoo/odoo#103257

Forward-port-of: odoo/odoo#101897
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-17 12:13:26 +02:00
Florian Charlier b879b1ace3 [FIX] crm: remove team members kanban padding
Purpose: The enforced min size of kanban cards was applied to ghosts as well,
we undo that.

Task-3004227
Part of odoo/odoo#101897

X-original-commit: d0ee5c0e6deab3b73b761c7e0125ac52f7a7dd0a
Part-of: odoo/odoo#103257
2022-10-17 12:13:25 +02:00
Florian Charlier 7b9d160783 [FIX] crm,(website_)sale: fix kanban card joined contents
Purpose: split words with whitespace, as it's usually done.

Task-3004227

X-original-commit: c86f4c79326d6df78b434e103141bffb826b19db
Part-of: odoo/odoo#103257
2022-10-17 12:13:25 +02:00
Adrien Schoffeniels 52aefebbc3 [FIX] crm: fix sales team embed kanban
Purpose:
--------
In sales team, the gauge showing the count of assigned leads in the members
kanban cards was not shown (only a number was displayed, the gauge had its
width and height set to 0).

"o_kanban_view" selector has been removed from the gauge's style definiton,
as the class is not present in the dom.

Task-3004227

X-original-commit: 056313dacff9f19e84add4c39b4cebc305a2c5e1
Part-of: odoo/odoo#103257
2022-10-17 12:13:25 +02:00
Florian Charlier 91622e6ad5 [FIX] crm: prevent opening trigger record
Purpose: To ensure consistency of rules configuration, these fields shouldn't
be opened from there.

Task-3004227
Part of odoo/odoo#101897

X-original-commit: 064b95b4f4715976afddf3b685bf1279a195867d
Part-of: odoo/odoo#103257
2022-10-17 12:13:24 +02:00
Damien Bouvy 297830886c [IMP] base: prevent company duplication in UI
Ducplicating a company is not allowed (see copy override in
base/res_company.py), therefore removing the button from the view
altogether can avoid user confusion.

Task-3000228

closes odoo/odoo#103250

Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-17 11:13:42 +02:00
Pierre Rousseau ab2ae80ce0 [IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/ab6f7e4b [FIX] find_and_replace: clear input clears search matches
https://github.com/odoo/o-spreadsheet/commit/fe6afd61 [REF] header_visibility_ui: rewrite findLastVisibleColRowIndex
https://github.com/odoo/o-spreadsheet/commit/4c987a64 [REF] grid: remove useless clip
https://github.com/odoo/o-spreadsheet/commit/25a3168b [REF] functions: naming convention of assert helpers
https://github.com/odoo/o-spreadsheet/commit/ab896cac [IMP] functions: add demo data for financial functions
https://github.com/odoo/o-spreadsheet/commit/1e5912ad [IMP] functions: add AMORLINC function
https://github.com/odoo/o-spreadsheet/commit/cee8339f [IMP] functions: add XNPV function
https://github.com/odoo/o-spreadsheet/commit/dd17ff13 [IMP] functions: add XIRR function
https://github.com/odoo/o-spreadsheet/commit/d6813dc4 [IMP] functions: add VDB function
https://github.com/odoo/o-spreadsheet/commit/83ea4da8 [IMP] functions: add TBILLYIELD function
https://github.com/odoo/o-spreadsheet/commit/b2bd8be3 [IMP] functions: add TBILLEQ function
https://github.com/odoo/o-spreadsheet/commit/d1e70d63 [IMP] functions: add TBILLPRICE function
https://github.com/odoo/o-spreadsheet/commit/ea1bef1c [IMP] functions: add SYD function
https://github.com/odoo/o-spreadsheet/commit/31605fd4 [IMP] functions: add SLN function
https://github.com/odoo/o-spreadsheet/commit/816d31af [IMP] functions: add RRI function
https://github.com/odoo/o-spreadsheet/commit/a4a83a4b [IMP] functions: add RECEIVED function
https://github.com/odoo/o-spreadsheet/commit/28feb878 [IMP] functions: add MIRR function
https://github.com/odoo/o-spreadsheet/commit/a289a941 [IMP] functions: add INTRATE function
https://github.com/odoo/o-spreadsheet/commit/62da0927 [IMP] functions: add FVSCHEDULE function
https://github.com/odoo/o-spreadsheet/commit/b6789bd7 [IMP] functions: add DOLLARFR function
https://github.com/odoo/o-spreadsheet/commit/5db4064f [IMP] functions: add DOLLARDE function
https://github.com/odoo/o-spreadsheet/commit/cdc73ce5 [IMP] functions: add DISC function
https://github.com/odoo/o-spreadsheet/commit/cd0ee521 [IMP] functions: add DDB function
https://github.com/odoo/o-spreadsheet/commit/161134e6 [IMP] functions: add CUMPRINC function
https://github.com/odoo/o-spreadsheet/commit/c89c64ec [IMP] functions: add CUMIPMT function
https://github.com/odoo/o-spreadsheet/commit/4608ce74 [IMP] functions: add ACCRINTM function
https://github.com/odoo/o-spreadsheet/commit/c0bbf544 [IMP] functions: add DAYS360 function
https://github.com/odoo/o-spreadsheet/commit/2a59663c [IMP] functions: add PRICEMAT function
https://github.com/odoo/o-spreadsheet/commit/1c28a0ff [IMP] functions: add PRICEDISC function
https://github.com/odoo/o-spreadsheet/commit/dabffa30 [IMP] functions: add ISPMT function
https://github.com/odoo/o-spreadsheet/commit/f7351b21 [FIX] evaluation: prevent minus 0 (-0) values
https://github.com/odoo/o-spreadsheet/commit/3fca53c9 [IMP] functions: add IPMT function
https://github.com/odoo/o-spreadsheet/commit/418c9f4a [IMP] functions: add PPMT function
https://github.com/odoo/o-spreadsheet/commit/8ea85442 [IMP] functions: add NPER function
https://github.com/odoo/o-spreadsheet/commit/b9eb40b8 [IMP] functions: add PMT function
https://github.com/odoo/o-spreadsheet/commit/27228ad7 [IMP] functions: add YIELDDISC function
https://github.com/odoo/o-spreadsheet/commit/ca54b439 [IMP] functions: add coupon functions
https://github.com/odoo/o-spreadsheet/commit/7f0b3703 [IMP] functions: add RATE formula
https://github.com/odoo/o-spreadsheet/commit/9940b6d9 [IMP] functions: add NOMINAL and EFFECT functions
https://github.com/odoo/o-spreadsheet/commit/97ddfdd6 [FIX] functions: rename financial test file
https://github.com/odoo/o-spreadsheet/commit/16f7d2af [REF] sheetview: don't reset viewports uselessly
https://github.com/odoo/o-spreadsheet/commit/4dfa2142 [REF] grid: remove useless anonymous function
https://github.com/odoo/o-spreadsheet/commit/e3f64551 [FIX] ui_sheet: do not resize empty columns

closes odoo/odoo#103245

Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-10-17 10:11:14 +02:00
Demesmaeker b1d023e122 [FIX] base: fix UI
classic layout issue due to the group that cause a wrong alignment

closes odoo/odoo#103205

X-original-commit: 2f5b96639c8bb7975696c507c11d57d164e52cbb
Signed-off-by: Morgane Demesmaeker <edm@odoo.com>
2022-10-17 10:11:11 +02:00
Rémy Voet (ryv) 1cfc896f2c [IMP] core: add Json field
To be able to create easily a jsonb column in database,
we create a Json type Field. Currently, it is quite limited
field:

- We cannot modified the value in-place, we need to always set
the entire jsonify value.
- No domain operator is done to work with jsonb. Now, it works as a
text field.

closes odoo/odoo#103097

X-original-commit: 7eeba9d205d2dace571b5d0895ddba6290a512db
Related: odoo/enterprise#32729
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2022-10-17 10:11:09 +02:00
gawa-odoo b8dca3b174 [IMP] analytic, *: Json field for analytic distribution
The `analytic_distribution` field is a Json.
It was stored temporarily as a char.

Search is not available yet, so we do queries by hand when we need to search on keys.

Also added a constraint on account_analytic_distribution_model,
so we don't have models with accounts specific to a company when the model has no company or another company.
It would cause an issue when looking at the models from another company.

X-original-commit: 7064c95aa04e5138bb12ae97acfee04ebb67cc0e
Part-of: odoo/odoo#103097
2022-10-17 10:11:09 +02:00
Prakash Prajapati 7a366abb40 [FIX] project: fix search result for users in task search view
Steps to reproduce:
    - Install the project app
    - Create user A
    - Go to the project
    - Create a task with assignees A
    - Archived user A
    - Go to the project > task
    - Search: Assignees for >  user A

Actual behavior:
  We cannot search tasks of the archived user.

Expected behavior:
  We can search tasks of the archived user.

task-2978632

closes odoo/odoo#103166

X-original-commit: d87eacb26ae73d3836e03311ff40b361e9819b47
Related: odoo/enterprise#32788
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-15 15:01:22 +02:00
Prakash Prajapati f87dda151f [FIX] hr_timesheet: changed the string of the fields according to the encoding unit
In this commit, we changed the following field string:

Initially Planned Days
Days Spent
Remaining Days

task-2978632

X-original-commit: 703d535dd867b43a8c2aba090cdfe1c0da4c2435
Part-of: odoo/odoo#103166
2022-10-15 15:01:21 +02:00
Benoit Bertholon 17bbafa28d [CLA] cla agreement
closes odoo/odoo#103212

X-original-commit: 6aead37617657391b01af3191f67fcfa2d645d4d
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-10-14 17:32:40 +02:00
luvi 8bf30a66c3 [FIX] web: fix progressbar alignment in form views
This commit fixes the alignment of the progressbar in form views. A fix
that has been introduced in commit fae1d7a3e22bb6d295ca7d0550d425a9b1af934e made
the progressbar aligned to the right in its readonly state, before turning
into edition, which displayed the field on the left. Since the right
alignment is only needed in list views, the style has been adapted to only
show the 'end' alignment on that specific case.

closes odoo/odoo#103203

X-original-commit: 297dfd5499ec50967bf28bb6bf6d1a5d9269b2b5
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Luca Vitali <luvi@odoo.com>
2022-10-14 11:40:01 +02:00
Damien Bouvy f2992bbe0c [FIX] *_holidays: adapt to grid form views
closes odoo/odoo#103101

X-original-commit: d13047de8cafa414a2197b5311699cce84e59e20
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-14 09:18:13 +02:00
Alexandre Kühn 9cbbf036f6 [FIX] mail: properly compute active category from scroll
Before this commit, the active category was wrongly computed,
which results is wrong display of the active category while
scrolling and while clicking on the category bar.

The bug was that computation relied on condition of 1st rendered row,
instead of 1st visible row. Rendered rows include the extra before
the 1st visible one, here 10 extra rows above.
As a result, the computation of active category acts as if the
viewport was offset by 10 rows upward.

Task-3017324

closes odoo/odoo#103124

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-13 09:19:46 +02:00
Nemael 1a28201956 [FIX] mail: emoji picker additional rendered rows not working
On the emoji picker, additional rendered rows on top and bottom
were not loaded correctly on top.

This commit fixes the top rendered rows not working properly.

Also fixes computation of some fields that should contain
integer values (index) but had float instead, which required
late rounding.

Task-3000424

X-original-commit: 24d9b970d032709b8f80cf49da057156ccd7fde5
Part-of: odoo/odoo#103124
2022-10-13 09:19:45 +02:00
stefanorigano (SRI) 29497f4119 [FIX] mail: o_ChatterTopbar, adapt layout when no activities
Prior of this commit records without activities buttons were rendered
with a double border (eg. CRM > Sales Teams > Team's formView).

This commit will adapt the layout accordingly avoiding to render a
border when it's not necessary.

closes odoo/odoo#103145

X-original-commit: 1903f7aa2553b555b58df066f584feb4caf25e71
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-12 19:52:41 +02:00
Thanh Dodeur e4938b3862 [FIX] prevents the callViewer from being too small on small screens
Before this commit, the callViewer could end up too small and only have
space for the callActionList, which was hiding call participants.

taskid-3014640

closes odoo/odoo#103144

X-original-commit: b9370f5fdf0dcbcf23280f370408eab5183433e6
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-12 19:52:39 +02:00
Victor Feyens 892c8ae572 [FIX] sale: remove useless menu depth
Since the removal of the dashboard view(s), there isn't even a second
'Dashboard' menu being added by and enterprise module.

Therefore, there is no need to keep the 'Sales' menu hidden under the
'Reporting' one, the reporting one can lead directly to the `sale.report`
action (& views).

closes odoo/odoo#103161

X-original-commit: 61a471eaf72fced257f31ae05e61f12620a5d39c
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-12 18:58:43 +02:00
tsm-odoo 93fc539bb3 [FIX] bus: fix threads can only be started once
The `ImDispatch` thread uses the `thread.is_alive` method to check
whether or not the thread should be started. The issue is that, this
method will return `False` after the start method has been called, but
before the run method is invoked leading to the RuntimeError: thread
can only be started once.

This commit fixes this issue by suppressing this error in this case.

closes odoo/odoo#103157

X-original-commit: daded0125a4ec2421b9e817aaaa725da2fd96a20
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
2022-10-12 17:07:40 +02:00
Brieuc-brd ccd45298e4 [FIX] web, loyalty: adapt mail preview for dark mode
Prior to this commit, the mail preview for gift card wasn't readable in
dark mode.

This commit fixes this issue.

task-2710677

closes odoo/odoo#103163

X-original-commit: 360e8da33fa8b1a607a96eb58fc0dcc5e1b07539
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-12 16:14:53 +02:00
Morgane (morm) a27a94395f [FIX] live chat : field image background
Previous to this commit, the background of the image in the session
history was grey on dark mode

task-3012970

closes odoo/odoo#103160

X-original-commit: 9d94d9b84ffd683b87bb0ae9c0d2e879dc720070
Related: odoo/enterprise#32785
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-12 16:14:46 +02:00
Morgane (morm) cb16a9b3b1 [FIX] web: badge border
Prior this commit, there was a height difference between the badges with
an outline and those without it.

task-3012970

X-original-commit: 5a009fa654f40f3348217fff2014f475ce099a49
Part-of: odoo/odoo#103160
2022-10-12 16:14:46 +02:00
Morgane (morm) a5b6ba9f99 [FIX] web : field badge color
Prior to this commit, the badge hover was not readable in dark mode

task-3012970

X-original-commit: eebd6c42a8669a0c4181a59ae5b33d6bc40d6f06
Part-of: odoo/odoo#103160
2022-10-12 16:14:46 +02:00