Commit Graph
145209 Commits
Author SHA1 Message Date
Jorge Pinna Puissant d9303a8448 [FIX] web: fix multiple display errors
This commit will fix some display errors :
 - The margin space between two btn-group on the control panel was too big;
-  The "Group By" menu was lacking an option to add the "fa-caret-down" to looks like other
    Dropdowns;
- The "Group By" menu on the graph view, when used as a subview, has been place in its own
    btn-group to behave exactly as the "Measures" menu;
- The background of the headers on the pivot table wasn't always gray;
- Some borders of the pivot table were missing.

closes odoo/odoo#76529

X-original-commit: 0ffe18927c2f086529de168b5665766a1b9261f7
Related: odoo/enterprise#20872
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2021-09-15 06:35:00 +00:00
oco-odoo 0f2d151d9b [FIX] account: Don't generate pdf at all when trying to print a misc operation from the 'print invoices' actions
Before, clicking on 'print invoices' or 'print invoices without payment' on a posted misc operation raised an error message saying that only invoices could be printed. However, the pdf file still got generated and could be found as attachement on the move. With this commit, we don't generate the file anymore in this case.

closes odoo/odoo#76534

X-original-commit: 4c06b3c1180048b1c0db5067adf0c0bef5c02785
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-09-15 05:27:53 +00:00
Didier (did) 1c3147eeee [IMP] mail: improve attachment components
Current implementation switch display between file attachment and image
attachment. This commit split those behavior in 2 components.

Part of task-2365881

closes odoo/odoo#76541

X-original-commit: 0a0f37f6645f1196e3a6d104e8592a1a362058db
Related: odoo/enterprise#20880
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-15 00:56:49 +00:00
Nasreddin Boulif (bon) 6d20d54479 [FIX] stock: Display only one table header in traceability report
Steps to reproduce:

  - Install Manufacturing module
  - Go to Manufacturing -> Operations -> Manufacturing Orders
  - Create a new one and add at least 10 product components
  - Move it to Done stage
  - Click on stat button Traceability
  - Unfold the components
  - Print report

Issue:

  Table header on 2nd page overlap table content.

Cause:

  Wkhtmltopdf does not handle well table on multiple pages.
  More info here: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2367

Solution:

  Do not duplicate table header on next pages.

opw-2634492

closes odoo/odoo#76535

X-original-commit: 8cc791e2de0f708ff7d69574cc8a8a40ef61c02b
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-09-14 23:38:52 +00:00
Sébastien Theys 6d948bdb47 [IMP] mail: clean up code of RTC join/leave
Part of task-2366708

closes odoo/odoo#76528

X-original-commit: 9a05dfe06d9d5706d0e45ad14d6ef8902d6b276e
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 17:53:43 +00:00
Samuel Degueldre ac4965e104 [FIX] mail: fix traceback in commands with body, commands don't linger
Commands that were expecting a body were not receiving one, and sending
a command would not clear the text input. This commit fixes that.

task-2645395

closes odoo/odoo#76516

X-original-commit: 3274452e41c2c3c097cea3cf24da68fc67b97eb5
Related: odoo/enterprise#20865
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 17:53:39 +00:00
Samuel Degueldre 55692897c5 [IMP] mail: improve message layout, reduce empty space
task-2646144

closes odoo/odoo#76518

X-original-commit: 1969b0890317aaa7452bd1e54570a22fae4991c2
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 16:41:01 +00:00
Benoit Socias 9e20e7d9c0 [FIX] website: avoid displaying the link popover when opening user menu
Before this commit toggling the user menu did display the link popover.

After this commit no link popover is displayed when clicking on the user
menu (or any other dropdown menu) anymore.

task-2612755

closes odoo/odoo#76511

X-original-commit: ffaa406884bd5a897a0f76e993c915691ab850ba
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-14 16:40:56 +00:00
desdelinux 884ad2444c [IMP] l10n_pe: class 60 accounts should be of type expense
[IMP] l10n_pe: class 60 accounts should be of type expense

[IMP] l10n_pe: class 60 accounts should be of type expense

closes odoo/odoo#75489

X-original-commit: 0ecf9062397c16dbb987ee53774f5d41f850e503
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-14 16:40:53 +00:00
Joseph Caburnay ed9d19678b [FIX] point_of_sale: the warning is not presentable at initial creation of payment method
When creating a payment method, the warning about the journal is
immediately shown and it's not really useful since in the point of
view of a user, the options provided when selecting a journal are
already of type 'bank' or 'cash'. So there is really no need of
explicitly showing the warning.

