Commit Graph
163579 Commits
Author SHA1 Message Date
aliya 35d8048044 [FIX] account_peppol: fix saving of the migration key
`account_peppol_migration_key` is a related field, stored on the `account_edi_proxy_client.user`.
We want to allow users to provide a migration key when they want to register as a new peppol participant,
migrating their existing peppol registration from another smp.
However, before they save and validate their registration,
there is no `account_edi_proxy_client.user` associated with the company and
hence the `migration_key` is never saved and never sent to the IAP server.
The solution in master will be to move this field to `res.company`
but in stable the workaround is to store it in `ir.config_parameter` and make it a computed field,
where the config parameter is updated in the inverse method on `account_peppol_migration_key`.

closes odoo/odoo#129691

X-original-commit: d5edca101e6a1dd751a3c95d713831e99fc18462
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2023-07-26 10:48:54 +02:00
Eteil Djoumatchoua(etdj) a1944aa4ad [FIX] website_sale_loyalty: Stop getting succes message after applying invalid coupon
Current Behaviour:
In E-commerce, when you apply a ``LoyaltyCard`` which is not applicable on the ``SaleOrder``,
in a specific case it displays a success message even if the coupon is not applied.

Expected behaviour
Don't display a success message when the coupon is not applicable

Steps:
- Create a program with 'coupon' type, a rule of 'minimum 1' and a reward on a specific product A.
- Generate a coupon
- Go to shop add product A to the cart, go to checkout and apply the coupon code(Everything goes well).
- Delete the coupon and the product, and add a product B.
- Go to checkout and try to apply the same coupon code.

Issue:
Wrong success message

Reason:
The wrong message is displayed beacause on the python side we just check if there
is 'error' in the ``Request.session`` but in this case there is also 'error_promo_code'
that should be considered.

opw-3355632

closes odoo/odoo#129663

X-original-commit: 6ee60a30e0798ce69152385b08e49b223782d785
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Signed-off-by: Eteil Junior Djoumatchoua (etdj) <etdj@odoo.com>
2023-07-26 10:48:51 +02:00
Vincent Schippefilt ac81985126 [FIX] base: traceback when creating a user
The combination of the new basic model and this change dc4dcead6e
made it so that creating a new user would fail with a traceback.

This commit fixes the issue by making sure that the company_id that is used
withing the initial onchange is a integer, and not a new-id.

closes odoo/odoo#129590

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-07-26 10:48:49 +02:00
Alexandre Kühn f42927c965 [FIX] web: autoresize input correctly in Safari 16
Before this commit, autoresize input in Safari 16 had their
size underestimated, thus truncating the content.
For example, in the Discuss app, the header is a (disabled)
autoresize input, which becomes enabled when the thread can be
renamed. This is also used for threads that cannot be renamed
for consistency of style. So some screens like "Inbox" had its
name truncated to "In...".

This problem is only present in Safari, not in Chrome or Firefox.
Apparently the sizing of input and textarea is incorrect, and it is
fixed in Safari 17. Indeed, Safari 17 can be tested with Safari
Technology Preview where the bug is not present.

This commit fixes the issue by adding an offset to computing the
scroll width of autoresize input, so that it matches the Safari 17
behaviour that is correct.

closes odoo/odoo#129698

X-original-commit: cd9d900c93d22fec1c24dc3b1e77230f80191f04
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-07-26 09:22:41 +02:00
Alexandre Kühn 2e15b640de [FIX] mail: no empty bubble on editing message with only attachments
Follow-up of https://github.com/odoo/odoo/pull/128650

The edited label is disabled because showing the label introduces
problems that have no good solution with the current implementation
to determine a message is edited.

The label was removed but the condition to determine whether a
message has some text content was not updated accordingly.
There was a special condition for showing "(edited)" label when
a message is edited to remove the text content but has some
attachments. Since the label is no more, the presence of text
content is the only thing that matters for this getter.

closes odoo/odoo#129692

