Commit Graph
167060 Commits
Author SHA1 Message Date
Gauthier Wala (gawa) ffc001b4c3 [FIX] l10n_pl: name_get deprecated
Since https://github.com/odoo/odoo/commit/3c62ca1eb96d571b2b686b5caee370324c589ab4, name_get is deprecated.
We should replace it with a _compute_display_name.

Linked to runbot error 25698

closes odoo/odoo#139082

Signed-off-by: Laurent Smet (las) <las@odoo.com>
2023-10-30 16:41:37 +00:00
rhe-odoo 384c4e2f21 [FIX] point_of_sale: Flush order not null date order
The field date_order cas removed in a previous commit.
Thus, this line needs to be removed as well.

closes odoo/odoo#133654

Related: odoo/enterprise#46580
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-10-30 16:41:34 +00:00
rhe-odoo a1a77d4ffa [FIX] point_of_sale: vat letter missing
When the pr of the skip receipt was merged, the vat letter feature was missing.

This commit put it back to the point of sale module so we can inherit it again in other modules.

Signed-off-by: rhe-odoo <rhe@odoo.com>

m

Part-of: odoo/odoo#133654
2023-10-30 16:41:34 +00:00
rhe-odoo 97f1f80da0 [IMP] point_of_sale: error handling blackbox
This commit remove the logic of error handling of the black boxes.
It'll be done in the specific module.

Part-of: odoo/odoo#133654
2023-10-30 16:41:34 +00:00
Arnold Moyaux bd5601cf59 [FIX] stock: error message for put in pack
closes odoo/odoo#140307

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-10-30 15:18:04 +00:00
Arnold Moyaux 8327a83f38 [FIX] stock: avoid warning for location_dest
It's not needed anymore since the location dest on stock.move.line
are updated accordingly.

Part-of: odoo/odoo#140307
2023-10-30 15:18:04 +00:00
Arnold Moyaux caa33c4f14 [FIX] mrp_subcontracting: rename record component button
There is a button in the header to register subcontracting process
(when needed). And there is an additional button in the view with
the purpose to correct data later after the encoding. However we
can't set button with optional="hide". We rename it with an edit
icon

Part-of: odoo/odoo#140307
2023-10-30 15:18:04 +00:00
FrancoisGe 92daf621b5 [REF] stock: don't use "extension" mode for custom component
It's bad practice to use the "extension" inheritance mode for a custom
component. In this case, inheritance is only necessary for the
"StockMoveX2ManyField" custom field.
In this commit, we will therefore use primary mode to generate a custom
template used only by "StockMoveX2ManyField".

closes odoo/odoo#140301

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-10-30 15:18:03 +00:00
FrancoisGe f534d1cccf [FIX] web: x2m editable in line and dialog
Purpose:
-------
The "StockMoveX2ManyField" custom field has given rise to a new need,
that of being able to edit a record in an x2many directly or from a dialog.
This is the first use case to require the ability to do both at the same time.

This particular use case highlighted a bug preventing a change from being saved.

How to reproduce:
- Go to a form view with an x2m using a custom widget
- Open an x2m record in dialog mode
- Close the dialog
- No changes have been made to the record, so the save button is not displayed
- Edit a field in the same record

Before this commit:
    The save button is not visible

After this commit:
    The save button is visible.

closes odoo/odoo#140298

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2023-10-30 15:18:02 +00:00
Michael (mcm) 89bf62b0c1 [IMP] web,*: remove legacy/utils.js from backend
This commit removes useless function from legacy/utils.js and removes it
from several backend bundles. The file is moved in wysiwyg and frontend
bundles as it is still used in these bundles.

task id: 3439226

closes odoo/odoo#140260

Related: odoo/enterprise#49812
Signed-off-by: Francois Georis (fge) <fge@odoo.com>
2023-10-30 15:18:00 +00:00
Michael (mcm) d8c0373f33 [IMP] web: link popover together
Before this commit, cliking on a popover that was open inside another
popover closed both of them.
After this commit, the popovers are not closed. them will close only if
we click out of them and the popovers they opened.

closes odoo/odoo#140258

Signed-off-by: Francois Georis (fge) <fge@odoo.com>
2023-10-30 15:17:59 +00:00
FrancoisGe 64037d03d0 [FIX] web: FormStatusIndicator flickering
Purpose:
--------
Before this commit, if you edit a char field with an onchange in
an x2many, the FormStatusIndicator buttons will flicker.