However, if the journal is programatically changed to a journal that
is neither 'bank' nor 'cash', there should still be a way to warn the
user about it. So, we don't completely remove the warning, but put it
in the tooltip.

closes odoo/odoo#76494

X-original-commit: ea99ec3752fa8d4409c7239752db9b8286c5172c
Related: odoo/enterprise#20849
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-09-14 15:10:36 +00:00
Bruno Boi 3cd7ffdc6b [FIX] web: falsy group names in list view
When a group has a falsy value (e.g. if grouped by an integer field having a "0" group), make sure to display its proper name instead of "Undefined".
Off course, boolean fields are still showing "false" name if it is the case.

This issue was introduced with 3dd1c0f

closes odoo/odoo#76493

X-original-commit: 4e213f0b93f59cf377271b18eae9765ff9cfbe4f
Related: odoo/enterprise#20847
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
2021-09-14 15:10:15 +00:00
Bruno BoiandMohammed Shekha 6957a614d2 [IMP] web: test coverage for many2many grouping
Add testing coverage for m2m grouping feature introduced by cbc9f3c

Linked PR: odoo/odoo#74985

task-2633123

X-original-commit: a6296f8952b27c597d017332e865d5ca1bd0adac
Part-of: odoo/odoo#76493
Co-authored-by: Mohammed Shekha <msh@odoo.com>
2021-09-14 15:10:14 +00:00
William Henrotin 02770cae97 [FIX] mrp: don't merge move with same components
Component move with same product are not merge at confirmation as it
could be multiple different production steps.

opw-2583848

closes odoo/odoo#76401

X-original-commit: 390fce62462962e9a0131a082317e2e60e34041a
Related: odoo/enterprise#20801
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-09-14 15:10:08 +00:00
Mathieu Duckerts-Antoine 477462d024 [FIX] web: favorite domain is a string
Since the refactoring of the search model https://github.com/odoo/odoo/commit/aeb8e49972f871b0c9b07c507987ee77cf5e8abd,
the new favorite items were created with a domain with the wrong type:
Array instead of string. Thus it was impossible to share the search
state with a legacy view when a new favorite was created. We now set
correctly the domain key of a favorite.

closes odoo/odoo#76368

X-original-commit: 2db799d53ad8e765ac864e27e5734046e0491ea9
Related: odoo/enterprise#20778
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
2021-09-14 15:09:58 +00:00
Patrick Hoste 6088a1eb01 [FIX] website: fix get_dynamic_filter controller method
PURPOSE

Before this commit when the method returned an empty string, the calling
method _fetchData couldn't processed map() on the result.
After this commit the result will be an empty array thus the map method
won't fail.

LINKS

Task-2489680
PR : odoo/odoo#

closes odoo/odoo#76497

X-original-commit: ef813860b7582e9f1a92debb40d6dcda5519e607
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-14 13:32:33 +00:00
Kevin Baptiste 4cc7211b8d [FIX] hr_holidays: accrual levels should be copied
The accrual levels were not copied when an Accrual Plan was duplicated.

closes odoo/odoo#76495

Taskid: 2639094
X-original-commit: bc62cc4033b6f065b09bf34b253eef3c4a3f289e
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-09-14 13:32:28 +00:00
Nathan Marotte (nama) 77d6dff466 [FIX] website_slides : iframe code block appearing when pdfviewer loaded
Issue: When viewing a pdf in a website_slide, in certain conditions (
odoo detect the slide is externally embedded), a <iframe> code block
is displayed on the pdf rendering it really hard to read. As a work
around, one could click on the "<\> Embed" button to make it disapear

Steps to reproduce :
 1) Run a local odoo server with the website_slides module
 2) Set up a ngrox tunneling service to your localhost and good port
 3) Find or create a **document** slide and get its id (<slide_id>)
 4) Access the slide via the website url on the slide
 5) Go down the page in the Share tab and copy the iframe
  -Replace http by https in the src attribute of the iframe if necessary
 6) go back to the dashboard, open the inspector and add the iframe in
 the body of the webpage
 -> The slide is correctly detected as non embed
 7) Access your Odoo database with the ngrox https forward (example :
 https://0dfc-2a02-a03f-6b9b-b300-bd6c-8048-90f1-3f25.eu.ngrok.io)
 8) Repeat step 3 to 6 included
 -> The slide is detected as embed, so a <iframe> text area appears
 and make the pdf hard to read

