Commit Graph
158978 Commits
Author SHA1 Message Date
Martin Maes 4d52a46dfe [FIX] mrp: review and workorder wizard modification
The workorder wizard helping to track the time spend on the workorders has been automated.
The name of the employee will automatically be the name of the admin of the session.
The productivity will also be updated based on the duration
The duration, start date and end date will update based on the two other ones.
This changes will ease the addition of time trackings.

closes odoo/odoo#107473

Related: odoo/enterprise#34786
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-03-03 17:04:47 +01:00
Martin Maes 09314106e2 [IMP] mrp_workorder: employee login in workorder list view
This main feature of this commit is adding the possibility to login with multiple employees on the list view of workorders.

There is now a button in the header that will allow to log in as an employee in the list view.
The flow is the following :
- The employee logs in
- He becomes the "admin" of the session and his name appears next to the log out button.
- If another employee logs in, he will become admin and the first one will no longer be visible in the header.
- The employee will start timesheeting on the workorder if he press the start button. Notice that the employees working on the workorder will appear in the last column of every work_order record.
- If this second employee logs out, the first one will not become admin automatically. He will first need to click on his name/avatar in the popup and will be asked his pin code (if needed) to log in again.

There is also a way to assign employees to a workorder.
A filter will help retreive the workorder on wich the admin of the session has been assigned.
In addition, a new button in the header allows to mark as done multiple workorders at once.

The timer component has been updated to avoid wrong values if the computer goes to sleep mode.

The wizard of the workorders allowing to see the time traking has also be modified (switching tabs).

From a more technical point of vue, the employees and admin will be saved in the session.
The employees working on a workorder will be saved on the record.

related : https://github.com/odoo/enterprise/pull/34786

Part-of: odoo/odoo#107473
2023-03-03 17:04:47 +01:00
Mylyna Hy 4e9e96db9e [FIX] res_partner_bank: set error flag for qr
Problem: With Switzerland accounting localization installed,
the user is unable to create vendor payments for non-Swiss contacts or contacts with non-IBAN accounts
because a qr code will try to generate due to compute_qr_code.
Eventually, an error will be thrown since
the raises_error param for _eligible_for_qr_code is True by default.
When _build_qr_code_vals calls _eligible_for_qr_code, it did not explicitly pass the raises_error arg.
Thus, instead of returning None, an error is thrown instead, blocking futher operations.

Proposed Solution: Method _build_qr_code_vals should pass raises_error = not silent_error to _eligible_for_qr_code.
There is an inverse relation between silent_error and raises_error.
By default, silent_error is True so it's safe to assume that raises_error = False
because the compute for the qr code on payments should not raise any error.
This fix will resolve the issue when computing the qr code for payments while being fluid with other method calls.

closes odoo/odoo#114256

X-original-commit: 45d34a8630918abe2f988f7ed0e0df153a3edd51
Signed-off-by: William André (wan) <wan@odoo.com>
2023-03-03 15:56:52 +01:00
Guillaume (gdi) 2aaca97c75 [FIX] website_profile: prevent losing search params
Before this commit, the "rank by" parameter was deleted when a visitor
added a search criteria. This commit solves this problem.

Steps to reproduce the issue:
- Go to "/profile/users"
- Click on "Rank by" and select "This week"
- Search for a user (e.g. "admin")

=> The "rank by" parameter is lost and if you click on "This week"
again, the search (admin) will be lost.

task-3058239

closes odoo/odoo#114253

X-original-commit: eed9e3d8c1366f457d2f3170741c09ab2143d912
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2023-03-03 15:56:49 +01:00
Guillaume (gdi) a67528b743 [FIX] website_blog: prevent losing search params
Before this commit, search criteria could be lost when a visitor added a
new search criteria on blogs. This commit solves this problem.

Steps to reproduce the issues (with activate the sidebar):
- Go to the /blog
- Click on the adventure tag
- Select a month in the date filter

=> The adventure tag is lost.

- Go to the /blog
- Select a month in the date filter
- Click on the adventure tag
- Remove the date filter

=> The adventure tag is lost.

- Go to the /blog
- Select a month in the date filter
- Search for the blogs containing the word "heli"

=> The date filter is lost.

task-3058239