How to reproduce:
-----------------
- Go to a form view with an x2many field in list mode
- Type a char in the char field of a record
- The FormStatusIndicator buttons are visible
- Click outside the char field
- An onchange is triggered

Before this commit:
    The FormStatusIndicator buttons will disappear until the onchange returns.

After this commit:
    The FormStatusIndicator buttons remain visible.

closes odoo/odoo#140179

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2023-10-30 13:56:01 +00:00
Theo VINCENT (thvi) c9ebb4de41 [FIX] pos_self_order: receipt payment lines
Fixes the receipt payment lines name (replacing "Bank" by the payment method name).

closes odoo/odoo#140098

Task-id: 3572422
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-10-30 13:55:59 +00:00
Theo VINCENT (thvi) 1627d929f5 [FIX] pos_self_order: categories display
Fixes the display of categories in the self-order UI.

closes odoo/odoo#140095

Task-id: 3572141
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-10-30 13:55:58 +00:00
Adrien Guilliams (adgu) a97cb5ae11 [IMP] pos_self_order, point_of_sale: service type on ticket
In this commit, we add the mention of the service type on the ticket and
when the service is "table", we add the table stand number.

We also fix a problem with stripe and adyen where the ticket does not
print the order but an empty order with the kiosk.

closes odoo/odoo#140047

Signed-off-by: David Monnom (moda) <moda@odoo.com>
2023-10-30 13:55:57 +00:00
Adrien Minne (adrm) eba33ff004 [IMP] spreadsheet: change global filter icon
Change the global filter icon from the `fa-search` to something more
filter-like.

Also use the same icon in shared dashboard.

closes odoo/odoo#139164

Task: 3560817
Related: odoo/enterprise#49166
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2023-10-30 13:55:56 +00:00
FrancoisGe 6b045f540a [REM] web, *, remove few dom.js functions
In this commit, we will remove "closestScrollable", "compensateScrollbar"
and the last usage of "scrollFixedOffset" outside of dom.js.

closes odoo/odoo#140181

Part-of-task: 3439226
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-10-30 12:05:31 +00:00
Jorge Pinna Puissant 77c89b3316 [IMP] web: remove hasScrollableContent function from dom.js
Part-of-task: 3439226
Part-of: odoo/odoo#140181
2023-10-30 12:05:31 +00:00
Jorge Pinna Puissant 95fa59533d [IMP] web: remove areColliding function from dom.js
Part-of-task: 3439226
Part-of: odoo/odoo#140181
2023-10-30 12:05:31 +00:00
Jorge Pinna Puissant e2b0d3efe4 [IMP] web: remove non used dom.js functions
Part-of-task: 3439226
Part-of: odoo/odoo#140181
2023-10-30 12:05:31 +00:00
Jorge Pinna Puissant 3de178ed42 [IMP] web: remove non used safeConfirm from legacy Dialog
Part-of-task: 3439226
Part-of: odoo/odoo#140181
2023-10-30 12:05:31 +00:00
Rob Coekaerts 80c5e8986e [FIX] hr_holidays: fix employee_id(s) domain
Before this commit, the domain on ``employee_id`` and ``employee_ids``
would be computed in a computed method ``_compute_allowed_employee_ids``.
However, due this compute method not triggering for new records, the
domain was not correctly set.

Additionally, this way of computing the domain was not very efficient.
With this change, the domain is computed correctly and efficiently.

closes odoo/odoo#140146

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-10-30 12:05:28 +00:00
William Henrotin 27c95fa2c0 [FIX] stock: remove 'set' and 'clear' quantities buttons
Thanks to ref https://github.com/odoo/odoo/pull/137864, the quantity on
stock move can be emptied or fill with the unreserve/reserve mechanism.
Those two buttons becomes useless

closes odoo/odoo#140116

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2023-10-30 12:05:28 +00:00
Hamza (hisl) c3289f0734 [FIX] web: set pointer events none for ribbon
The forms where we have ribbons do not provide a great user experience when the internal links are right below the ribbon. Because of the shape and size of the ribbon, the internal link button on the topmost fields gets behind the ribbon. Because the rectangular part of the ribbon is transparent, we can see the button, but cannot click or hover over it, because the ribbon element takes over. To resolve this, I set the pointer-events of ribbon to none. The ribbons already do not have any click events so this solution seems okay.