Alternative steps to reproduce :
 1) Run a local odoo server with the website_slides module
 2) Go to the usual http://localhost:8069/ to access your database and
 navigate to a PDF slide in eLearning
 3) Change the localhost in the URL to 127.0.0.1 (Example
 http://localhost:8069/slides/slide/gardening-the-know-how-1 becomes
 http://127.0.0.1:8069/slides/slide/gardening-the-know-how-1) and press
 Enter to go to the new URL
 4) Change back the 127.0.0.1 to localhost and press Enter to go to the
 new URL
 5) You might have to repeat the back and forth between the two domains
 -> The slide is detected as embed, so a <iframe> text area appears
 and make the pdf hard to read

Why is that a bug:
 It makes the PDF unreadable unless we know that we must click on that
 button, it really shouldn't be like that

opw-2499110

closes odoo/odoo#76487

X-original-commit: cda27bc5535e0bb2a5191d89abf556d8c72025bd
Signed-off-by: Nathan Marotte <nmarotte@users.noreply.github.com>
2021-09-14 13:32:21 +00:00
Martin Trigaux e8fd353cfa [IMP] auth_totp: add test
Original commit was adding the feature in stable but was replaced by
2dee29a7dc in 15.0

This is the forward port of 4736344a57e176 keeping only the test

closes odoo/odoo#76476

X-original-commit: f707d5887c168604b7b7571ae4adc47d64b4a55a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-09-14 13:32:14 +00:00
Antoine Guenet 86e624f5a0 [FIX] website: prevent animations from restarting on a blank page
Commit [1] introduced `_onEditionWasStopped` which besides declaring the
edit mode as disabled, also restarted animations. Since the new editor
was introduced, this is triggered on save and cancel, which is indeed
needed in order to declare that edit mode is disabled, but also
generates a traceback due to the animations now restarting on an already
destroyed wysiwyg. That restarting of animations is unnecessary anyway
since the page will refresh when disabling the edit mode.

[1]: https://github.com/odoo/odoo/commit/f296992317e96562c66bd7ad59a5080d6c551ed5

task-2528814

closes odoo/odoo#76450

X-original-commit: 7aea27968b1d51fc3ca2645a4e4d21258466d5ee
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-14 13:32:10 +00:00
Lucas Perais (lpe) ced5b4568d [FIX] web: View component support banner_route
The View component supports banner_route, fetches the HTML and passes
on the prop "bannerHTML" to the concrete component class.

The feature has been a little forgotten in 0134495ba5.
This commit just revives it.

closes odoo/odoo#76370

X-original-commit: 99d1da58392a66dea1187ef4f00e41e924382d61
Related: odoo/enterprise#20779
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-09-14 13:31:59 +00:00
Lucas Perais (lpe) ecf3099c8f [FIX] web: introduce useActionLinks view hook
The view Component supports clicking on links `a`
that have a type="action"

The feature is a lighter version of execute-action, since it doesn't support
dynamic information from the model (e.g. basicModel)

X-original-commit: f695c61a7e9422cb2aa909d08d87ef74f42d3ed8
Part-of: odoo/odoo#76370
2021-09-14 13:31:59 +00:00
Thanh Dodeur 29cf3d4e84 [IMP] mail: add log keeping to rtc calls
This commit adds a new field `logs` to the model `mail.rtc_session`
that holds logs for each rtc sessions of the current call, if we are
in debug mode.

This commit also adds a button to download a .json file of the logs.

closes odoo/odoo#76339

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 13:31:53 +00:00
Thanh Dodeur 2a1436ded7 [FIX] mail: add more RTC connection recovery cases
This commit adds RTC connection recovery attempts for some cases that
were not covered, like `addIceCandidate` error or `failed` ice
connection state.

Part-of: odoo/odoo#76339
2021-09-14 13:31:53 +00:00
Benoit Socias 338b437d54 [IMP] web_editor, website: make button colors selectable
Before this commit button colors were only obtained from one of the
predefined styles.

After this commit button colors can be specified by using the new
"Custom" style.

task-2612755