X-original-commit: 53ac1736b323257b2545946a8f96d06294c7b8c8
Part-of: odoo/odoo#114253
2023-03-03 15:56:49 +01:00
Guillaume (gdi) 00189db5ec [FIX] website_event_track_quiz: keep search filter on page change
Before this commit, following these steps:
- Have more than 30 attendees for an event
- Go to the event page
- Click on community
- Search for a letter that is in the +30 attendees names
- Go to the second page of search results

=> We lose the filtering of the attendees by the letter. This commit
allows to keep the filters when the user is on a result page and
changes page.

task-3058239

X-original-commit: 2c7d923b11f2c31c3ae2137a7ff9baf0b58c0be6
Part-of: odoo/odoo#114253
2023-03-03 15:56:48 +01:00
Guillaume (gdi) 0314ce8b21 [FIX] website_profile: make the pager work when searching
Before this commit, following these steps:
- Have more than 30 users
- Go to /profile/users/
- Search for a letter that is in the +30 users names
- Go to the second page of search results

=> We lose the filtering of the users by the letter. This commit allows
to keep the filters when the user is on a result page and changes page.

task-3058239

X-original-commit: dbd52ed56bff2889b0d64b04314e61ff25a6e9c8
Part-of: odoo/odoo#114253
2023-03-03 15:56:48 +01:00
Guillaume (gdi) a48346d30a [FIX] website_blog: fix the blogs search
Before this commit, following these steps:
- Go to /blog
- Enable the customize option 'Top banner - Name / Latest Post'
- Disable the customize option 'Full-Width Cover'
- Search for the word 'helicopter' in the blog post search bar

Two problems are then visible:
1) The top banner is always visible with a blog post that does not match
the search. This top banner should not be visible (like for tag and date
searches).
2) There is an alert message 'No results for "helicopter".' while the
blog post 'Maui helicopter tours' matches the search.

This commit corrects both errors.

task-3058239

X-original-commit: c28cf4b44c4fd9a1800d5fb1ad6e8c734feb9057
Part-of: odoo/odoo#114253
2023-03-03 15:56:48 +01:00
Audric Onockx (auon) 65f170947a [FIX] web: handle the cases were save actually deletes
Very niche usecase, but still:
\- Create a planning shift, set a recurrence for ever.
\- Go few occurences later (form via kanban) and set...
...recurrence type to "Number of Occurences",
...recurrence nmber to 1.
\- Save.

The write method will update the recurrence
so that it only contains only one occurrence.
Consequently, the record you just updated is deleted.
Then we try to fetch the record to display its form again.
Because de read returns [], _fetchRecord rejects the promise,
and we're stuck.

So, in this commit, we make `FormController.saveButtonClicked` call
`Record.save` with its params, so itself can be called with throwOnError,
and the potential error catched.
We all so cover the case where `BasicModel._fetchRecord`
returns `Promise.reject()`, in `BasicModel.save`.

Also, `Record.save` has an object as a default value for params.
When we call it from `FormController.saveButtonClicked` with params,
say params is an empty dict, the default value will be lost.

Istead of overriding this object, this commit only overrides/adds
the key of the object we give `Record.save` if any.

Also, when investigating on that, we jsut noticed that,
when you click save on a form dialog,
it reloads the record before closing it, which is useless.

closes odoo/odoo#112335

Related: odoo/enterprise#37752
Signed-off-by: Audric Onockx (auon) <auon@odoo.com>
2023-03-03 13:10:48 +01:00
FrancoisGeandmcm-odoo 70619d0e6a [IMP] *: display properties in list view
This commit adds the possibility to display a properties field in a list
view.

How it works:
When a properties field is present in the arch of a list view, it will
not be displayed directly. It will display its properties as an optional
column. Now, we will find at the end of the dropdown of the optional
columns a section by record parent of the properties field. The proposed
sections will be the properties linked to the parent record of which at
least one record referring to it has been encountered during the
navigation in this list view.
(A parent record is the record storing the properties definition).

Limitation:
Multi-editing is not applicable on properties fields as you cannot edit
one property without modifying all the others.

closes odoo/odoo#112005

Taskid: 3105039
Related: odoo/enterprise#37004
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: mcm-odoo <mcm@odoo.com>
Co-authored-by: FrancoisGe <fge@odoo.com>
2023-03-03 13:10:42 +01:00
hupo-odoo 776d28b539 [IMP] account: show company name when accounting firm
Accounting firms are often connected to customer's company, so often single company database. To know easily in which company they work we think that it should be better to show the name of the company on the top for them. A systray item is therefore generated at the location of the company selector. It is visible only when there is a single company (so no company selector) and only when accounting firms mode is on, i.e. the setting field is set to either one of these values ('customer Invoices', 'Vendor Bills', 'Customer Invoices and Vendor Bills')