Steps to Reproduce:
1. Move a helpdesk ticket to the archive.
2. Try to move to the customer page using the internal link.

Current Behavior:
The link button cannot be hovered over and clicked.

Expected Behavior:
The link button should be above other elements and clickable.

OPW-3468153

closes odoo/odoo#140099

X-original-commit: c9aa5fb7645470c5a63784e58fdb4ee9acf7d5e8
Signed-off-by: Bastien Fafchamps (bafa) <bafa@odoo.com>
Signed-off-by: Simon Goffin (sig) <sig@odoo.com>
2023-10-30 12:05:26 +00:00
Florian Damhaut 9f70f90df7 [FIX] sale_management: use _can_be_edited_on_portal() when needed
add values missed in 060e13ad6d

PR : odoo/odoo#140051
task-id : 3571692

Related: odoo/enterprise#49713
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
2023-10-30 12:05:25 +00:00
Florian Damhaut 4b2f989c71 [FIX] sale: hide cancelled quote alert
PR : odoo/odoo#140051
task-id : 3571692
2023-10-30 12:05:25 +00:00
Florian Damhaut 6e13d715f9 [FIX] account: fix portal cards count
PR : odoo/odoo#140051
task-id : 3571692
2023-10-30 12:05:25 +00:00
Adrien Guilliams (adgu) 4f39f7cb29 [FIX] pos_loyalty, l10n_in_pos: add partner to order receipt
In this commit, we are adding partner to the order receipt as it is
needed for the receipt in india and for the loyalty module.

closes odoo/odoo#140046

Signed-off-by: Robin Heinz (rhe) <rhe@odoo.com>
2023-10-30 12:05:23 +00:00
Thomas Becquevort (thbe) 14879c2623 [IMP] account: Splitting Amount to settle menu
Currently, the "Amounts to settle" button in the "Vendors" drop-down menu
opens a view showing all the account.move.line that are to be reconciled.
Also, they should only be shown when their residual is less than zero.

This commit makes it now so that when clicking on that button, only the amls
linked to a purchase journal are shown and another "Amounts to Settle" button
has been added in the "Customers" drop-down menu to show the amls linked to
a sale journal

task-3572482

closes odoo/odoo#140040

Signed-off-by: William André (wan) <wan@odoo.com>
2023-10-30 12:05:22 +00:00
Pierre Pulinckx (pipu) e179fce25c [FIX] web: graph: sort tooltip content
Tooltip items are not correctly sorted anymore after migration to last
Chart.js version in the commit eb530b83b06a057f96.
This feature is fixed in this commit.

task-3552948

closes odoo/odoo#139676

Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
2023-10-30 12:05:20 +00:00
Tiffany Chang (tic) 7df50314b5 [FIX] mrp: use correct qty variable/term
A "quantity_done" removal was missed in the MO Overview report, which
made it so the report would throw an error when opened for a done MO.

Also replace "Reserved" with "Quantity" in the overview so that
it is more consistent with pickings + is more intuitive since it is
currently confusing that when the qty produced is updated, then it
appears that the qty reserved changes (rather than a qty being done)

closes odoo/odoo#140246

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-10-30 09:01:05 +00:00
oco-odoo ef055095df [FIX] account: don't loop forever when trying to expand a sum_children aggregation
This happened when auditing an aggregation line with a sum_children formula. A test was added in enterprise to prevent that to occur again in the future.

closes odoo/odoo#140200

X-original-commit: 1b24098676c1334666fc11b9973f76f4d200fa27
Related: odoo/enterprise#49783
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2023-10-30 09:01:03 +00:00
Lucas Perais af970abf89 [FIX] web_editor: QWebPlugin select parent of a qweb field
Follows commit: ffef01e327.
It caused an issue in Firefox:
On the sale order form view (with the field "notes" handled by the OdooEditor),
clicking on a Many2one made the browser crash because the method getSelection
did not exist on the target which was the input element.

It did not crash in chrome as the event's target was always the Document.

The added test actually tests the feature of the referenced commit, and checks, as much
as possible, that there is no crash.

