Skip to content

Syncing from upstream odoo/odoo (master) #34147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jul 7, 2025
Merged

Conversation

bt-admin
Copy link
Collaborator

@bt-admin bt-admin commented Jul 7, 2025

bt_gitbot

vin-odoo and others added 19 commits July 6, 2025 03:50
The POS supports to get your invoice using a QR code present
on a POS ticket after the fact.

Support for it is not easily done for public users and will
be supported later; but for logged in users we can display
the fields on their portal to allow them to fetch the invoice
correctly by themselves.

X-original-commit: fc8488f
Part-of: #217613
Signed-off-by: Nicolas Viseur (vin) <[email protected]>
Adds support for sending consolidated invoices to MyInvois
from the PoS.

task-4558045

closes #217613

X-original-commit: fb484f9
Signed-off-by: Nicolas Viseur (vin) <[email protected]>
On mobile, opening the message actions requires precise tapping, as
the user has to touch a very small icon. This PR replaces that with
a long press, a more intuitive and classical way to access these actions.

X-original-commit: 7b3d48b
Part-of: #217616
Related: odoo/enterprise#89580
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
On mobile, the message action menu is a modal, as are the view/add
reactions panels. Modals add a dark background overlay to the page.
In this case, the background becomes darker when accessing a submenu
and lighter when returning from it. This change in background intensity
feels a bit odd. This commit ensures that there is at most one modal
background.

X-original-commit: 9941cb0
Part-of: #217616
Related: odoo/enterprise#89580
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
The message reaction menu shows who reacted to a message. Currently,
it opens as a modal in the middle of the screen, unlike other modals
which appear at the bottom (e.g., add reaction). This also hides the
active message highlight.

Additionally, the menu closes immediately when clicking away, unlike
other submenus, making navigation harder.

This commit moves the reaction menu to the bottom like add reaction,
tweaks its style for clarity on mobile, and changes click-away to return
to the main menu—improving mobile usability.

X-original-commit: 46b3e91
Part-of: #217616
Related: odoo/enterprise#89580
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
Now that longpress is used to open the message actions menu, it's
not possible to select text inside a message anymore. This commit
adds a "copy" option that allows to copy the message text.tmp

X-original-commit: 92750da
Part-of: #217616
Related: odoo/enterprise#89580
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
Looks best with discuss style that uses rounded shapes.

closes #217616

X-original-commit: e986202
Related: odoo/enterprise#89580
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
Issue:
The "Email Signature" field title is missing in the User Preferences tab when calendar is installed.

Steps to reproduce:
1. Ensure the Calendar app is installed.
2. Go to Settings > Users.
3. Open any user form and navigate to the Preferences tab.

This patch mirror this commit: af701b3
by targetting the wrapping group instead of the field

opw-4796115

closes #217619

X-original-commit: 2a4ee98
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
Before this commit: changeOptionInPopover was failed in some cases where dropdown-item
element is not div, current selector in changeOptionInPopover was not able to select
element.
resetDefaultAction in AddToCartOptionPlugin plugin was not shared and we were calling
this method from other plugins.
addToCart builder actions was not fetched with right name, builder actions are using
id of the action class to fetch that specific action.

This commit solves all above issues.

X-original-commit: 5d08593
Part-of: #217597
Signed-off-by: Francois Georis (fge) <[email protected]>
The tour step was too fast and didn’t wait for the quantity to
be updated, which caused the mutation warning.

closes #217597

X-original-commit: a7afcfb
Signed-off-by: Francois Georis (fge) <[email protected]>
The `s_color_blocks_2` block uses paddings expressed using the `vw`
unit. Inside the snippets modal, this makes them evaluated to a value
that does not reflect the aspect ratio of the actual block.

This commit forces the padding of the block during preview to fixed
values so that it better matches the dropped version inside the page.

At the time of writing, there is no other block that uses that unit.

task-4367641

closes #217595

X-original-commit: ca7508c
Signed-off-by: Francois Georis (fge) <[email protected]>
* = html_builder, website

When adding snippets in Edit mode, they were always in English, even if
the website's default language was different.

