Commit Graph
167098 Commits
Author SHA1 Message Date
Benjamin Vray ad8feceedf [FIX] website: fix hover effect and Images Wall
Steps to reproduce the bug:

- In Website edit mode, drag and drop an "Images Wall" snippet onto the
page.
- Click on the first image of this snippet.
- In the "Animation" options of the image, select "On Hover".
- Save the page.
- Click on the first image of the "Images Wall" snippet.
- Bug: The image in the slideshow still has the overlay that appeared
due to the hover effect.

This commit fixes this issue by resetting images to their original
source in the slideshow.

task-3562305

closes odoo/odoo#139695

Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2023-10-31 13:26:39 +00:00
Odoo's Mergebot 469d94a94d [IMP] website: events redesign
This PR improves the overall design of all the views in the Frontend
side of the module Event.
The design was outdated and was not consistent between the different
pages.

List of changes:
- events: cleaning of scss, filters consistency and responsive
(with off-canvas).
- submenu: design and responsive behavior (dropdown)
- registration page : overall design and the ticket list is inside a
modal, to help with cases like having a lot of tickets. To be improved,
on a separate page instead of a modal.
- talks and agenda: design, cleaning of scss, filters consistency and
responsive (with off-canvas).
- sponsor template: minor design modification
- exhibitors: design, cleaning of scss, filters consistency and responsive
(with off-canvas).
- location: minor design modification to be consistent with others pages,
but need improvement in the near future.
- meet: design, cleaning of scss
- booth selection: overall design

task-3083658