closes odoo/odoo#140143

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2023-10-30 09:01:01 +00:00
Pierre Pulinckx (pipu) ce1b61918a [FIX] web: graph: position correctly tooltips
Since c8ca9da7bc, the tooltips in the
charts can come out of the container and make the scrollbar appear,
which is not desired. In this commit, we fix that.

task-3568895

closes odoo/odoo#139987

X-original-commit: c1f08c60b7272e5a30951c53b67427e2f205b722
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
2023-10-30 09:01:00 +00:00
Julien Carion (juca) 0c7e7e12af [IMP] web: edit domain button is available while loading records count
This commit removes the requirement that the records count should be
set before the edit domain button is shown for domains which must be
edited in a dialog. This could be annoying in cases the records count
loads slowly.

task-3561782

closes odoo/odoo#139969

X-original-commit: f2ba825eac5e4bda3d1b1d3676a1b737701c0fb8
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
Signed-off-by: Julien Carion (juca) <juca@odoo.com>
2023-10-30 09:00:58 +00:00
adsh-odoo b3542480ab [IMP] various: add page name on html fields to ease finding them
-> This commit add/change the name of the page corresponding to the string
   attribute because To be able to detect a field, Knowledge needs to be able to
   read its page name.

For more reference: Task-3501211

Task-3524474

closes odoo/odoo#137428

Related: odoo/enterprise#48315
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-10-30 09:00:56 +00:00
tsm-odoo 1306635db8 [FIX] mail: fix highlight pin message from notification
Since [1], highlighting a pinned message from the notification sent
to the channel does not work anymore. This is due to a `super` call
missing. This PR fixes the issue.

Steps to reproduce:
- Go to a channel
- Pin a message
- Click on the "message" link
- Nothing happens

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

closes odoo/odoo#139948

X-original-commit: 68992ba05eb48459800df17707741295a4f47c9c
Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
2023-10-30 07:37:13 +00:00
Renaud Thiry 77de6e827a [IMP] mail: Allow hiding tracking
It is sometimes desirable to completely remove a field
from the automated tracking message
when setting a custom message that already covers the change being made.

Add a filtering method on threads to allow models to selectively
hide tracking values from emails and messages.

task-2974500

closes odoo/odoo#109606

Related: odoo/enterprise#31795
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-10-30 07:37:12 +00:00
Thomas Lefebvre (thle) 4aeef08c61 [FIX] hr_recruitment: check mail before use it
Steps to reproduce:
-------------------
- create a job application;
- add an applicant name;
- add an email with a wrong format.
- save;

Issue:
------
A traceback occurs.

Solution:
---------
Check that the normalized email exists
(that it is not `False`) before using it.

opw-3544918

closes odoo/odoo#139952

X-original-commit: 3f52f9e84e42f5ad13ca96a92ea40b9a35d4353c
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
2023-10-30 06:35:06 +00:00
Fabien Pinckaers 142f38e263 [IMP] web_hierarchy: clean up UX org chart
closes odoo/odoo#140238

Signed-off-by: Fabien Pinckaers (fp) <fp@odoo.com>
2023-10-29 17:29:11 +00:00
Odoo Translation Bot 6739c317d1 [I18N] Update translation terms from Transifex 2023-10-29 00:07:17 +02:00
Fabien Meghazi 2738f8972e [ADD] base: add support for custom imbus & cron_trigger postgres notifications
This patch provides the possibility to implement a custom security layer on top
of Odoo's imbus notification system and ir_cron live triggering system.

The key addition is the `ODOO_NOTIFY_FUNCTION` environment variable (opt-in),
which can now define a custom postgresql function to be called instead of the
default `pg_notify` function. This allows for greater flexibility and control
over the notification and triggering mechanisms within Odoo.

closes odoo/odoo#140089

Signed-off-by: Fabien Meghazi (fme) <fme@odoo.com>
2023-10-28 19:59:03 +00:00
Laurent Smet b28c4f2b1d [IMP] account, mail: Several invoice creation when mail alias with attachments
Problem
---------
Previously, when receiving an email with several attachments, we created
1 invoice that contained all the attachments.

Objective
---------
We want to create several invoices depending on the attachments received.
No invoice should have more than one PDF document.
No invoice should have more than one XML document.
Other attachments should be placed in seperate invoices (except for the
first invoice that can contain 2 attachments: ex. image and PDF).

Solution
---------
Update the _extend_with_attachments to behave like such.