closes odoo/odoo#76461

X-original-commit: a010c91b5ee119cf54ed1a68a6ea06b2bc5f3978
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso-odoo@users.noreply.github.com>
2021-09-14 12:07:50 +00:00
Goffin Simon f2044a5bb1 [FIX] snailmail: Updating country in snailmail.letter.missing.required.fields
Steps to reproduce the bug:

- Open a customer invoice I for a customer C
- Remove the country from the address of C
- Click on button Print & send on I
- Set the country of C with CTR
- Click on Update and send

Bug:

The country of C was not saved.

opw:2633425

closes odoo/odoo#76460

X-original-commit: 181d69056ae00f9eeff4cd6c8ae7bbcdc7b14599
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2021-09-14 12:07:46 +00:00
Cedric Prieels (cpr) 828d5157a5 [FIX] project{,_mrp}: fix project update stat buttons
We are copying 3 stats buttons from the project
view form (manufacturing orders, work orders and bills of materials)
 and we add them to the project update page.

See task-2638359

closes odoo/odoo#76421

X-original-commit: 4572e710a5e755c0c75c95a6d033e44f0a2799f8
Related: odoo/enterprise#20811
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-09-14 12:07:39 +00:00
alt-odoo c80648f16c [FIX] crm: prevent division by zero in lead probability computation
If for some reason we cannot compute lead probability, we should simply
continue to the next value without causing a division by zero.

For example, this can happen if all stages are team specific, as there is
a current limitation regarding the first stage (used to know how many lost
and won there is) that requires to have no team assigned to it. This is a
side effect of the commit https://github.com/odoo/odoo/commit/cd291b79eb2d2df80899867263ec71438ab8fe87 introduced in V14, and we should add
a test to ensure we do not crash in that case.

closes odoo/odoo#76379

X-original-commit: 9793bb29fe6c4d0d59905b2fcfe78ebe51e17579
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
2021-09-14 10:51:14 +00:00
Kevin Baptiste 4cc00d44d6 [FIX] hr_holidays: correctly compute Time Off type statbuttons
The stat buttons were showing incorrect values, the accrual action was
not returning, archiving an employee was no longer possible because an
incorrect state was used.

closes odoo/odoo#76468

Taskid: 2641596
X-original-commit: cc75a1233ed40cb1a4812a5f4a377b8859795b26
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-09-14 08:22:05 +00:00
Pierre Masereel 399b4c1301 [FIX] point_of_sale: errer when accessing ir model
When the POS want to get the reference unit of measure "Unit", it search
on the ir.model.data model.

Due to recent changes, a normal user cannot have access to the
ir.model.data model.

So we are now calling the function 'check_object_reference' that will
retrun the model and id of record, and check the access rights on the
record returned.

closes odoo/odoo#76462

X-original-commit: d43a3e12e27a3d5dd0f3c576cec88c04684669bf
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-09-14 08:22:00 +00:00
Martin Trigaux 5b6e67f75d [FIX] *: stop importing tests
See 15f2bbd40a70d9d9
Do not want to force installing freezegun on production databases

closes odoo/odoo#76453

X-original-commit: 104abf024c16198999a832d4ce7f56b3b988612f
Related: odoo/enterprise#20827
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-09-14 08:21:54 +00:00
Samuel Degueldre 97b64f4330 [IMP] mail: add test tour for guest pages
closes odoo/odoo#76445

X-original-commit: 5b669758930763c44b7a0354f78b7d161686b397
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 08:21:49 +00:00
Thibault Delavallée a877cb171c [FIX] mail: be sure layout renders on every chatter models
Task-2621326
PR odoo/odoo#76441

closes odoo/odoo#76459

X-original-commit: 242392b81b2b2ab342c38850ea9ccb8599a2f421
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-14 07:11:03 +00:00
Thibault Delavallée 2973ecd720 [IMP] test_mail: improve notification and post tests
Add tests for notification layouts. Purpose of this commit is to test rendering
of all current email notification layouts, ensuring they effectively render
well whatever changes done in mail thread mixin code about template preparation
or rendering. They should also correctly render on simple chatter models which
is currently not the case.

A test ensuring message_post returns an ID when called by RPC should be
called post install. That way we test overrides that frequently break
this method API, and not only the base one.

Task-2621326
PR odoo/odoo#76441