X-original-commit: c53e3e73978f7c25c457a0ad19798566f59c7864
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-07-26 09:22:33 +02:00
Alexandre Kühn 9559b113dd [FIX] mail: show message action list next to attachment
Before this commit, when a message had no text, the action list was
placed above the message content, including attachments.

This made it hard to find the action list for these messages, as
all action lists of any messages are expected to always be next to
the 1st line of the message content.

This commit fixes the issue by placing action list next to text
content if there are any (same as before), but if there are no text,
then the actions are displayed next to attachments.

The template requiring defining a shared container for text content
and attachments, so that action list comes after. Also when the
message has some text and some attachments, the action list is still
expected to come inline of text content, which is why this commit
conditionally places the action list accordingly.

Part of Task-3340653

Forward-port-of: #128940
X-original-commit: 43699aea88adbdeca43150e9659fc5571de333e0
Part-of: odoo/odoo#129692
2023-07-26 09:22:33 +02:00
Shyam Gohil f164631c4e [CLA] signed cla for Shyam Gohil
closes odoo/odoo#129688

X-original-commit: 83e903e6dd85ca2fd4870c0c05233a2ee9739a03
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-07-26 09:22:30 +02:00
Louis (loco) c802efd56f [FIX] web_editor: correctly adapt the image mimetype on format change
Steps to reproduce the bug:
- Go on a product image and replace it by a ".jpeg" (note that the
mimetype of the image is "image/webp" since [1]).
- Change the format of the image and put it to "Original". The mimetype
of the image is now "image/jpeg".
- Add a shape on the image.
- Change the format of the image.

-> None is displayed as its format.

Let's first recall that adding a shape on an image transforms its
mimetype into an "image/svg+xml" and that the `originalMimetype`
attribute is used to record its original mimetype. This is needed in
order to correctly reset the image mimetype when removing its shape.

The problem here was that the `originalMimetype` attribute was not used
correctly and that the mimetype of an image with a shape was not
correctly updated at format change.

[1]: https://github.com/odoo/odoo/commit/0449fe85cb0e1d639a4e1aeba26e90906f79254d

task-3431015

closes odoo/odoo#129680

X-original-commit: 40811e72c50faf146ccdf9f26c332db9ebc69fa9
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
Signed-off-by: Colin Louis (loco) <loco@odoo.com>
2023-07-26 09:22:27 +02:00
Damien Bouvy f6dea9b6fe [FIX] web: list-specific binary field design
Instead of sho-horning full buttons inside a list view cell, use inline
buttons instead.

closes odoo/odoo#129679

X-original-commit: 76a4995b5037957bb5d7b1b2e04c44267273f7fc
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2023-07-26 09:22:24 +02:00
Damien Bouvy b7a742cc7e [FIX] web: highlight search facet icon on hover
X-original-commit: 643ce1255c90e944f11ff5b4fd5e47f7bf5aff6d
Part-of: odoo/odoo#129679
2023-07-26 09:22:24 +02:00
Damien Bouvy c3742f76c7 [FIX] web: padding on collapsed breadcrumb
X-original-commit: 121a9f4ec6bcb572915be1b2e26abc9944a07f9d
Part-of: odoo/odoo#129679
2023-07-26 09:22:24 +02:00
Damien Bouvy 5662aa7c7f [FIX] project: contrast issue in milestone stat button
X-original-commit: 17cde615a6e632bca59c3606028fe7bd84832599
Part-of: odoo/odoo#129679
2023-07-26 09:22:23 +02:00
Denis Ledoux 028bf8e0ec [FIX] base: tag test_add_field_valid as post_install
This test can lead to a deadlock,
when trying to drop the constraint on `ir_model_fields`
during the registry loading,
as the test opens a second cursor in addition
to the cursor used for the registry loading,
and drop a constraint on a table which is being read by
the registry loading (`ir_model_fields`), leading to the deadlock.
See screenshot in the PR for illustration.

This has been detected in the runbot nightly builds,
which were pending indefinitely because of that deadlock.
To reproduce, just init a database with `-i base`,
then restart the server with just `--test-tags .test_add_field_valid`.