closes odoo/odoo#108928

Task: 3110453
Pr: 108928
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-03-03 13:10:39 +01:00
Mathieu Walravens b4a318eba1 [FIX] stock: duplicate foreach keys in replenishment history
Before this commit:
The key used in the foreach, `line`, is an object, which is converted
into the following string `[object Object]`, resulting in duplicate keys
and display a traceback when changing the supplier on an orderpoint.

After this commit:
The key used is `line.name`, which is a unique date across the dataset,
preventing any duplicate keys.

opw-3168077

closes odoo/odoo#114254

X-original-commit: 364ba497fc86928bf4a7be5b6777f8e2fffdf127
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Walravens Mathieu (wama) <wama@odoo.com>
2023-03-03 11:23:31 +01:00
Louis (loco) 5ab4197e78 [FIX] web: prevent multiple clicks on the log in button
Before this commit, the user had the possibility to spam the "Log in"
button when trying to connect. This could lead to a change of the CSFR
token and an errror of type "werkzeug.exceptions.BadRequest: 400 Bad
Request: Session expired (invalid CSRF token)" could then happen.
This commit makes the “Log in” button un-clickable once it has been
clicked and adds a loading effect to it.

task-2996329

closes odoo/odoo#114226

X-original-commit: e6273856b2f5ef13c5cf965ae79b830498beaa5a
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2023-03-03 11:23:28 +01:00
Nicolas Bayet f93e294fff [FIX] web_editor: prevent corruption from stale document
When a peer "A" connect to the peer to peer network, if he receive a
stale document from a peer "B", peer "A" will never be able to save.
This situation can make impossible for any new peer to receive a
converging document and block the ability to save until every peer
disconnect from the network.

task-3196778

closes odoo/odoo#114268

X-original-commit: 537f34f764fae3967496d466c420d72d172b241d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-03-03 10:15:51 +01:00
niyasraphy cf93d39822 [FIX] sale: account.analytic.plan access right traceback
before this commit, on confirming a sale order with a product having Re-Invoice Expenses is set to at cost or sale price and if analytic accounting or full accounting feature is not enabled for user, on confirming sale order access error is shown.

1. create a product with Re-Invoice Expenses as at cost or sale price

2. remove user from analytic accounting group and full accounting feature group (in my case new db with sales and inventory installed only)

3. create a sale order with this product and try confirming it

4. access right error is shown

after this commit, on confirming sale order, access error is not raised.

closes odoo/odoo#114255

X-original-commit: 42206bbd0cc5a86047f3a1b941896c0ceb463efb
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-03-03 10:15:48 +01:00
Camille Spiritus 01cd352a9a [FIX] account: Fix payment terms computation + usability
- Compute the fixed amounts first before managing the percentage.

Suppose a fixed line of 100 plus a percentage line of 100%.
For 1000, the previous behavior was 100 + 1000 = 1100 != 1000

- Manage fixed amounts in multi-currency.

With multi-currency, apply the rate to compute the company amount.

- Ensure the full amount is dispatched exactly with percentages.

Suppose 2 percent lines of 50%. To dispatch 0.03, the previous behavior was computing 0.02 + 0.02 = 0.04 != 0.03 leading to a not balanced journal entry.

- Don't discard the last new line when clicking outside the sheet.

Click on "add new line", then click on the empty space near the form view.
=> The last added line is removed.

closes odoo/odoo#114025

Signed-off-by: Laurent Smet <las@odoo.com>
2023-03-03 10:15:46 +01:00
Jordan D. (Joda) 27fb535d9b [FIX] gamification: fix wrong condition in template
How to reproduce
=================

Give a badge to an employee, when checking the sent mail, The image and
description of the badge is nowhere to be seens.

Those fields don't display because the description contains P html tags.
The presence of the removed `t-if` is the main cause of the issue.
Adding a `not` to the condition solves the issue. This not was lost
during the Jinja -> Qweb translation (commit 68182ba)

opw-3099419

closes odoo/odoo#114259