X-original-commit: d7343dc8917505914058b698c59e6520dbacffd5
Part-of: odoo/odoo#76459
2021-09-14 07:11:02 +00:00
Nicolas BayetandThibault Delavallee 60fce9f656 [FIX] mail: allow to preview a template in a specific lang
Followup of odoo/odoo@2d6df1fe7a : when forcing language in template preview
result is not returned according to the expected format.

Add tests.

Task-2643750

closes odoo/odoo#76458

X-original-commit: 80c6001f6f46cc548fb4e337ba71908bea768d86
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Thibault Delavallee <tde@odoo.com>
2021-09-14 07:10:57 +00:00
Thibault Delavallée bc7dbfea63 [IMP] test_mail: improve tests for template translations
Extract translations and preparation to setup of TestTemplate class. That
way those are usable in other tests.

Create a new model to test language computation. It holds both a string
and a partner field, allowing to test a bit jinja-based language computation.

Task-2643750

X-original-commit: 7896cbc4f2256122b5cf6c5506921398f2ebc931
Part-of: odoo/odoo#76458
2021-09-14 07:10:57 +00:00
Aurélien Warnon 24a0354d49 [IMP] website_event_track_live: hide "YouTube replay" if no YouTube URL configured
This commit slightly adapts the invisible attrs domain of the is_youtube_replay
field to account for empty OR False youtube_video_url values.

So that the youtube replay field is always hidden if no youtube URL is
configured.

Side note: The web client should probably consider empty as a Falsy value so
that we can write simpler attrs domain based on empty/False Char values.

We also took this opportunity to tweak some youtube field labels.

Task-2643205

closes odoo/odoo#76303

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-14 07:10:49 +00:00
Louis Wicket (wil) d81884b98f [FIX] mail, bus: move user unique index in bus
Move user unique index back in bus module so that it is defined even
without mail module installed.

closes odoo/odoo#76454

X-original-commit: beb25dff5af816fa30341490374c9da44da175c1
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 06:01:38 +00:00
Bruno Boi cfb1a65fc2 [FIX] web: make tooltips for the view switcher consistent across views
With the new OWL view infrastructure introduced by 0134495, tooltips for the view switcher are not consistent across the different views. The converted views show a popover component, the legacy views show a browser tooltip.

After this commit, the view switcher's tooltips are always a popover component.

closes odoo/odoo#76444

X-original-commit: ad7db83e6dcf4c124234a3c611b84012f898acd0
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Bruno Boi <brboi@users.noreply.github.com>
2021-09-14 06:01:34 +00:00
Bruno Boi c974b2524c [FIX] web: reintroduce RTL support
With the new OWL view infrastructure introduced by 0134495, some parts of the right-to-left design was broken.

All the issues addressed in this commit are:
- subdropdowns are shown in the correct direction
- subdropdowns' chevrons point to the correct direction
- subdropdowns keyboard navigation with left/right arrows
- popovers' arrows point to the correct direction
- the document's `<body/>` will have the `o_rtl` CSS class

X-original-commit: 8649e46bec051e6bbe21bbdb8023f747206644af
Part-of: odoo/odoo#76444
2021-09-14 06:01:34 +00:00
Swapnesh Shah 078c7161a3 [FIX] account: use current date as fallback to convert currency
Description of the issue/feature this PR addresses: Fixes #76177

Current behavior before PR:
Before this commit, There will be tracback on adding new
Journal Item if there is not date on Journal Entry.

Desired behavior after PR is merged:
Now we use current date to as fallback to convert currency.

closes odoo/odoo#76416

X-original-commit: 5919fbb8a4a3bdf4e7122dadf419a131bad8d1f8
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-09-14 06:01:26 +00:00
Lucas Perais (lpe) 9d0f1fd07e [FIX] web: pivot: apply table-reponsive
Otherwise the experience in mobile won't be nice.

closes odoo/odoo#76390

X-original-commit: 9e36d2eda46febda16118cd56d541b6c90501c53
Related: odoo/enterprise#20796
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2021-09-14 06:01:22 +00:00
Lucas Perais (lpe) f45f12d0bd [FIX] web: control panel bottom content style
Before this commit, the style of the control panel's bottom section
was a bit broken: the button groups did not flex.
This was because the dom changed a bit.