To avoid to drop the constraint during the registry loading,
and hence to avoid the deadlock,
tag the test as `post_install`.
That way, the test is executed after the registry is loaded,
not during, and the constraint can be drop safely, not leading to a deadlock.

closes odoo/odoo#129660

X-original-commit: 67bc9a9e895245a94aac064e8f5a365ee6052261
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2023-07-26 09:22:19 +02:00
niyasraphy 112bc6499a [FIX] hr_work_entry_contract: reload calender from regenerate work entries
before this commit, if user try to regenerate the work entries
from the button 'Regenerate Work Entries' in the work entries
calendar view, the generated entries will not shown to the
user immediately without reloading the screen.

* payroll -> work entries -> work entries
* switch to calendar view
* click on Regenerate Work Entries button
* select employee's and click Regenerate Work Entries
* generated work entries will not be shown in calendar

after this commit, the generated work entries will be shown
in the calendar immediately.

closes odoo/odoo#129647

X-original-commit: 1ea504e6ee794be7513d8de20304527261548849
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-07-26 09:22:17 +02:00
Elisabeth Dickinson 0f0fc727da [FIX] project_todo: fix input height and reduce notepad padding
This commit aims to give the same height to both
`o_field_many2many_tags` and `o_field_many2many_avatar_user` when side
by side.
To remove some visual clutter inside the inputs, we've removed the
input's line (and the caret; without the line it seemed to be floating).

The padding in the notepad area (`.o_form_sheet`) has been reduced.

Note that this commit does not fix the status bar issue which should be
done in a separate commit.

task-3420954
part of task-3326263

closes odoo/odoo#129630

X-original-commit: bf3fc5dc76d4cea224255149c8a71b42c37b7d48
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-07-26 09:22:15 +02:00
Elisabeth Dickinson f6cab04cef [FIX] web: replace calendar navigation icons
In commit c0b354e14a18667463451aa6fe768bffcbb9da9a the intention was for
the calendar navigation to look like the gantt one. The arrows have been
replaced by the same `oi` icons as the gantt view's navigation.

task-3410165
part of task-3326263

closes odoo/odoo#129568

X-original-commit: c9384d12b903850f9535ca7b82ea2ef0e04fd39b
Related: odoo/enterprise#44556
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-07-26 09:22:07 +02:00
Elisabeth Dickinson 41c9bccf6e [FIX] web, *: fix buttons squashing and spacing
*: calendar, google_calendar, microsoft_calendar;

task-3410165
part of task-3326263

X-original-commit: b680a6ac5769bf8e02921a9548792c7696992955
Part-of: odoo/odoo#129568
2023-07-26 09:22:07 +02:00
Antoine (anso) 51458c3704 [FIX] web: fix folded kanban header's drag and drop state
Prior this commit, there was a problem with borders that were not
displayed on the kanban header when the stage was folded and the user
was trying to drag and drop in that stage.

This commit removes the background set on `.o_kanban_header` when the
stage is folded, so it doesn't overlap and hide the border set on
`.o_kanban_group`. We can do that safely because a folded stage
can't be scrolled

task-3423682
part of task-3326263

closes odoo/odoo#129560

X-original-commit: b6cb9fed6aa46591e692e67267a7419fe15f8c68
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-07-26 09:22:04 +02:00
Elisabeth Dickinson 18016c4504 [IMP] web: improve calendar view
Prior to this commit, the `font-size` of the days and week numbers in
the Month view were very large.
There were also a couple of issues with the background circles
highlighting days on hover or "today". In both Month and Year view
they were oval instead of circular, and in the `ui-datepicker` they
would hide the number if they happened to be in the previous or next
month.

To fix the font issue the `font-size` styling on
`fc-day-number` and `fc-week-number` has been removed.
For the roundness of the circle, a `:before` element was needed, .
And for the `ui-datepicker`'s circle a simple `position-relative` on
both the `td` and the `a` or `span` fixed the issue.