closes odoo/odoo#137729

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-10-31 13:26:38 +00:00
Morgane (morm) 6b1d11a60d [IMP] website: search button color
Prior to this commit, the button with the search icon, inside the search
bar,  was `primary, which is not consistent with the filters that are
`light`.

Part-of: odoo/odoo#137729
2023-10-31 13:26:38 +00:00
Morgane (morm) 4a890e1f92 [IMP] website_event: frontend redesign
This commit improves the overall design of all the views in the Frontend
side of the module Event.
The design was outdated and was not consistent between the different
pages.

task-3083658

List of changes:
- events: cleaning of scss, filters consistency and responsive
(with off-canvas).
- submenu: design and responsive behavior (dropdown)
- registration page : overall design and the ticket list is inside a
modal, to help with cases like having a lot of tickets. To be improved,
on a separate page instead of a modal.
- talks and agenda: design, cleaning of scss, filters consistency and
responsive (with off-canvas).
- sponsor template: minor design modification
- exhibitors: design, cleaning of scss, filters consistency and responsive
(with off-canvas).
- location: minor design modification to be consistent with others pages,
but need improvement in the near future.
- meet: design, cleaning of scss
- booth selection: overall design

Part-of: odoo/odoo#137729
2023-10-31 13:26:38 +00:00
Mathieu Duckerts-Antoine ef97eaf987 [FIX] web: drag and drop: allow pointer down blur
If one edits an input value in a dialog and click on the dialog header,
the blur event is prevented because the dialog is draggable and the
pointer down native behaviour is prevented by the draggable hook builder.
This can cause data losses or the dialog content to not be render correctly.
For instance, this happens with the debug input of the domain selector
dialog.
We fix that by triggering the blur event programatically.

closes odoo/odoo#140436

Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2023-10-31 10:34:01 +00:00
Xavier Morel 090b721f7e [FIX] mass_mailing: markup usage
- using a string to join `Markup`s is useless, that just strips out
  the `Markup`
- the entire toplevel `Markup` can be formatted in one shot

closes odoo/odoo#140428

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2023-10-31 10:34:00 +00:00
Brieuc-brd d786992973 [FIX] payment: adapt long payment summary
Prior to this commit, the content of the payment summary did not include
line breaks when the text was too long, creating layout issue.

To fix that, this commit adapts the font size and forces the text to
break.

task-3576830

closes odoo/odoo#140423

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-10-31 10:33:58 +00:00
Lucas Lefèvre (lul) b3369c42bb [FIX] spreadsheet: test invalid pivot expression detection
See https://github.com/odoo/odoo/pull/139871/files#r1377199846

closes odoo/odoo#140418

Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2023-10-31 10:33:57 +00:00
Antoine Vandevenne (anv) f294bc10f8 [FIX] website_sale: handle missing express checkout providers
The express checkout form template could not be rendered when no payment
provider supporting express checkout was passed.

closes odoo/odoo#140415

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-10-31 10:33:56 +00:00
Achraf a1981c0279 [FIX] website_sale: Allow users to see delivery cost with carrier radio input
Steps:
	- Install `website_sale`
	- Enable `On-site payment & picking`
	- Set 200$ for on-site picking fees
	- Go to /shop
	- Put a product in the cart and go to checkout

If you click in the element box containing on-site picking it will compute
the delivery fees, but if you select it with the radio button it will not.

closes odoo/odoo#140376

X-original-commit: 3d81439f7ded68a2002a8585da63c6d72a7b65ca
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Achraf Ben Azzouz (abz) <abz@odoo.com>
2023-10-31 10:33:56 +00:00
tsm-odoo 7458484b07 [FIX] im_livechat: crash on new odoo instance
The live chat relies on `session.origin` to send its requests to
the server when its embed in an external page. `web.base.url` is
only set when a user authenticates and is wrong when no user
connected yet. Since `session.origin` uses the value of `web.base.url`,
a crash occurs when opening the website with live chat enabled on a
fresh instance of odoo. This commit removes the use of `session.origin`
in the frontend code since it is useless anyway. The `url` function
is used to format URLs since it either happens `session.origin` if
available or `location.origin` otherwise.

Steps to reproduce:
- Create a new odoo database with website_livechat installed
- Go to the log in page
- A crash occurs

closes odoo/odoo#140156

X-original-commit: 62e266e
Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
2023-10-31 10:33:54 +00:00
Aaron Bohy 4dc211dff8 [FIX] web: display filters directly in search bar
In views with a searchbar, we want the filters to be displayed
directly when they are activated, without waiting for the view to
be reloaded. This is to provide a direct feedback to the user.

Before this commit, this didn't work in grouped kanban view with
progressbar. The regression has been introduced by [1] which moves
the progressbar logic out of the model. With [1], the rendering of
the KanbanController waits for the progressbar data to be loaded
in onWillUpdateProps, thus delaying the rendering coming from the
WithSearch when a filter is toggled.

This commit applies the same logic as for the model: we do not wait
for the loading promise in onWillUpdateProps. That way, the
rendering coming from WithSearch is synchronous, but a reload is
initiated and another rendering will be scheduled by the Controller
itself when the data will be loaded.

This commit also adds a test for the model case, as it appears that
this wasn't tested.

[1] 58ca40b032

closes odoo/odoo#139967

X-original-commit: 47cf6e326f5a795984bac2138b169503c3dd099c
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
2023-10-31 10:33:51 +00:00
Didier (did) ceebd2e8d0 [FIX] mail: reorder direct message when opening a new one
Before this PR, newly created direct message would be added at the bottom of the
list instead of the top.
This PR fix the issues by sorting the direct messages when creating a new direct
message channel.

Task-3566728

closes odoo/odoo#139960

X-original-commit: 60cf880102615a524f2fa89c71be7f1b08d931d1
Signed-off-by: Didier Debondt (did) <did@odoo.com>
2023-10-31 10:33:49 +00:00
clesgow 34db3fd706 [FIX] stock: filter on 'closest' strategy
Steps to reproduce:
- Enable Storage locations
- Add two lots in stock:
  - lot_shelf_2 in WH/Stock/Shelf 2
  - lot_shelf_1 in WH/Stock/Shelf 1
- Enable the 'Closest Location' removal strategy on its product category
- Create a delivery using this product and mark it as todo

Issue:
lot_shelf_2 will be selected even though it should take the one from
Shelf 1.

When filtering on the location, we need to filter on the location name
instead of this is.
Also, when creating a new quant on a product using the 'closest'
location, the filter will create a traceback because it will try to
filter on a NewId.

closes odoo/odoo#140175

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-10-31 08:24:42 +00:00
clesgow 9200d3a5b2 [FIX] product_expiry: add sort_key for fefo strategy
Steps to reproduce:
- Enable product expiry
- Add two lots in stock:
  - lot_1 expired in 5 days
  - lot_2 expired in 2 days
- Enable the 'First Expiry First Out' removal strategy on its product
category
- Create a delivery using this product and mark is as todo

Issue:
lot_1 will be selected even though it will expire later.

Following 2151a34, _gather() can now use `self` to filter on itself
instead of performing a search() to save some time.
Problem is, no sort_key was defined for 'fefo' strategy.

Part-of: odoo/odoo#140175
2023-10-31 08:24:42 +00:00
Andrzej(pian) 1f2f329421 [IMP] sale_project: Include Archived Projects in Stat Button View
[Context]
Sales Order can be connected to projects. Before this commit archived projects
were counted in the stat-button, but not in the related to stat-button project kanban view.
We want to show archived (i.e. "non active") projects in both.

[Reproduce behaviour before this commit]:
- run odoo 15 with: sale_management,project,timesheet_grid
- In Project, create:
	- project A
	- project B
- In Sales/Products/Products, create:
	- product A (set: type="Service", Create on Order="Task", project="project A")
	- product B (set: type="Service", Create on Order="Task", project="project B")
- In Salse/Orders/Quotations:
	- Create Quotation
		- add "product A" and "product B"
		- save & Confirm
		- OBSERVE: stat-button "projects" shows 2 projects
		- Click on: stat-button "projects"
		- OBSERVE: kanban view shows 2 projects
- Archive one of project
	- go Project/"Project A"/Edit/Action/Archive (require debug mode)
- Go back to created Quotation
	- OBSERVE (Desired): stat-button "projects" shows 2 projects
	- Click on: stat-button "projects" and OBSERVE
	- OBSERVE (Not-Desired): kanban view shows 1 projects (it excluded archived one)

[Fix]
Modified domain in the function/action related to the stat-button.

opw-3500711

closes odoo/odoo#140364

X-original-commit: eef4506f32f09dcda9990556e55131bc17855dcc
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-10-31 07:11:45 +00:00
Tiffany Chang (tic) 851878e36a [FIX] mrp,stock: correctly handle client action behaviors
Fixes 2 use cases:
- barcode redirect after picking is validated (should return to menu
  instead of refreshing the validated picking). Issue was due to missing
  renaming of "on_close" to "onClose" after refactor occured
- ensure the auto-print action during MO validation always has a context
  because the "Shop Floor/MES" expects any returned actions from
  validation to always have a context to add the extra context parameter
  of "skip_redirection" to it

closes odoo/odoo#140352

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2023-10-31 07:11:44 +00:00
Tiffany Chang (tic) 4bba1d79fa [FIX] stock: adjust labels autoprinting due to refactor
The lot and product label wizards were refactored to have diff
variables, so the auto-printing parameters need to be updated to match

Part-of: odoo/odoo#140352
2023-10-31 07:11:44 +00:00
shsa-odoo 948c6a2ff3 [FIX] web_editor: traceback in link creation in debug mode.
Before this commit:

On creating link in debug mode produces prop validation error, and link
dialog doesnot appear

After this commit:

Now the issue is resolved and link dailog appers.

task-3571940

closes odoo/odoo#140178

X-original-commit: 8519cbab2e22506b12a1d93066c2c4fd87e753fe
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Sanjay Sharma (shsa) <shsa@odoo.com>
2023-10-31 06:02:43 +00:00
Brieuc-brd 03b5ba865f [FIX] website: prevent crash with no_icon_color social links
Prior to this commit, when you removed a social link in the header,
there was an error.
This is because `website.header_social_links_no_color` targets selectors
that do not exist in this situation.

task-3572219

closes odoo/odoo#139883

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-31 00:01:42 +00:00
Alexandre Kühn bef68e577a [FIX] mail: center avatar with composer with a single line
Before this commit, the avatar next to composer in Discuss app
had the top aligned with the top of the text input of composer.
The avatar is smaller than the input, and the text in the input
is centered, so the alignment looks off.

This commit fixes the issue by offseting the avatar so that
when the composer has only 1 line, the avatar is vertically centered
with the input.

Note that this alignment should be fixed, i.e. if the input field has
more than 1 line, we want to keep the avatar in the same place, hence
why the avatar is just statically offset.

Also align composer avatar with message list, by removing the
`align-justify: self` that was moving avatar slightly towards the
discuss app sidebar.

closes odoo/odoo#140398

X-original-commit: 5fe4297f3d1a988ae65617c177046a223bc62890
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-10-30 21:50:48 +00:00
Xavier Luyckx (xlu) 733a93956f [IMP] purchase: rfq dashboard values background color
Prior to this commit, the Request for Quotations (RFQ) dashboard suffered
from a visibility issue. Specifically, the values displayed on the right
section of the dashboard were using a background color class that was not
correctly used leading to poor differentiation between the values and
their corresponding labels/titles.

This commit apply the correct background colors to these elements.

task-3573792

closes odoo/odoo#140395

X-original-commit: c46970dc773f8985acdb0d07ce9faa5e7d204641
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
Signed-off-by: Xavier Luyckx (xlu) <xlu@odoo.com>
2023-10-30 21:50:47 +00:00
tsm-odoo 74f59fc59c [IMP] im_livechat: no 2 emoji icons in quick actions of message
Before this commit, messages in livechat from visitor POV show
2 emoji icons in the quick actions. This is confusing and comes
from 2 actions sharing this exact same icon: "Add a reaction"
and "View reactions".

This commit fixes the issue by reducing the number of quick message
actions to 2 for the embed live chat. In other contexts there's
"Reply-to" and "Mark as Favorite" in quick actions, so the
"View reactions" item is always in expand menu.

Note that this "dirty" fix come from 2 actions with same icon.
Eventually we should fix that by clearly making icons unique.
This solution is decent for the time being, giving us more time
to make a dedicate icon for one of the emoji actions.

task-3498446

closes odoo/odoo#140335

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-10-30 21:50:46 +00:00
Romain Derie 709bffcb6d [FIX] web_editor: disable grid mode when inside navbar extra items
There is an exact case where having a grid mode block inside a mega menu
item will fully bug: all elements will be on top of each other.

In order to reach this case, you need to:
- Create a mega menu
- Make the block inside this mega menu use grid mode
- Find a screen size where this mega menu will be part of the extra menu
  items (hidden in the `+` entry)
- BUT the screen size should not toggle the mobile view

Point of attention when trying to replicate the issue:
When you enable grid mode, the result will depend on the available size.
So be sure to not enable the grid mode on a megamenu which is already
hidden in the extra items when you are in edit mode, in such a case,
there is no bug.

This commit simply disables the grid mode in such a case, it will thus
behave like the grid mode in mobile view and therefore be responsive
(disabled in mobile).

opw-3547405

closes odoo/odoo#139956

X-original-commit: fb209432049d9874308a2bdc3c9d2baa210ccced
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-10-30 19:23:44 +00:00
fja-odoo c40492b0f5 [FIX] point_of_sale: block ui while syncing orders
Step to reproduce:

- Create a pos session
- Create a new order
- Process the payment (the syncing has to be long to notice the issue)

Issue:

You can still click on buttons in the interface payment screen and
trigger tracebacks

Cause:

The ui is not blocked while syncing orders

Solution:

Block the ui while syncing orders

closes odoo/odoo#140342

X-original-commit: 61dd356e48e7d0bfe1c8758c3835b858e2aa8de0
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: fja-odoo <fja@odoo.com>
2023-10-30 17:48:47 +00:00
Antoine Vandevenne (anv) f16da3bfdc [FIX] payment_stripe: fix payment method code mapping for SEPA
closes odoo/odoo#140340

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-10-30 17:48:46 +00:00
Arnold Moyaux 715f877eab [FIX] repair: pick moves automaticaly in repair
Since PR #137864
We do not have quantity done anymore and we use the picked field
to know if something is picked or not. But we remove the immediate
transfer wizard and we consider instead than if nothing is mark as
pick, everything is pick. We will do the same for repair because it
would confusing to have a different behavior

closes odoo/odoo#140322

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-10-30 17:48:45 +00:00
Arthur Detroux (ard) 57ed8bc0bf [REF] website, *: replace legacy dialog with OWL Dialog
*: test_website, web_editor, website_sale

The goal of this commit is to replace all Dialog in the Website Editor
flow with OWL Dialog. This uses the new `bindService` and `call` methods
available on legacy widgets. The replacements mainly use the
ConfirmationDialog component, but some had to have custom-made dialogs.

closes odoo/odoo#138947

Signed-off-by: Francois Georis (fge) <fge@odoo.com>
2023-10-30 17:48:42 +00:00
Arthur Detroux (ard) 0997b0a401 [REF] website: remove company_data SnippetOption
This code was use in 14.0 to allow users to edit the Company Information
visible on the /contactus page. It is no longer needed as the page is
now fully editable and the t-field has been replaced with static text.

Part-of: odoo/odoo#138947
2023-10-30 17:48:42 +00:00
Mahdi Cheikh Rouhou (macr) 4bb1bfe25b [FIX] website_slides_survey: compute left attempts correctly
Issue:
======
- When a user attempt a certification it will count as 1st attempt and
then do retry directly it will count as second attempt : fine.
- When a user attempt a certification it will count as 1st attempt and
  then exit the page and go to the certification again it will count as
  1st attempt too. So the user can have unlimited number of attempts
  like this.

Steps to reproduce the issue:
=============================
- Install survey , elearning
- Go to a course with a certification and do the certification, exit the
  page and enter to it again.
- Go to the user page and see the certifications you will see they both
  counted as 1st attempt.

Expected behavior:
==================
- when a user leaves a course (willingly or not) we remove the
  relationship between the user_input and slide_partner_id.
- To get the remaining attempts we just get the user_input_ids of the
  slide_partner because the old ones are removed.

opw-3498054

closes odoo/odoo#140305

X-original-commit: 74d2b551ae392fa20744fa22582b5b38b3babff7
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
Signed-off-by: Mahdi Cheikh Rouhou (macr) <macr@odoo.com>
2023-10-30 16:41:52 +00:00
Alexandre Kühn a74691949c [FIX] mail: same discuss badge color as systray in dark theme
Dark-mode colors have been adapted from MILK redesign in 16.3 [1].
Discuss badge colors were changed in 16.4 to match systray color [2].
Commit [1] adapted them to use primary color instead of intended
sytray color. Removing the override of style fixes the issue, as the
base style in `core.scss` (white theme) works in both themes.

[1]: https://github.com/odoo/odoo/pull/130991
[2]: https://github.com/odoo/odoo/pull/122946

closes odoo/odoo#140300

X-original-commit: b46bded27349acd311682846c0a0416ce4898882
Signed-off-by: Didier Debondt (did) <did@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-10-30 16:41:51 +00:00
sofiagvaladze 20d87404db [FIX] hr_holidays: align buttons on time off popup
Correct the view. Prior to this commit the buttons on the time off
popup are not alligned.

closes odoo/odoo#140284

Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
2023-10-30 16:41:49 +00:00
Louis (wil) 48ee45d6ce [FIX] *: fix typos
Corrects typos found when translating Odoo 17.

* : hr_fleet, payment

closes odoo/odoo#140282

Related: odoo/enterprise#49831
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-10-30 16:41:49 +00:00
Sébastien Theys ad612321bc [IMP] mail: improve debug views of channel (member)
Make partner_id and guest_id properly exclusive.
Allow creating a channel member from its form view.

closes odoo/odoo#140272

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-10-30 16:41:47 +00:00
Alexandre Kühn 7cf86921b4 [FIX] mail: click on messaging menu item should not rename thread
Before this commit, when opening a thread in the Discuss app and
changing to another active thread from the Messaging Meu in the
systray, the new thread was mistakenly renamed to the previous
active thread name.

This happens because the component `AutoresizeInput`, which is used
to show the thread name in the header of Discuss app, also allows to
rename the thread. The code to trigger rename was too naïve, in that
a click away was considered as a rename operation on the current
thread.

This commit fixes the issue by triggering the editing of the value
in the `AutoresizeInput` component only when the click away happens
while the input had focus. The click in messaging menu will not
trigger it as the input is not focused.

Task-3570377

closes odoo/odoo#140208

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-10-30 16:41:46 +00:00
Ricardo Gomes Rodrigues 8c4e855a1b [FIX] account_reports: warn user if some accounts are deprecated while generating the grouped deferral entries
Currently, if a user has an active deferred entry whose account has been deprecated in the mean time,
we create a move line containing this deprecated account which raises an unclear error to the user.

Now, instead, we let the user create deferral entries for deprecated accounts.

We also add a test to check that old moves are not taken into account when generating deferral entries.

task-id 3544877

closes odoo/odoo#140155

X-original-commit: 47f97fb208ee6c6fc4ce522bc7ad648ea6bbe07c
Related: odoo/enterprise#49758
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2023-10-30 16:41:45 +00:00
David Monnom (moda) f54c572152 [IMP] pos_self_order: add tests
This commit adds tests for the pos_self_order module. The tests are
written in javascript and use the odoo testing framework. The tests
cover the following scenarios:
- attribute selection
- combo selection
- kiosk mode
- mobile mode

closes odoo/odoo#140138

Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
2023-10-30 16:41:42 +00:00
“moda” 569016bf63 [FIX] point_of_sale: error handling
Before, error handling didn't work in point_of_sale when offline.
This was due to poor error handling.

Now, the "limited functionnalities" popup is displayed correctly.

closes odoo/odoo#140037

Related: odoo/enterprise#49705
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-10-30 16:41:42 +00:00
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