task-3526248

closes odoo/odoo#140196

Related: odoo/enterprise#49779
Signed-off-by: Laurent Smet (las) <las@odoo.com>
2023-10-28 15:25:43 +00:00
Ritika Shekhawat 4fca21f599 [FIX] project_timesheet_holidays: fix generation of timesheets for public holidays
Steps:
 - Open Time-Off
 - Go to configuration
 - In public Holidays
 - Create a new public holidays

 Issue:
 - The validation error occurs.

 Cause:
- It get employee from the company which is not selected due to this
 employee consider as a invalid employee.

 Fix:
 - Add domain in employees_groups so it consider only selected companies
  employee while creating public holiday.

 Task: 3504636

closes odoo/odoo#140185

X-original-commit: fe88f384d186cf4e3e5505dde78d68e286c34a0e
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-10-28 11:13:45 +00:00
c0b683e2f4 [IMP] web,*: improve darkmode
This commit introduces some adjustments to the dark mode color scheme
and the use of bootstrap classes in Community.

- Mini calendar contrast -

The colors were not using variables, making them non dynamic
and breaking the contrast in dark mode.

- Avoid !important rules spreadsheet -

Prior to this commit, spreadsheet top bar was using a `bg-white` class,
making it pure black in dark mode.

Since spreadsheet is designed with light colors and we don't provide a
dark mode for it, we remove that class and set a `background-color`
property using CSS in Enterprise.

- Input color -

This commit fixes the focus behavior on the searchbar in the control
panel, the `command_palette_search`, and the `start a conversation` in
discuss.

- Copy clipboard field border color -

Make use of the `text-primary` color for the copy to clipboard field
We use the o-theme-color function to avoid an undefined since primary
doesn't exist in the o-theme-text-color map in white mode.

- Web_editor toolbar variables -

The toolbar was using the `o-brand-primary` variable
which was set to a darker shade. This caused issue when activating an
option due to how vibrant the color is.

- Improve the controls on border-color -

Introducing a custom property on the border-color to allow
further control on individual components (such as the popover).

- Improve setting tabs colors use -

Prior to this commit, the colors of the settings tabs menu were kinda
inverted. The menu was light in dark mode and dark in light mode.

We fix this by changing the values associated to the CSS variables in
use.

- Make model field selector dark mode proof -

Fixing the design of the model field selector popover in both
light and dark mode. Since the popover was using custom style with
arbitrary values, it was not designed for the dark mode and had a lack
of consistency.

To improve the design, we use variables rather than custom style, and
make sure the desired render is as close as before.

- Sign colors use -

This commit aims to improve the sign module in both light and dark mode.
There were some readability issue with some `btn-light` having poor
contrasts in both light and dark mode, and the use of some classes was a
bit unexpected (e.g `card-header` to set a grey background with some
padding).

- Improve buttons design inside listview -

Prior to this commit, this button was using custom CSS to make it look
like a primary button, while it was using classes related to secondary
buttons.

We remove the custom CSS used to style it correctly and keep our button
design consistent.

- Messaging menu layout in mail -

This commit aims to improve the design of the notifications displayed
in the messaging menu. Prior to this commit, the notifications dropdown
was using custom CSS variables overriding the regular behavior
of our dropdowns.

In fact, the layout was generating some friction:

1) Marking a notification as read would turn its background into a
darker color

2) Effects like `:hover` were all based on the custom CSS variables
resulting in an inconsistent layout.

- Multi company selector adaptations -

In darkmode the multi company selection was using the btn-light which
creates a weird effect and overrides the dropdown default hover behavior

This commit uses the btn-link to display an hover effect on the
company switch and on the checkbox while blending with the background
and the default dropdown hover effect.

- Adapts default badge design -

Improve the design of the default badges in dark mode.

If you open the light mode, these badges are dark grey with a white
text. If you switch to dark mode, they are dark grey but with a dark
text, which makes them look either muted or off.

We make use of SCSS variables to handle the color of the component,
providing a good styling in both modes.

- Fix kanban cards borders inside dropdown -

Fixes the issue with the divider inside the kanban dropdown menu not
showing in dark mode.

To ensure it is visible, we assign it the `$dropdown-divider-bg`, which
is the color it should use, as the horizontal divider above uses.

- Fix tour pointer design for dark mode -