task-3326564
part of task-3326263

closes odoo/odoo#129559

X-original-commit: 8fac3dd7dd6ffc69f989c9ec5cea225f3e919535
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-07-26 09:22:01 +02:00
FrancoisGe c011eaea59 [FIX] web: create kanban column groupBy x2many
Before this commit, in a kanban view grouped on a x2m, when we created
a new column, we had a crash.

Why did this happen?
When a column is created, a resequence is triggered on the columns in
order to have the correct position. Currently, we always use the
DynamicGroupList handle field, which is not correct because if we are
grouped on an x2m we use another resModel, so we want to use the default
handle field (sequence).

closes odoo/odoo#129510

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-07-26 09:21:59 +02:00
FrancoisGe a70442ae2c [FIX] web: o2m save dialog form and discard main form
Before this commit, discard management was incorrect when you had a
non-editable x2m. This could result in changes not being completely undone.

How to reproduce:
- Go to a form view with an uneditable x2m
- Click on a record in the x2m
- Edit the record in the form view dialog
- Click on save
- Reopen the same record
- Click on discard
- Click on the discard in the main form view
- Reopen the same record

Before this commit:
    The change applied is still present

After this commit:
    The applied change is no longer there. The original state has been restored.

closes odoo/odoo#129509

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-07-26 09:21:56 +02:00
Thomas Lefebvre (thle) 24f377b0ee [FIX] hr_holidays: remove time off type if no employee_id
Steps to reproduce:
-------------------
- go to the hr leave form;
- select "By Employee" mode;
- select an employee-based leave type;
(example: Paid Time Off (20 remaining out of 20 days))
- change mode with "By Company";

Issue:
------
A specific leave to one employee can be validated
for all employees of a company.

Cause:
------
The `_compute_from_employee_id` method does not set
the `holiday_status_id` field to `False` in this case.

Solution:
---------
When we detect an `employee_id` change and it is `False`,
we must remove the current `holiday_status_id`.

opw-3386332

closes odoo/odoo#129653

X-original-commit: a7a8e78103962844d7d3752d41f9ca4b22165569
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
2023-07-26 08:08:05 +02:00
tsm-odoo 7ab24685e2 [FIX] im_livechat: reset livechat when session cannot be persisted
Before this PR, failing to persist a livechat thread would
stuck the livechat session in an incoherent state, preventing
the user to open a livechat. This PR ensures the thread service
does not write anything if there is no session.

closes odoo/odoo#129699

X-original-commit: d4e8b62fa8f008cd4ab7d69e413115cb35a6ac33
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
2023-07-26 06:56:13 +02:00
Simon Genin (ges) 20764d40f8 [FIX] web_editor: add missing Markup to notification
closes odoo/odoo#129681

X-original-commit: c72441b440061dd1ab794a77bf5b2c2623c525fe
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2023-07-25 22:36:39 +02:00
Wolfgang Taferner d93efc5b5c [FIX] hr: always retrieve valid employee
if you are a multi company user and you are employee
in another company than the current one you will
end up not be able to use your department as a filter
even if the department is defined for multiple companies

closes odoo/odoo#129665

X-original-commit: 8a30dbb4937ffad93e9d310ca4996d6ff5eac268
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Wolfgang Taferner <w.taferner@wtioit.at>
2023-07-25 22:36:36 +02:00
tsm-odoo 4e344d02b0 [FIX] im_livechat: fix emoji load on embed livechat
Since [1], the `mail.assets_emoji` bundle is located in
the web module and is named `web.assets_emoji`. This rename
was done without taking into account the `get_emoji_bundle`
route used by the livechat module.

This PR fixes this issue.

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

closes odoo/odoo#129661

X-original-commit: 75b18d35a84ad770c559ff0585cc4b9485399134
Signed-off-by: Didier Debondt (did) <did@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-07-25 22:36:34 +02:00
niyasraphy ff1b3427fb [FIX] account: remove upgrade widget from total amount in report
before this commit, upgrade widget was added to the field
display_invoice_amount_total_words in accounting settings,
which decides whether the total amount has to be shown
in words in invoice report.