X-original-commit: c90add64f91667d5c9f2294029aa674b19981278
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-03-02 22:57:47 +01:00
Katherine Zaoral 57b7802bf7 [FIX] l10n_latam_account_sequence: name uniqueness
account_sequence module is adding an extra value to the move name in
order to make it unique. For example if we have more than one vendor
bills with name FA-A 0001-00000088 the result will be:

  * record 1:  FA-A 0001-00000088
  * record 2:  FA-A 0001-00000088 (1)
  * record 3:  FA-A 0001-00000088 (2)

When using document type the vendor bill name should not need to be
unique and it can be repeated, because it depends completely in the
partner, in that case we should not add the "(N)" and leave the name as
it is, because changing the name will result in problems like reporting
VAT BOOK.

latam task 976 / OPW 3204261

closes odoo/odoo#114270

X-original-commit: 6b8f69a8ee51275957346ecf8b72068022096448
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-03-02 21:56:53 +01:00
Abdelouahab (abla) d295cdaf56 [FIX] account_edi: continue uploading pdf if decrypting failed
To reproduce
============
- on accounting -> Vendor -> Bills
- upload the PDF attached on the ticket
an exception is raised

Problem
=======
PyPDF2 finds that this pdf is encrypted,so we try to decrypt it with empty password,
but the decryption fails which rise an error.