This commit aims to insert the tour pointer and its content inside the
styling we applied to our tooltip.

To do so, we make sure it uses CSS variables, allowing more control and
consistency, plus we replicate the overall look of our tooltips.

- Fix `text-primary` on action background contrast -

This commit improves the readability of our `text-primary` classes when
it's used on a `$o-component-active-bg` background.

Prior to this commit, the `text-primary` was not meeting the contrast
standard, mainly when you were using the `CMD+K` shortcut on the
app switcher.

To prevent that, we changed the background to a `$o-component-active-bg`
background with an opacity ensuring our text provides a good contrast.

- Fix input states -

Prior to this commit, the `--o-input-border-color` CSS variable was
using the `$o-form-lightsecondary` variable to define the standard color
of the `border-bottom` property of our inputs.

This was conflicting since `$o-form-light-secondary` is also used to
define the `background-color` of our table on focus.

With this commit, we separate these two element with different variables
to make sure they don't affect each others.

- Fix kanban ghost background -

Before this commit, if you created a project without any stage or element
in it, the ghost cards that act like placeholders would be pure `#000` in
dark mode, due to the `bg-white` class.

This commit replaces that class with a `bg-light`, providing a better
visual result in both light and dark mode.

- Fix new message design -

Improve the design of the new message element while
inside Discuss, using our danger color, ensuring a good visual result in
both modes.

task-3201038

closes odoo/odoo#139966

Related: odoo/enterprise#49666
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
Co-authored-by: chgo-odoo <chgo@odoo.com>
Co-authored-by: stefanorigano <sri@odoo.com>
2023-10-28 10:07:53 +00:00
Alexandre Kühn 05f434c222 [FIX] mail: show original format of email message in white theme
Before this commit, messages of type email had their style initially
altered on the UI to match the theme, notably the background and font
color. To see the original format, a floating button
"Show Original Format" was shown in the top-right corner of these
messages.

The main problem with this button is that most email messages do not
have a different visual between altered and non-altered, so this
button felt useless most of the time. Also, the original style of
email message is a annoyance in dark theme but not in white theme.

This commit removes the presence on the button and the style of
email message is now based on the chosen theme:
- white theme: always show the original style of the email
- dark theme: always show a slightly altered style of the email

This commit also fixes a bug where message of type `email_outgoing`
were not properly considered as email messages. To fix this issue,
`message.type === "email"` has been replaced with
`message.type.includes("email")` to also take these messages into
account.

Task-3573855

closes odoo/odoo#140176

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-10-28 01:18:30 +00:00
Arnold Moyaux cab82ee919 [FIX] stock: rollback invalid quantity instead of warning
Replace the warning by a usererror. That way it rollbacks to the
previous quantity. It will avoid to fake the user thinking he could
bypass the warning and remove the quantity silently later.

closes odoo/odoo#140172

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2023-10-28 01:18:29 +00:00
Walid 63d5b7cc36 [FIX] stock: take into account default return locations
Steps to reproduce:
- Enable locations in Inventory settings
- Edit Delivery on operation types
- Set a default return location
- Create and confirm an SO and it's delivery
- Create a return
- default return location is ignored

Bug:
since commit[1] returns have been redesigned and the default location
was not considered

Fix:
set location when creating the return and
prevent compute from editing the returns

opw-3517921
[1]: https://github.com/odoo/odoo/pull/118568

closes odoo/odoo#140154

X-original-commit: 68a7fe2cc15bb58402256b533c8e9b598b0838bf
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Walid Hanniche (waha) <waha@odoo.com>
2023-10-27 23:44:53 +00:00
Lucas Perais d04ca8fa60 [FIX] base_automation: fix check and execute time based
Before this commit, the ir.cron "Automation Rules: check and execute" crashed
because the "_check" method used get_eval_context where it shouldn't

This is due to b846d1ebe9, which makes _get_eval_context a record's
method, not a model one.

closes odoo/odoo#140153

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2023-10-27 23:44:52 +00:00
yhu-odoo 431d40be34 [IMP] mrp,stock: UI changes
1. Rename 'Reserved' on MO components to 'Quantity'
2. Hide `picked` field on MO compoents by default
3. Add tooltip for `picked` field on sm.

closes odoo/odoo#140150

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2023-10-27 21:36:57 +00:00