Steps to reproduce:
- Add a second language (e.g.,  Français (BE))
- Set it as the website's default language
- Enter Edit mode:
  - via "Edit" button (when we are in the website's default language)
  - or via "Edit - Français (BE)" button in the Edit button dropdown (when
    we are in a different language)
- Add a snippet (e.g., s_cover)
- Snippet content appears in English instead of the default language

Root cause:
We were loading the snippet service before the user enters the edit mode
to ensure that the Edit mode loads faster.
However, in the snippet service we were passing the default language
from current website's metadata which had two issues:
1. Website's metadata is only available once the iframe is ready and the
   snippet service was loading before that - leading to `undefined`
   values.
2. Even when available, `metadata.lang` represents the currently
   selected language, not the website's default language.
Because of both these reasons the snippets were always in English.

Fix:
This commit resolves the issue by including `default_lang_code` in the
current website object.
The snippet service now uses this value to determine the correct default
language, ensuring that snippet content loads in the appropriate
language instead of defaulting to English.

X-original-commit: 2c3c9d3
Part-of: #217574
Signed-off-by: Francois Georis (fge) <[email protected]>
`test_snippet_translation` test was disabled after the new website
builder changes. This commit re-enables this test.

X-original-commit: b05225c
Part-of: #217574
Signed-off-by: Francois Georis (fge) <[email protected]>
* = html_builder, website

After switching websites, any new snippets dropped still appear in the
default language of the previously active website.

Steps to reproduce:
- Create two websites with different default languages.
- Drop a snippet on Website A - snippet appears in Website A's default
  language.
- Switch to Website B via the website switcher in navbar.
- Drop a new snippet - it still appears in Website A's default language.

Root cause:
To reduce Edit mode loading time, snippets are preloaded in the builder
action.
However, switching websites does not reload the builder, so snippets
remain in the previously loaded language.

Fix:
This commit ensures that the snippet service is reloaded when the
website is switched, so the snippets are shown in the current website's
default language.

closes #217574

X-original-commit: 53e6fcb
Signed-off-by: Francois Georis (fge) <[email protected]>
Steps to reproduce:
- Go to the html_editor (via Project for example)
- Select a text and open the colorpicker

Current Behaviour
The first line of colors is misaligned with next lines.

Expected
The first line of colors is aligned with next lines.

Also, note that it fixes the colors' selector shape on touch devices and
keyboard navigation can go from one line to the next/previous using
right/left arrow keys (in the same section).

closes #217575

X-original-commit: f26c821
Signed-off-by: Adrien Dieudonné (adr) <[email protected]>
Signed-off-by: Pierre Paridans (app) <[email protected]>
Keep the original session id that initialised the http request.

task-4922056
Adding following features to info panel:
- Display open leads in info panel
- Display open tickets in info panel
- Display chatbot answers in info panel
- Display outcome in info panel

follow up of task-4771890

closes #217630

X-original-commit: f14ee9a
Related: odoo/enterprise#89586
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
…table in po

Steps to Reproduce:
1. Navigate to Purchase → Create a new Purchase Order.
2. Add a Vendor → Add a Product with description or enter one using the ☰ widget.
3. Save and Confirm the order, Try to edit the description.

Issue:
- The product description becomes non-editable after confirming the PO.
- Previously, the description was separated in view.

Cause:
- Since product_id is readonly, the name (description) field also does not allow
to edit.
- e.g. In SO, the description is editable if the product_id is hidden and only
name (description) field is visible.

Since product_id is readonly in states ('purchase','to approve','done','cancel')
the description field also becomes read-only, as they are combined.
By hiding the product_id, we can edit the description, as it is not.

Solution:
- Added optional="show" to product_id in the XML view to allow toggling
discription editability. When product_id is hidden, name field becomes editable.

Steps to Verify:
1. Open same confirmed PO and hide the product_id column.
2. Make sure name (description) field is visible and now it is editable.

opw-4892063

closes #217470

X-original-commit: b48e1e2
Signed-off-by: William Henrotin (whe) <[email protected]>
Signed-off-by: Khushi Srivastava (khsr) <[email protected]>
Before this commit, seeing whether a livechat has ended, e.g. due to
visitor leaving, required opening the conversation and seeing the
"livechat has ended" where composer is shown.

This commit improves visibility of livechat that have ended by
showing a checkered flag icon on avatar of livechat conversation that
have ended. This icon is also shown on chat bubbles.

closes #217629

X-original-commit: 9a671ba
Signed-off-by: Alexandre Kühn (aku) <[email protected]>
@bt-admin bt-admin added the master label Jul 7, 2025
@bt-admin bt-admin merged commit 4080233 into brain-tec:master Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.