all its functionality and code is available in community
edition.

after this commit, the upgrade widget which request to
upgrade enterprise edition to access the feature will
be removed from the display_invoice_amount_total_words
field.

closes odoo/odoo#129609

X-original-commit: 94256de52a44273c5ba1653770dd98aa14d9e334
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2023-07-25 21:22:53 +02:00
Matheus Leal Viana (malv) ebdb317a98 [FIX] account: Create multiple invoices with correct account
Steps to reproduce:
-------------------
* Go to Contacts and create two contacts, each with a personalized account receivable;
* Go to Sales and create a quotation for each contact;
* Confirm the quotations and deliver the products;
* From the sale.order view list, select the two SOs and click on Action to create invoices.
* Go to the new invoices -> Journal items
* One of the invoices has wrong account receivable

Issue:
-------------------
When creating two invoices for two different quotations and customers, where each customer has a personalized account receivable, only one of the new invoices assign it correctly.

Cause:
-------------------
When computing the account_id for the move lines, a SQL query selects distinct based on
property.company_id, property.name but since the property.name is the same for both customers “property_account_receivable_id” and they have the same company_id it only consider the first one and the second is discarded.

To fix the issue, we need to ensure that all users are being considered in the computations.

OPW-3376865

closes odoo/odoo#129607

X-original-commit: c66d9ee2a160c3bad745b1394308c3e48f5f2e91
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Matheus Leal Viana (malv) <malv@odoo.com>
2023-07-25 21:22:51 +02:00
Miika Nissi b6652e7d01 [CLA] Miika Nissi
closes odoo/odoo#129586

X-original-commit: 5c28c6df0390daad9a2050a1baf31dd05605747a
Signed-off-by: Tiffany Chang <tic@odoo.com>
2023-07-25 21:22:49 +02:00
Melanie Peyrat (MEPE)anddasz b3be3af61c [ADD] hr_homeworking: add homeworking
Users and employees can now define their usual worklocation
for a day of the week aswell as define unusual ones from the
calendar app. The worklocation is then displayed in the calendar
in two different ways: when only one person is selected, there
is a circle with an icon in it, and a ray that extends to the right
if the person is at the same location for multiple days. If there
are multiple persons selected there is no ray, instead the circles
are grouped by location type and colored accordingly to the filters
in the left panel.

closes odoo/odoo#129585

Task: 3060685
X-original-commit: c74ac3f698d4ea4c9b7a5e060fba4cf77cc9a6d7
Signed-off-by: Kevin Baptiste <kba@odoo.com>
Co-authored-by: dasz <dasz@odoo.com>
2023-07-25 21:22:46 +02:00
Brieuc-brd 818c0ed8df [FIX] project, sale_project: side panel layout
This commit adapts the spaces and table layouts to maintain concistency
with Milk design.

task-3382174
Part of task-3326263

closes odoo/odoo#129571

X-original-commit: 68611ce40f48c6c8a143a24ac05e9ef72a8f69e4
Related: odoo/enterprise#44558
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-07-25 21:22:40 +02:00
Sanket Brahmbhatt bdceb080a9 [FIX] account: adopt unexpected string while upload
This issue occurs while uploading a PDF file and that PDF file has an unexpected
string. So, The trackback will appear.

Step reproduce :
- install the account_accountant Module
- Open Accounting Module
- Click On Customer > Invoices
- Click On Upload Button > Upload PDF file

Error:
Unexpected escaped string: b'~'

When a user uploads a PDF file, PyPDF2 does not recognise the symbol
and character combination as a valid escape sequence, such as (\), (~).

sentry-4304111635

closes odoo/odoo#129556

X-original-commit: ea150a6f4be44ffc6f15837d5febd06fa1b695be
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2023-07-25 21:22:38 +02:00
Elias Regopoulos ddd7772abc [FIX] account: Instantiate potentially empty variable
If `journal_data` does not have a 'code' key, then the `journal`
variable never gets assigned and any references to it throw an
"UnboundLocalError: local variable 'journal' referenced before assignment"