Solution
========
according to this [commit](https://github.com/odoo/odoo/commit/851fe64f7789bb398383c22e3ebbaebb051791f6), when the decryption fails
we skip reading the attachments and carry on to allow the user to upload the document.

opw-3196780

closes odoo/odoo#114269

X-original-commit: 124250d123666ea818d2c8004cadae2ccc43aa0e
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: abla001 <abla@odoo.com>
2023-03-02 21:56:51 +01:00
Arthur Detroux (ard) ce3f689b2f [FIX] web_editor: improve perfs of background animations on Chrome
Prior to this commit, animations on SVG shapes could use a lot of CPU
and make the page stutter on some website + machine combo.

This does not seem to be an "Odoo Only" issue as browsers seem to
struggle to optimise SVG movements and end up consuming a decent amount
of CPU depending on the machine, the size of the SVG and its position
(behind or on top of other elements).

This commit applies a new class which will warn the browser that the
element is animated. Depending on the browser, some optimisations are
done.
On Chrome and Safari, a new layer is created which simplifies the
rendering of the page and sometimes takes advantage of hardware
acceleration.
On Firefox, no optimisation is done yet. This might change in an update
which would take advantage of the CSS Property.

The documentation says to only use `will-change` when an element is
about to change. This is the case however, as most of the shape's
animations are looping. Which is why it's applied to every shape that is
animated.

This optimisation only applies to background shapes with this commit.

Performance improvements observed by (at)rdeodoo on his machine:
- SVG: 200% CPU
- SVG + fix (will-change): 55% CPU
(additional infos available in the PR)

To note: one way to easily see the improvement is on the "Layers" tab of
the Chrome devtools. Before this commit, the entire #wrapwrap is
repainted every time the shape changes (so 60 times per second since
that is the framerate the browser aims for). With this commit, the
#wrapwrap and the shape are contained in their own layers so the
#wrapwrap is only painted once.

Other solutions were considered but not used at this time:
- Reducing the frame rate of the animations. This is not currently
possible because browsers do not offer any way of doing that.
- Removing bits of the shape can reduce its CPU consumption, but
whenever a transform animation is present, the CPU usage remains high.

task-3142001

closes odoo/odoo#114252

X-original-commit: 03418be1c67e71a22f6d2ce79675280f889b663c
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2023-03-02 21:56:48 +01:00
FrancoisGe 225d9925dc [IMP] web: commands to navigate between views
This commit adds the possibility to navigate between the different views
of the view switcher from the palette command.

closes odoo/odoo#113658

Taskid: 3205658
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-02 19:25:19 +01:00
Géry Debongnie abaf9d0e70 [IMP] web: update owl from v2.0.6 to v2.0.7
This update contains the following commit:

- [FIX] compiler: t-key and t-ref together

More details at: https://github.com/odoo/owl/releases/tag/v2.0.7

closes odoo/odoo#113385

X-original-commit: 1624282af36cd4b8ce228a3c47ed1de92cefa9c5
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Géry Debongnie <ged@odoo.com>
2023-03-02 19:25:16 +01:00
maximilien(malb) ee2c82700e [IMP] account,sale,repair,website,purchase: remove setting and display correction
Before this commit, the accounting module had a setting on the selection of taxes used by the sales, purchase, website_sale, ... modules. In addition, the website_sale module had the same setting related to the accounting one.
This PR isolates the tax selection parameter in the website_sale module, and instead of using the tax selection, the accounting module will use rounding method (round per line, round globally).
Selecting one of the two will change the display of all account_move or other view using the tax selection setting.

Display changes:
In round per line, a column tax excluded will always be displayed while a column tax included will be in optional hide.
On the other hand, in the round globally, only the tax excluded columns will be available.

closes odoo/odoo#99209

Task-id: 2954332
Related: odoo/upgrade#3826
Related: odoo/enterprise#30853
Signed-off-by: William André (wan) <wan@odoo.com>
2023-03-02 19:24:45 +01:00
Jurgen (jugj) 3e175f4519 [FIX] hr_holidays : Fix accrual tooltip
task - 3203843

closes odoo/odoo#114211

X-original-commit: 75519cde15149b865f9ba5a44f2e599bfe72d775
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-03-02 18:18:59 +01:00
Kevin Baptiste 8c1ab1f47c [IMP] data_recycle,hr_*: JS improvements
*: hr_attendance, hr_org_chart

Apply recommendations from odoo/odoo#104975 to HR apps.

task-3069138

closes odoo/odoo#114208

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-03-02 18:18:56 +01:00
Antoine (ande) 961faf9d31 [FIX] base: wrong CH state name
To reproduce the issue:
1. Go to 'res.country.state.csv' in base
2. state_ch_sh is "Shaffhausen"

Error: should be "Schaffhausen"

State code is still SH because
ISO 3166 code for this state is CH-SH

OPW-3199628

closes odoo/odoo#114202

X-original-commit: 245804aabb5cd8b3a84b2a4836b188ec9fb144e1
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2023-03-02 18:18:50 +01:00
Benjamin Vray 987fb711bb [FIX] website: fix wrapwrap overflow and animations
Before this commit, on iPhone 8 (and lower) it was possible to scroll
the page to the right when there were animated elements in the page.

A "transform: none" property was applied to non-visible animated
elements to prevent the page from expanding to the right. However, this
property wasn't properly overriding keyframe transforms on iPhone 8 and
lower. This has been resolved by adding "overflow-x: hidden" on the
wrapwrap in case "transform: none" is not applied correctly.

Steps to reproduce the issue:

- On iPhone 8 (Safari).
- Drop a few snippets into a page.
- Add a "Fade In-Right" animation to a column of a snippet.
- Scrolls the page so that the animated element is invisible.
- Bug => a horizontal scrollbar appears and it is possible to scroll the
page to the right.

opw-3165651

closes odoo/odoo#114207

X-original-commit: 1354d337eba26f48699d9eb9bc02287383fc10e5
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-03-02 17:13:51 +01:00
Julien Van Roy e3704ecefb [FIX] account_accountant: fix multiple liquidity lines
When multiple liquidity lines exist on an account.move (occuring before
14.0), the bank reconciliation widget crashes. Taking the sum of the
`amount` and `amount_currency` solves it.

opw-3202392

closes odoo/odoo#114204

X-original-commit: 564f91be019a1f5fe737a01218972dfd9d74d7c8
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
2023-03-02 17:13:48 +01:00
Hiral Bhavsar a45c2b5d41 [FIX] web_editor: cursor position wrong after link in safari
Before this commit:

For the safari browser, when typing any URL and pressing space, and
continuing typing, the cursor jumps before the URL.

After this commit:

Inserting an element into a range clears the selection in Safari.
Hence, use the cloned range to reselect it and now the cursor position remains
at the end of the URL.

Task-3089091

closes odoo/odoo#114192

X-original-commit: fa532d1391aed313a9ea13ac8a4ab9df31c313e3
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-03-02 17:13:45 +01:00
Thanh Dodeur b63f407c42 [FIX] mail: log peerConnection stats during recovery attempts
closes odoo/odoo#114185

X-original-commit: 7293541edf370e26786603e0c74b10343bb8f764
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-03-02 17:13:42 +01:00
dasz 8cc1662a63 [FIX] hr: fix top part of public employee view
closes odoo/odoo#114184

X-original-commit: 3bfc5269dbbc491a9924164e68b31a85649345f9
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-03-02 17:13:39 +01:00
Mathieu Duckerts-Antoine 1549a966cc [REF] web: graph: simplify code
We remove a useless import of GroupByMenu and refactor the processing
of data points in the model.

closes odoo/odoo#114172

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-02 17:13:36 +01:00
Thomas Lefebvre (thle) 78b4414f90 [FIX] sale_timesheet: link timesheets that have a reversed invoice
Steps to reproduce:
- create a sale order;
- add products which are based on timesheets for invoicing policy;
- create an invoice an confirm it;
- make a full refund for this invoice with "ADD CREDIT NOTE" button;
- create an new invoice for the sale order.

Issue:
There is no longer a statistics button
that displays the hours worked on the invoice view.

Cause:
To reassign an account move to an account analytic line,
it is necessary either that there is no invoice
or that the invoice is in the cancel state.
The case where the invoice has been refunded is not taken into account.

Solution:
Correct the domain that determines the timesheets (account analytic line)
to be linked with the invoice being created.

opw-3187219

closes odoo/odoo#114167

X-original-commit: 5fa8b13b9c67ba54e5702a13638d047f50a4d797
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
2023-03-02 17:13:34 +01:00
Horacio Tellez af4bf7cdb4 [FW][FIX] sale: translation issue for cancelled message on logs
When cancelling a confirmed order the message displayed on the chatter was en English, regardless of the language set for the customer or the user.
After this commit the correct language will be used.

opw-3175301

closes odoo/odoo#114162

Forward-port-of: odoo/odoo#113977
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-03-02 17:13:15 +01:00
Dhaval Baraiya 6f83fcb971 [FIX] web_editor: allow to reset background color
Before this commit:

When copy-pasting from Discord into Notes, get a text with color and background
color. But when clicking on the trash icon inside the toolbar to remove the
background color, it doesn't remove the background color.

After this commit:

Allowed to remove background color from text using trash icon.

Task-2889682

closes odoo/odoo#114146

X-original-commit: 711ddaf97a5f16b3fe0d5d30dba52e4c9eab8d21
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-03-02 17:13:06 +01:00
Kevin Baptiste c801e8181b [FIX] hr_work_entry_contract: fix work entry regeneration wizard
The button to regenerate work entries was no longer disabled, thus it
lead to a traceback when clicking on it.

The warning message was confusing and misleading.

task-3203225

closes odoo/odoo#114145

X-original-commit: 5325ffd8663f14532b0f43aee25cebdb9a14aec6
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-03-02 17:13:03 +01:00
Kevin Baptiste 17ec1676f3 [FIX] hr_skills: add proper padding
A double line would appear if the resume / skills were empty.

task-3196398

closes odoo/odoo#114144

X-original-commit: 35ffc195e807db3fd5ea1576816c631d219863c0
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-03-02 17:12:59 +01:00
Pablo Montenegro 7d4e464aad [FIX] l10n_ar: Invoice document type letter
OPW 3117373
Task: 57576
The printed invoice hides part of the document type letter in the header.
This commit solves that problem and also this issue: https://github.com/odoo/odoo/issues/108994

closes odoo/odoo#113603

X-original-commit: 91581e9090d2382ff584c199efcf3b7206ddac66
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-03-02 17:12:57 +01:00
luvi 4f2a962db6 [FIX] note: fix activities menu in dark mode
This commit fixes the style of the "Add a note" element in the
activities menu list. Before this commit, the background was white
because the color was hardcoded in a scss file. This is not longer
the case with this fix.

Also, the input has a transparent background to match with the
background color.

task-3208042

closes odoo/odoo#114143

X-original-commit: 5829183b57478b3316cacda931c2245b17896a63
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-02 16:01:28 +01:00
Samuel Degueldre b795fe45f6 [FIX] point_of_sale: fix crash when closing session with draft orders
In odoo/odoo#112219 we removed the usage of useListener for
cross-component communication, one such use was to close the pos from
the closing popup. The closeSession method was moved from the closing
popup to the store but the corresponding error handling method wasnt. It
appears that the closeSession method doesn't need to be on the store at
all, only the closePos method. This commit moves the closeSession method
back to the closing popup, so that it has access to the
handleClosingError method again.

closes odoo/odoo#114127

Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2023-03-02 16:01:22 +01:00
Jorge Pinna Puissant 91303252f4 [REF] web, *: simplify concrete fields API - remove value setDirty
This commit, is part of a series of commits that aim to simplifie the
concrete fields API.

In this commit we will remove setDirty prop from concrete fields. Now if
needed the fields can declare itself dirty using triggering
"FIELD_IS_DIRTY" on the model's bus.

Note that this PR partially revert [1] and completely revert [2]

task-id 3179751

[1] : 89c2a3978e
[2]: c79bb3c9c6

closes odoo/odoo#114124

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-02 16:01:19 +01:00
Romain Derie e7b0ee3012 [FIX] website_blog: prevent params to be lost when only one blog
With DB having only one blog (most common case, but we are used to test
it with demo data where we have two), the query params are lost when
accessing the blog controller without passing a blog.

Eg, `/blog?search=hubble` will redirect to `/blog/travel-1`

This is because the business code is doing an early redirect if we
access the `/blog` URL without a blog post passed to it to redirect to
that blog post URL directly (since there is only one), but that redirect
is not passing the query parameters.

The main impacted params are `state`, `order` and `search` but it's the
same for all others.

Step to reproduce (in later version):
- Be sure to only have one blog
- Drag & drop the search snippet in the homepage or anywhere
- Make it search on blog only (through the snippet option)

Type anything, it will not work and won't do the search. It will just
redirect to the blog page.

closes odoo/odoo#114107

X-original-commit: 41c27fd4912fb9f50ce5f31fff7c17c77b8530f7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-03-02 16:01:17 +01:00
Alexandre Kühn 76d339a266 [FIX] mail: upload file on draft record
When uploading a file on a draft record, it crashed.
This happens because the file upload was applied on record
while still in "draft".
This fixes the issue by awaiting chatter is saved, to proceed
with the file uploading.

opw-3204555

closes odoo/odoo#114106

X-original-commit: 45bcd91026b93997e7ba2509c5c4176db269c3c6
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-03-02 16:01:14 +01:00
Ivan Yelizariev a1187c5140 [FIX] base: update currency symbol for EGP
LE is most commonly used today.

opw-3188129

closes odoo/odoo#114094

X-original-commit: e901ee541407b70fee8bad0d6adc80e0726079d2
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ivan Elizaryev (iel) <iel@odoo.com>
2023-03-02 16:01:11 +01:00
niyasraphy 0a6a901208 [IMP] website_profile: remove italic style from email
before this commit, when a verification email is
send to the user when validating the website user
profile, there is no spacing/overlapping between
the email(in italic) and !

after this commit as the italic is removed from
the email, there will be proper
spacing(no overlapping)

closes odoo/odoo#114073

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-03-02 16:01:08 +01:00
jash 2162dd4225 [FIX] spreadsheet_dashboard: decoding the dashboard data
Earlier, receiving data was size of the file which is not what we
want. And we are trying to decode that as they are in binary form. Which
can not working properly.

So refactor code accordingly.

Task - 3162824

closes odoo/odoo#113953

Related: odoo/enterprise#37650
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2023-03-02 16:01:02 +01:00
FrancoisGe f9edb9f2f4 [REF] spreadsheet: remove duplicate orderByToString
The orderByToString function has been duplicated in spreadsheet. We will
replace it with the one defined in web.

closes odoo/odoo#113873

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-02 16:00:56 +01:00
Jordan D. (Joda) 410709c114 [FIX] l10n_din5008: fix duplicate title on purchase order
How to reproduce
=================

1. Install `l10n_din5008` and `purchase`
2. Create a RFQ and print a Purchase Order. 2 Titles are displayed

opw-3162177

closes odoo/odoo#113508

X-original-commit: 42e6420e7259f3fe10937c58a73b7c88ead672f6
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Dalcq Jordan (joda) <joda@odoo.com>
2023-03-02 16:00:53 +01:00
Adesh Jolhe 0de9824edf [FIX] website: prevent user to unlink default_website
Previously when we tried to delete default_website it was deleted.

In this commit we have fixed this issue by preventing user to unlink
default_website.Also we remvoe _unlink_except_last_remaining_website
method.

sentry-3874625419

closes odoo/odoo#113405

X-original-commit: 637af9f747bda0d6b4607d02a0e51d44cf889a89
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-03-02 16:00:50 +01:00
Adrien Guilliams (adgu) 6422b3781d [IMP] point_of_sale: fields added to X and Z reports
The module pos_daily_sales_reports has been added in 16.0 and forward-ported
in master. In master we merge this module with the module point_of_sale.

Forward-port PR: odoo/odoo#113228

closes odoo/odoo#113380

Related: odoo/upgrade#4366
Related: odoo/enterprise#37410
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
2023-03-02 16:00:44 +01:00