After this commit, they do.
Also, the structure of control-panel-bottom-left has changed.
It should contain `.btn-group` elements at its root.
The spacing between groups is handled by the control-panel.
(before, those spaces were actual spaces in DOM)

X-original-commit: 18ea11c99a7e2bd58d7469927352587cb14c76c4
Part-of: odoo/odoo#76390
2021-09-14 06:01:21 +00:00
Samuel Degueldre d9a6429e45 [FIX] mail: fix broken avatar on message from non-channel members
With the introduction of the guest feature, a lot of fields are now
accessed through a controller so that they can be available to guests,
with additional checking in the controllers.

Avatar is one such field, however the extra checks were too restrictive:
we only allowed people to see the avatar if the user whose avatar was
requested was also a member of the channel. This breaks the avatar on
previous messages if a user leaves a channel.

This commit relaxes this restriction for internal users (they can now
see all avatars through this route), and adds a fallback to the avatar
placeholder for people who do not have acces (ie: guests) so that the
UI doesn't look broken.

closes odoo/odoo#76341

X-original-commit: b849fd426806332c1ecc1bbba7b568384a021c65
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-14 06:01:12 +00:00
oco-odoo e76e34cc08 [FIX] account: avoid crashing when using cash basis taxes with multivat setup
To reproduce:

1) Create a foreign VAT fiscal position fpos (so: assign it a different country than your fiscal country, and set a value to its foreign_vat field)

2) Create a cash basis tax in the same country as fpos

3) Make an invoice using this tax and fpos

4) Try registering a payment to your invoice. => Traceback

closes odoo/odoo#75990

X-original-commit: cefcdfb7b88d899779de65b4ac1376445cb67c73
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-09-14 06:00:59 +00:00
John Wilson 63c00f700d [FIX] various: --test-file on Windows
closes odoo/odoo#75341

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2021-09-14 06:00:52 +00:00
Habib (ayh) 15d5769d95 [FIX] mail: fileupload bug
Steps to reproduce (using documents app):
1. Create a new document request
2. Select the created document request, enable the chatter
3. Upload a document using the document request icon
4. Hide the chatter
5. Show the chatter
Odoo Client Error

OPW-2643331

closes odoo/odoo#76402

X-original-commit: ef6ee09121e9f6ed8310aa34800d8d765c9149cf
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-09-13 19:39:04 +00:00
Thanh Dodeur a8568d10cc [FIX] mail: remove unnecessary disconnect broadcast after ending a call
Before this commit, we would attempt to notify peers that we are
disconnecting when resetting mailRtc, which was not necessary as peers
already close the peer connection when the server notifies them that the
call participation changed.

closes odoo/odoo#76423

X-original-commit: 8ccadf41fa6752d4662e9c6ea6f4d791935d6122
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-13 18:31:20 +00:00
Thanh Dodeur 53ea6f8024 [FIX] mail: load audio/video elements after changing the srcObject
Before this commit, there could be tracebacks after changing the
srcObject of the audioElement of the rtcSession, this commit
fixes this issue by calling `load` on the element after changing
the srcObject.

closes odoo/odoo#76422

X-original-commit: ec3aa0ef713cc0f048dbf6f5a36c86448a411baa
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-13 18:31:16 +00:00
Benoit Socias 85dfd3e180 [FIX] web_editor: handle palette history better
Before this commit several history steps were added when picking a color
and history steps were added when previewing a color.

After this commit history is only updated on color selection and not
during color preview: applying the color relies on execCommand which
adds an history step => no need to add another step upon picking a color
but must be prevented during preview.

task-2599771

closes odoo/odoo#76417

X-original-commit: 4c1956d697a52e4d561e93930bb9e9f5c61e8a35
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso-odoo@users.noreply.github.com>
2021-09-13 17:21:44 +00:00
Sébastien Mottet (oms) 905df37c8b [FIX] website: add support for svg logo in configurator
The configurator's palette selection screen didn't support
SVG logo. On SVG upload primary and secondary colors couldn't
be extracted and no palette was recommended. It comes from the
fact that Python PIL library does not support SVG. We therefore
had to convert SVG to PNG before trying to extract primary and
secondary colors. A file format checking has been added. If the
uplodad file is not an image, a notification is displayed to
the user.

task-2602521

closes odoo/odoo#76400

X-original-commit: 33f43618f727bdc1239c52c66b73f0f436035774
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-13 14:42:54 +00:00