We avoid this by assigning to journal an initial value of None.

closes odoo/odoo#129542

X-original-commit: b9cbb96c1ded18deb344cbf578083e6a0e9a353e
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2023-07-25 19:47:56 +02:00
FrankC013 b09b8a48ce [CLA] signature for nuobitsolutions
closes odoo/odoo#129489

X-original-commit: 97bc0e66810b07477be194923b759ca806378cb0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-07-25 19:47:46 +02:00
Andro Gvivradze c314d31b70 [FIX] survey: improve bar chart visuals
This commit makes sure that graph result starts at 0 in survey
results. Before the commit it would start at the lowest number of
answers, which was not the best way to visualize survey result data.

task-3389003

closes odoo/odoo#129488

X-original-commit: 8bde5f102bdbdf923c5c4d4cdd63bfdaadd7bf2b
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-07-25 19:47:43 +02:00
Alexandre Kühn 4a92dfa3ba [FIX] mail: open chat on very narrow devices
Before this commit, when opening a chat on a very narrow mobile
device (e.g. 300px width), there was the following crash:

```
TypeError: Cannot set properties of undefined (setting 'hidden')
```

This happens because the computed maximum amount of visible chat
windows was 0, which prevented the good opening of chat window.
Indeed, the code relied on at least a `CHAT_WINDOW_WIDTH`, which
is 360px.

This commit fixes the issue by guaranteeing that it is always
possible to make 1 chat window on the screen, regardless of the width
of the device.

closes odoo/odoo#129474

X-original-commit: 1c9289fffe2a8d0936a1afa99255777ff275c712
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-07-25 17:36:10 +02:00
Louis Wicket (wil) 7da30c7d14 [FIX] mail, *: fix grammar error in field help
This commit fixes a really old grammar error in the help message of the
message_needaction_counter field.

Before this commit: “Number of messages which requires an action”
After: “Number of messages requiring action”

The subject of “require” is “messages”, which is third-person plural, so
it can't take the -s suffix.

closes odoo/odoo#129468

X-original-commit: 0d10cfeaa56d5df23df05f436d353978043f4a71
Related: odoo/enterprise#44509
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-07-25 17:36:08 +02:00
unknown 09e1b76947 [CLA] Signature for jrmy17
closes odoo/odoo#129464

X-original-commit: 1148bb3e876b0d2cb81498ad163bc9d4c277e6de
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-07-25 17:36:02 +02:00
Saurabh Choraria 81fe7464f3 [FIX] auth_signup: prevent traceback when mail template is not found
When user deletes 'Settings: Unregistered User Reminder' record from
'mail.template' model and when 'Users: Notify About Unregistered Users'
scheduled action is executed at that time traceback is generated on the user
side as well as in the log.

Applying this commit will fix this issue.

sentry-4174950325

closes odoo/odoo#129461

X-original-commit: 2a77e72a27ebd2bdbf32995f34d219f51d33dacf
Signed-off-by: Achraf Ben Azzouz (abz) <abz@odoo.com>
2023-07-25 17:36:00 +02:00
Alexandre Kühn 513a95ef9f [FIX] mail: no crash on link preview deletion of unknown message
Before this commit, when receiving a link preview deletion
notification of an unknown message, there was a crash.

This happens because the handling of the link preview deletion
notification assumes that the message linked to the link preview
is known by the JS code. But this might be wrong in the case that
the message was not loaded.

closes odoo/odoo#129460

X-original-commit: 28beec42ac8b731170517a6aa5d7c99623a5a87c
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-07-25 17:35:57 +02:00
niyasraphy 775bec2a74 [FIX] account: traceback on clicking journal in account dashboard
before this commit, on clicking the bank journal in ce,
is showing traceback.

traceback:
action['domain'] = (action['domain'] or []) + [('journal_id', '=', self.id)]
TypeError: can only concatenate str (not "list") to str

after this commit, on clicking no traceback wont be shown
and corresponding action will get open

closes odoo/odoo#129439

X-original-commit: bbcb925f88cbdc34532894918e50fd11afe7a95d
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2023-07-25 17:35:55 +02:00
roen-odoo 21392ab236 [FIX] point_of_sale: Correctly update rewards after scanning a product
Current behavior:
When scanning a product that should trigger a reward, the reward was not
applied.

Steps to reproduce:
- Create a reward that applies a 10% discount on specific products
  (e.g. Whiteboard pen)
- Make sure a barcode is set on the Whiteboard pen product
- Open a PoS, and scan the Whiteboard pen product barcode
- The reward is not applied

opw-3373435

closes odoo/odoo#129406

X-original-commit: 9991d923ec0e7fc74e5d319d43a0052e6e4d7416
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: Robin Engels (roen) <roen@odoo.com>
2023-07-25 17:35:52 +02:00
Aaron Bohy bc95c6a348 [REF] web,*: remove legacy client action support
This commit removes a lot of legacy code that we kept for the few
legacy client actions that were still to be converted to owl. Now
that the last one has been converted, we can finally get rid of a
lot of legacy code (ActionAdapter, ActionMixin, ControlPanel,
ActionMenus, DropdownMenu(Item), Pager, DomainSelector...).

Part of task~3439226

closes odoo/odoo#129314

Related: odoo/enterprise#44465
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-07-25 17:35:47 +02:00
tsm-odoo f5442e970a [IMP] mail: add guest to context when available
This PR prepares the ground for the one introducing guests
for livechat visitors. Since our SameSite cookie policy
is Lax, the cookie won't be send on unsafe cross site
requests thus another mechanism will be introduced to
retrieve the guest.

This PR abstracts the way the guest is retrieved in order
to ease this transition as much as possible by overriding
the `ir_http._pre_dispatch` method in order to inject the
guest in the context if any.

part of task-3332628

closes odoo/odoo#129039

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-07-25 17:35:40 +02:00
tsm-odoo c329d9edd2 [IMP] bus: add test for samesite bus
This commit adds a test for the bus samesite configuration.

opw-3336222

closes odoo/odoo#128856

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-07-25 17:35:37 +02:00
shag-odoo ad66dd52ee [FIX] hr_skills: fix extra white space in CV printing
Before this commit if we print resume and if long description is added then by
default whole section moves to next page leaving extra white spaces behind

FIX:
After this commit if we add long description then section will not move to the
next page basically w-auto class has been added which prevent it from moving
to the next page because now div gets auto or natural width the w-auto class
ensures that the div expands horizontally to fit its content allowing
the text to wrap naturally.

task-3279176

closes odoo/odoo#128715

X-original-commit: 16e9499b3d266ea595b8dd4db6fcb566acf8f04b
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-07-25 17:35:35 +02:00
Florian Damhaut 669d7e1bcd [IMP] lunch: split total
The total should be split between already paid and to pay

closes odoo/odoo#126079

Task-id: 3349791
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-07-25 17:35:29 +02:00
mehjabinfarsana 676f723c96 [IMP] web: open my odoo.com account in new tab
before this commit, the usermenu My Odoo.com account
was opening in the same tab

after this commit My Odoo.com account usermenu is
opening in a new tab

closes odoo/odoo#123627

Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2023-07-25 17:35:27 +02:00
Valentin Chevalier cd357d4c30 [FIX] payment_stripe: allow payment by token
When migrating to Stripe's Elements API, payment by token was no longer
possible.

task-3322020

Introduced in ac90aa077d

closes odoo/odoo#129485

X-original-commit: 27389a935cac176a95d7271e12be065d1eb4ca12
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
2023-07-25 14:40:15 +02:00
Aaron Bohy f16e23c23f [IMP] web: orm service: add "webRead" function
This commit adds a shortcut in the orm service to call the new
"web_read" python method and adapts the few calls to use it.

closes odoo/odoo#129502

Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-07-25 13:26:37 +02:00