Commit Graph
167281 Commits
Author SHA1 Message Date
Louis (loco) 34e4049b80 [FIX] website: prevent circular dependency of duplicated fields
Steps to reproduce the bug:
- Drop a "Form" snippet on the website.
- Add three fields and rename them by "a", "b" and "b".
- Change the conditional visibility of the first "b" and make it depend
on "a".
- Change the conditional visibility of "a" and make it depend on "b".
- Save.

-> Traceback "Maximum call stack exceeded" appears.

A field with a conditional visibility is visible if at at least one
field with the dependency name is visible. The problem is that in our
case, it exists a circular dependency between "a" and one of the "b"
leading to an infinite loop during this check. Before this commit all
the fields of the form were checked and all the labels of the fields
that do not create a circular dependency were proposed in the file
visibility selector. The problem is that in our case, one of the "b"
field does not create a circular dependency while the other does. To
solve the problem, the `_recursiveFindCircular()` function has been
adapted in order to not propose a label that would create a circular
dependency in the file visibility selector.

task-3291044

X-original-commit: f010b128be29e884c89dd58f1c575a163e229d5b
Part-of: odoo/odoo#140928
2023-11-06 11:16:42 +00:00
Christophe Monniez eae9980e0c [FIX] web: fix clickbot blacklisted menus for event
In f0b7838f the event_barcode was moved from enterprise to community, so
the menu for the registration desk changed. As this menu was blacklisted
in the clickbot, it started to fail in the nightly tests.

While at it:
  * remove useless and noisy log
  * log when a menu is skipped instead of telling that it was tested

closes odoo/odoo#140805

Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-11-06 11:16:41 +00:00
Ritika Rathore c82ffda05d [FIX] project: select the any project in the sub task
Steps:
- Install Project
- Open project module
- Actived Task Dependencies
- Select any project
- Now select any task
- Go to Sub-Task notebook
- Add sub task
- Select any other project in the sub task

Issue:
 Currently, we cannot create sub task of another project in the form view.

Fix:
 - we can create sub task of any project.

Task-3508241

closes odoo/odoo#140794

X-original-commit: 5c2471f4ed1f61b0ba75e05280eccf39a6a44f62
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-11-06 11:16:40 +00:00
Chrysanthe (chgo) 8d3baa20fe [FIX] web: fix contrast issue in settings mobile view
This commit fixes a contrast and readability issue on the active tab
within Settings on small devices.

Prior to this commit, an active tab on mobile view would use a primary
background, while nothing would be declared for its text color.

This would cause readability issue, with a dark text on a primary
background.

To avoid this kind of issue, we set a `text-bg-primary` class to our
button to ensure it gets readable, and also set a `shadow-none` to
prevent the `tip` of the tab to appear in mobile, since it would use
another color.

task-3580676

closes odoo/odoo#140751

Signed-off-by: Luca Vitali (luvi) <luvi@odoo.com>
2023-11-06 11:16:37 +00:00
Jorge Pinna Puissant f51a6a8f54 [FIX] web: clickbot hard-coded date in tests
This commit, fix the issue that some tests fails on other month than
October, this occurs because the current date wasn't patched on the
tests.

Moreover, this commit removes the log "Clicking on: Control Panel menu",
this log is not very important, and can increase significantly the size
of the log.# with '#' will be ignored, and an empty message aborts the
commit.

closes odoo/odoo#140728

X-original-commit: 3538513c87098aab21bd2224fbf6a338ffd5b577
Related: odoo/enterprise#50046
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2023-11-06 11:16:34 +00:00
Rémy Voet (ryv) c1e8a32e7d [FIX] core,*: Fix display_name computations for new records.
As of https://github.com/odoo/odoo/pull/114024, `display_name` is
implicit in every form view (see the use of addFieldDependencies in the
Form controller). Therefore, when you create a new record for this
model, it calls the first `onchange`, which will compute display_name
for a new record (id without origin). Some `_compute_display_name` don't
handle new records correctly and raise a traceback. These models are
sometimes directly accessible:

- Accounting > Account Group > New => Traceback
- Contact > Contact Tags > New => Traceback

Other models are inaccessible by default (no view to access or create a
new record), but if someone creates a view for them with studio (or
modifies an existing one to allow creation):

- `crm.iap.lead.role`
- `crm.iap.lead.seniority`
- `chatbot.script.answer`
- `payment.token`

Change the code of `_compute_display_name` on these models to be more
defensive and avoid (potential) tracebacks. Similarly, change the
`convert_to_display_name` of `fields.Datetime` to take into account
`None` value.

closes odoo/odoo#139592

Related: odoo/enterprise#49721
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
2023-11-06 11:16:31 +00:00
Aaron Bohy b2202cf711 [FIX] web: MacroEngine: stop observing mutations in iframe
The MacroEngine has a stop function that allows to completely
disable it. Before this commit, it correctly disconnected the
"main" mutation observer, but it didn't disconnect the mutation
observer for iframes.

In web_tour tests, we mock the MacroEngine to stop it at the end
of tests, but this didn't stop the iframe mutation observer.

This had an highly undesirable side-effect in tests: the qunit
suite stopped during mass_mailing tests, because the iframe
mutation observer detected a change which produced the log of
"test successful", which ended the whole suite. Some tests were
thus never run anymore (fortunately, we're only talking about a
few qunit modules).

closes odoo/odoo#141143

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2023-11-06 09:46:11 +00:00
vava-odoo 493c391533 [FIX] website_sale_comparison_wishlist: no compare button for product template
It is not possible to add to comparison a product without variant. But
before this commit, if you add the product to the wishlist, it is
possible to add it to comparison. This commit prevents this button from
appearing in case the product has no variant.

Solves #139175

closes odoo/odoo#141016

X-original-commit: c7f43cd9313129eef18dc80d62b3211790c7dbfd
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
2023-11-05 09:40:29 +00:00
Stefan RijnhartandWilliam Andre 57b713cb7e [FIX] account: ensure fiscal position belongs to the company of the invoice
When bank statements are imported using Enterprise's account_online_synchronization,
or when invoices are created from incoming email using mail aliases on
`account.journal`, journal entries can end up with a fiscal position from the default
company of the user that the `account.move` creation runs as, or the import fails
with an error "'Draft Entry' belongs to company X and 'Fiscal Position' belongs to
another company".

While account.move's `_compute_fiscal_company_id` calls `account.fiscal.position`'s
`_get_fiscal_position` with actual company of the move, it passes one or two
`res.partner` records to this method that were still browsed with the default company
of the executing user which could result in a fiscal position from that company,
instead of the company of the journal entry.

closes odoo/odoo#141059

X-original-commit: 71bd4f1378f56b333830cbc5aa11c1c55dcefcc3
Signed-off-by: William André (wan) <wan@odoo.com>
Co-authored-by: William Andre <wan@odoo.com>
2023-11-05 00:55:49 +00:00
Stefan Rijnhart df46124079 [CLA] Update domain for Opener B.V.
X-original-commit: 42d71f55a8b7511ab9dbe25071cfd3cd4fe83801
Part-of: odoo/odoo#141059
2023-11-05 00:55:49 +00:00
oco-odoo 1e0fa79719 [IMP] base: company branches: improve helper function
closes odoo/odoo#141033

X-original-commit: 5c05d8179ba757fc0b3067c8297e8636adc882e5
Related: odoo/enterprise#50190
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-11-05 00:55:47 +00:00
oco-odoo 5c38e8d9d6 [FIX] base: keep active company first in recordset when getting accessible company branches
__accessible_branches() used to call search() to get the children companies, but doing so, it returned them sorted according to res.company's _order, so (sequence, name). Because of that, a branch company with a name coming before it's parent's in alphabetical order, if they had the same sequence (which is the default), would always be returned before it by this function.

This behavior caused some issues, as it was assumed the order of the element it returned would be the same as in the company selector ; respecting the hierarchy of branches, with parent companies coming first.

This was spotted in Accounting, with the following setup:
- A company named "main", with one branch called "branch".
- "branch" has one sub-branch called "branch branch".
- Enable "main" and all its sub branches in the selector ; "main" is the active company.

Here are the issues that were found in Accounting:

1)  Click on the "new" button in the Customer Invoices' tree view. Don't change anything in the form that opens, and check the value in the company_id field of the invoice being created. It should be "main", but it's "branch" instead.

2) (when applying the fix commit on the enterprise branch related to this one)

When printing an accounting report, the route called to generate the file restores the active companies from the options' multi_company key https://github.com/odoo/enterprise/blob/16.0/account_reports/controllers/main.py#L21 . Because of that, if the report does not support multicompany, but only branches of the active company (see corresponding enterprise commit for details), if the first company in this list is one of the branches instead of the main company, the companies computed for the report will be different.

In our example, "branch" will be first in the list, so the options for the file export will be computed with "branch" as main company, enabling only its branches that are selected in self.env.companies ; so only "branch" and "branch branch" will be in the report ; which is wrong, as we also want "main".

X-original-commit: b0d716a0e618ddc78d6ca80b5bc7b796ed27905a
Part-of: odoo/odoo#141033
2023-11-05 00:55:47 +00:00
Odoo Translation Bot 5d2bc9e9b3 [I18N] Update translation terms from Transifex 2023-11-05 00:21:55 +01:00
Levi Siuzdak (sile) 5bb1a3b450 [FIX] portal: add ellipses to search box placeholder overflow
Versions:
---------
- 15.0+

Issue:
------
Depending on the font, string & window size, the `oe_search_box`
placeholder may get cropped awkwardly.

Cause:
------
The search field can't guarantee adequate width to show the full
placeholder string.

Solution:
---------
Add `text-overflow: ellipsis` CSS rule for `oe_search_box` elements to
make it clear the placeholder was cropped.

Related:
--------
- odoo/enterprise@b69c7da11a
- odoo/enterprise@5e47eaf30f

opw-3504281

closes odoo/odoo#141070

X-original-commit: 18cbb2913537bab0748f0a4e7ed466f259c8fa77
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-11-04 19:06:41 +00:00
Brieuc-brd f190b6ebb0 [FIX] website_forum: fix color issues
=== ISSUE 1 ===
Prior to this commit, card colors in the index list were static,
creating a contrast issue if the page background color changed.

This commit fixes this issue.

=== ISSUE 2 ===
Prior to this commit, the popover text color and the shadow created
color issues when the background color of the page was dark.

To fix that and maintain consistency, we use the common Bootstrap
shadow and force the text color to be dark.

task-3559012
Part of task-3097005

closes odoo/odoo#141069

X-original-commit: ac61d3ba59b9fa10e300cbf065d73c165e1d7af0
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-11-04 16:38:56 +00:00
Bruno Boi f9753a3e71 [FIX] web: fix popover in dialog with useAutofocus
**Before this commit**
Open within a dialog a popover that has a child
using the useAutofocus hook.
As the dialog has become the UI active element,
and as the popover's element tree is a sibling
of the dialog element (since both use the overlay
service): the autofocus mechanism wanted by the
popover's child does not work at all.

**After this commit**
The popovers now can also become the UI active
element, leading to the above use case to work properly.

closes odoo/odoo#140885

Signed-off-by: Florent Dardenne (dafl) <dafl@odoo.com>
2023-11-04 16:38:53 +00:00
Bruno Boi 003609b8d2 [IMP] web: soften the UI active element takeover
**Good to know first**
The UI active element takership system is
directly bound to the focus trap mechanism.

**Before this commit**
If an element become the UI active element but has no
tabable elements in its tree, we force its tabindex
to the -1 value to make it programmatically focusable.
That way we ensure the focus is effectively trapped.

**After this commit**
The tabindex is no more forced at all.
Instead, if we detect that there are no tabable elements
inside the UI active element candidate, it simply does not
become the UI active element.
In other words, this commit kind of weakens the focus trap.
But this is perfectly fine for our use cases, i.e.:
- dialogs always have at least one focusable button (close, ok...)
- the website wysiwyg-adapter has a ton of focusable elements

**Why ?**
We need this change to permit other UI pieces to make use of
the active element takeover mechanism, i.e. popovers.

Part-of: odoo/odoo#140885
2023-11-04 16:38:53 +00:00
Bruno Boi bf2866a27c [FIX] web: trapfocus if first/last tabable changes
**Before this commit**
If a UI active element taker has its first or last
tabable element rendered conditionnaly, the focus trap mechanism will
not work properly.

**After this commit**
It works as intended.

Part-of: odoo/odoo#140885
2023-11-04 16:38:53 +00:00
Romain Estievenart eb399b5251 [FIX] website: Missing border-0 on AutoCompleteWithPages container
There is a visual "glitch" in the website builder, there is a 2px white
bar (2x1px border) at the bottom of the screen in edit mode.

Steps to reproduce:

* Enter edit mode on a page
* Drag & drop a few snippets to have a scrollbar
  => The bottom white bar appears

closes odoo/odoo#140979

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2023-11-04 12:21:46 +00:00
Romain Estievenart 969e83c2b3 [FIX] website: AutoCompleteWithPages doesn't work correctly on Safari.
Since we remove jQuery UI[1], the owl component `AutoCompleteWithPages`
doesn't work correctly on Safari.

When we clicked on the `AutoCompleteWithPages` input the code in the
`AutoComplete` component `onFocus` make a selection on the input of the
`AutoComplete` component and not on the `AutoCompleteWithPages` input
this make a unwanted effect such as blur the clicked input and focus
the other input. This commit fixes that.

Steps to reproduce:

* With Safari, open the `Website` app
* Click on `Site` > `Edit Menu` > `Add Menu Item`
* You can't type in the url field and if you spam click on its.
  Sometimes, it produces a browser crashes

Links

[1]: https://github.com/odoo/odoo/commit/99f5ae32d3ee4a3dcc75e31ad0a88f42d6ce3589

Part-of: odoo/odoo#140979
2023-11-04 12:21:46 +00:00
Rahul Prajapati 45488b9277 [FIX] im_livechat: rating messages in livechat sessions demo data
Before this commit:

Message type of rating messages for Livechat Session in demo data was not set,
which led it to set default type `email`.
Which would lead to display the `Show/hide original email` button.

After this commit:

Set `message_type` as `notification`.

task-3502745

closes odoo/odoo#140975

X-original-commit: 1b33e019ba7cf9b1dc272a0fedc1b8534b9e8867
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-11-04 11:17:00 +00:00
Romeo Fragomeli f8005bddc7 [FIX] web: fix back/clear buttons in modal for small screen
This commit forces the color of all buttons in the header to have a
better-look consistency.

Steps to reproduce:
* Open Odoo on small screen
* Go to Sale
* Create a new SO
* Click on customer field to open the Kanban view => BUG
  the clear button is not visible (enterprise)

closes odoo/odoo#141040

Forward-port-of: #50123
X-original-commit: aa748820d06ddd84465c404ce158e882307dbda6
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
2023-11-04 09:05:40 +00:00
Kartik Chavda 05aa12bd4e [FIX] sale_timesheet: fix threshold ratio for unit
Before this commit service threshold value for 'unit'
unit of measure display (1 unit = 8.00 hours) but since
https://github.com/odoo/odoo/pull/99785 PR we take 1
unit equals to 1 hours not 8 hours.

This commit display (1 unit = 1.00 hour) to dispay proper
value according to calculation.

task-3282848

closes odoo/odoo#141039

X-original-commit: d27209ef9bc4f57a8f7401e5271915763df5eeb1
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-11-04 09:05:38 +00:00
Brieuc-brd 3a76a9326e [FIX] website: adapt offcanvas menu height on mobile
Prior to this commit, on mobile, we couldn't see the entire offcanvas
menu because the browser's UI was hidding part of it.

To fix that, this commit adapts the height of the offcanvas menu using
`dvh` unit.

task-3582657

closes odoo/odoo#141032

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-11-04 09:05:37 +00:00
Chong Wang (cwg) 7b55483e23 [FIX] core: fix typo for ormcache
fix typo in #119813 for ormcache

closes odoo/odoo#141008

X-original-commit: a242da98b533f5d6c11c68f9d973a26a47f17074
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Chong Wang (cwg) <cwg@odoo.com>
2023-11-04 09:05:36 +00:00
Maximilien (malb) 44c5c0ea35 [IMP] account_reports: composite reports
The goal of this pr is to add a tooltip to the use_sections field.

closes odoo/odoo#140973

Task: 3569038
Related: odoo/enterprise#50142
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-11-04 06:43:21 +00:00
aliya 474af642e7 [FIX] base_import: pass resIds to exit
When we're exiting the import view, we need to have ids of the imported records
to confirm that the import was successful and to filter on import records if
needed.
This commit adds an optional resIds parameter.

task-3549609

closes odoo/odoo#140969

X-original-commit: bb968c5e197e37c0391209420655a777821aa3f1
Related: odoo/enterprise#50141
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2023-11-04 06:43:20 +00:00
Mathieu Duckerts-Antoine d30729c6cb [FIX] web: condtion tree: keep expressions
Before this fix, a condition of the form (field_name, "in", expr) would
be "stringified" in such a way that expr would be wrapped in a list, e.g.
we would get by expressionFromTree the expression
field_name in [expr]
Here we prefer to keep expr as it is since we have no information on its
type at evaluation. That is we transform the above condition into
field_name in expr

closes odoo/odoo#140966

Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2023-11-04 06:43:19 +00:00
Mathieu Duckerts-Antoine 04753f4d42 [REF] web: use evaluateBooleanExpr in a test
Part-of: odoo/odoo#140966
2023-11-04 06:43:19 +00:00
jugj-odoo 604662bc48 [FIX] hr_skills: Fix CV alignement
task-3582107

closes odoo/odoo#140962

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2023-11-04 06:43:18 +00:00
Walid 9548218445 [FIX] purchase: wrong list price UoM
Steps to reproduce:
- Install Sale and Purchase and enable UoM
- Change 'Acoustic bloc screen' purchase UoM to dozen
- Create a PO for that product
- Access the product page from PO line
- Wrong Sales price

Bug:
the jsonrpc to read product data needlesslt sends the UoM in the context
which leads to the sales price being updated by _compute_product_lst_price

Fix:
remove UoM from procut context as it is not necessary

opw-3434574

closes odoo/odoo#140957

X-original-commit: fe04d61a886fa7b461ebf9bda2d7479fb69281cd
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Walid Hanniche (waha) <waha@odoo.com>
2023-11-04 06:43:17 +00:00
Bruno Boi 252b8f0b90 [FIX] web: fix overlaping overlays
**Before this commit**
Open some popover then a dialog.
The popover appears in front on the dialog.

Examples:
- Calendar > Click an event (popover opens) > Open command palette
- Open a facet domain editor dialog in any app, then open any model
  field selector popover and open the command palette

**After this commit**
Each first-level child of the overlay container
starts with the same z-index and with a value
that is greater than the higher value we can find
in the bootstrap z-index master list.
This solves the aforementioned overlaping issues.

closes odoo/odoo#140953

X-original-commit: 9682cfa174fb39ec9d9874951ea9ee2884058d96
Signed-off-by: Romain Estievenart (res) <res@odoo.com>
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2023-11-04 06:43:16 +00:00
Xavier Bol (xbo) a7d5a4b130 [FIX] web_hierarchy: detect cyclic before altering the parent field
Before this commit, the user could drag the first employee displayed
in the gantt and drop him on one of his subordinate. By doing that,
the manager of that employee will be his subordinate and a cyclic
will occur and no record will appear when the org chart will be
reloaded because no employee will have no manager set.

This commit fixes the issue by improving the cyclic detection when
the user uses the drag and drop feature. That is, the action will be
blocking when the system detects the user tries to drag and drop a manager
to one of his subordinates.

closes odoo/odoo#140951

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2023-11-04 06:43:15 +00:00
Xavier Bol (xbo) d25a81d814 [FIX] web_hierarchy,hr_org_chart: move specific changes in hr_org_chart
Before this commit, some recent changes altered the generic view for
Org Chart view of `hr.employee` model. The problem is those changes
also altered the other hierarchy view used in others models.

This commit moves the recent specific changes to hierarchy view
of `hr.employee` model to be sure to alter only the org chart view
of that model.

Part-of: odoo/odoo#140951
2023-11-04 06:43:15 +00:00
MerlinGuillaume 62f49331ba [FIX] project: add name field in project list view for order
When we add a many2many field related to Project, an error is thrown
when we add 2 or more projects

Steps to reproduce:
1. Install CRM, Project and Studio
2. Go to CRM and open any quotation
3. Trigger Studio
4. Add a many2many field related to the Project model
5. Close Studio
6. On the CRM form, click on Add a line and select 2 projects, the 2
   projects must have the same sequence (new projects will have a
   sequence of 10)
7. An error is thrown

Problem:
The "name" field used in the order of the list view for project was not
present in the view so there was an error when trying to sort the list
by this field

opw-3526101

closes odoo/odoo#140950

X-original-commit: 334e6fc41725fe0bd7e6bae8e2153c6abedc71cf
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2023-11-04 06:43:14 +00:00
vlst 2b6b003a4a [IMP] point_of_sale: add tax letter
In this commit we adjust the pos module such that, in the
corresponding enterprise commit, we can more easily add the
tax letters corresponding to each orderline in the receipt.

closes odoo/odoo#140974

Related: odoo/enterprise#50134
Signed-off-by: Robin Heinz (rhe) <rhe@odoo.com>
2023-11-04 06:43:13 +00:00
Lucas Lefèvre (lul) c503d1895d [FIX] spreadsheet: update o_spreadsheet to latest version
https://github.com/odoo/o-spreadsheet/commit/3184728ea [REL] 17.0.2
https://github.com/odoo/o-spreadsheet/commit/74e28e1c9 [FIX] evaluation: fix incorrect invalidation

closes odoo/odoo#140935

Signed-off-by: Adrien Minne (adrm) <adrm@odoo.com>
2023-11-04 06:43:11 +00:00
Gauthier Wala (gawa) 100a8c0f8f [FIX] account: activate studio when seeing invoices
To reproduce:
- Install studio and account.
- Invoicing/Accounting, menu Customer > Invoices
- Activate kanban view
- Put filter "My Invoices"
- Enter studio mode

=> There is a traceback in the logs, even if not shown in the view.

When entering studio in kanban, a card with default values is created.
The problem was that the journal wasn't computed, and so, broke
the onchange_partner_id function
It was because move_type, while being in the default, wasn't in the view,
and so wasn't in the values given by the js.

closes odoo/odoo#140927

X-original-commit: 629176269614467c637543b11fc556a63ee70c5b
Signed-off-by: William André (wan) <wan@odoo.com>
2023-11-04 06:43:10 +00:00
roen-odoo 7ee59307ff [FIX] pos_restaurant: make sure tip amount is formatted correctly
Current behavior:
When the user language uses a different decimal separator than the
"." (dot), the tip amount is not formatted correctly and the amount is
incorrect. e.g. 1.5 is interpreted as 15.0

Steps to reproduce:
- Change the current language decimal separator to "," (comma) and
  thousand separator to "." (dot)
- Open restaurant (make sure tip after payment is enabled)
- Add a product to the order
- Pay by bank
- Click on tip 20%
- The tip amount is incorrect (too high)

opw-3525033

closes odoo/odoo#140926

X-original-commit: f0cd80fbb55e0f234800c6be4696ff8e1533978b
Signed-off-by: Vlad Stroia (vlst) <vlst@odoo.com>
Signed-off-by: Robin Engels (roen) <roen@odoo.com>
2023-11-04 06:43:09 +00:00
Manushi Shah (mash) 62eeabaa43 [FIX] hr_timesheet: prevent name overflow in portal view
Steps:
- Open Settings > Users
- Change the name of the user by typing it multiple times
- Go to the portal view of the website
- Among the Documents select Task > select a task where our user is set as an
employee

Issue:
- When that particular task is chosen, under the Timesheets, the name is found
repeatedly in the table.

Cause:
- The text is not truncated due to which the name overflows.

Fix:
- adding a class 'o_portal_my_doc_table' in the table which helps to truncate
the text

closes odoo/odoo#140922

Task: 3383519
X-original-commit: b7952e2cf649584906ddab57386b711e06de9ba2
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-11-04 06:43:08 +00:00
Lina (liew) 3eba3484f3 [IMP] iap: redirect to view my services
Description of the issue/feature this PR addresses:
The "View My Services" button of the widget should open
the IAP accounts tree view, just as the main "View My Services"
button of the general settings.

Current behavior before PR:
View my services widget redirected to iap website

Desired behavior after PR is merged:
Updated the widget to redirect to tree view of services

task-3580190

closes odoo/odoo#140904

Signed-off-by: Louis Baudoux (lba) <lba@odoo.com>
2023-11-04 06:43:06 +00:00
Xavier Morel 2143ae7a9f [IMP] core: skip on marking tour as failed if it's already failed
If the web client gets into a bad state and piles on errors (or
exceptions) this leads to a mess with hundreds of kilobytes of
warnings being logged as we try to set an already failed tour to
failed (and also take screenshots), as in
http://runbot142.odoo.com/runbot/static/build/53098209-master/logs/test_only.txt

Also update `has_failure` to directly depend on an exception being
set, as that should be a more reliable indicator. And much like the
case of an error log skip trying to set the tour to failed in
`_set_exception` if it's already failed. Although in that case do log
the traceback as an `error`.

closes odoo/odoo#140879

X-original-commit: 96c501036a6dcb216e82e0dfa42b59a9b917d742
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2023-11-04 05:35:42 +00:00
Maximilien (malb) 3bc350a0e0 [IMP] account: swap date and invoice_date
We currently have two date fields, "date" and "invoice_date". Before this pr,
the "date" column was before the "invoice_date" field. We think it's more
logical to have "invoice_date" before the other, since it's the legal date.

What has been done:
- Swap in the tree view the two columns
- Swap in the search view the two columns

closes odoo/odoo#140878

Related: odoo/enterprise#50107
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-11-04 05:35:40 +00:00
David Monnom (moda) 1da277f692 [FIX] pos_self_order: decode url when generating image qr code
decode url when generating image qr code

closes odoo/odoo#140870

Related: odoo/enterprise#50102
Signed-off-by: David Monnom (moda) <moda@odoo.com>
2023-11-04 05:35:38 +00:00
David Monnom (moda) cf699b7f64 [IMP] pos_restaurant: add compo demo data
Add a combo menu in demo data

Part-of: odoo/odoo#140870
2023-11-04 05:35:38 +00:00
David Monnom (moda) e3e9ca1933 [IMP] pos_self_order: improve self with large-test feedback
- Add loading when rpc in progress.
- Auto focus input search when button clicked

Part-of: odoo/odoo#140870
2023-11-04 05:35:38 +00:00
Ritika Rathore 2b2d0e8b7e [FIX] web: fix color alignment in the kanban view
Steps:
- Install Field Service
- Open the Field Service module
- Click on the configuration
- Go to the Worksheet Template
- Now go to the kanban view
- In view, Click on dropdown menu of any card

Issue:
- In kanban view, when we are viewing in dropdown menu colors are not correctly
 centered.

Fix:
- Added in kanban color picker mb-0 & ms-2 for margin space from bottom & left.

Task-3508241

closes odoo/odoo#140807

X-original-commit: 97e90710f5f2e300131df442bba833a5e7ece29e
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-11-04 04:29:35 +00:00
Julien Carion (juca) 04a67936d5 [FIX] web: add shortcut to cog menu
This commit adds the "alt+u" shortcut to open the cog menu in order
to match with the behavior of the actions menu.

task-3560446

closes odoo/odoo#140798

X-original-commit: fbf245cb81453e1fedbfd4649a8284546da44ffb
Related: odoo/enterprise#50074
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
2023-11-04 04:29:34 +00:00
Sébastien Theys 221b11e7ac [FIX] mail: lazy load message out of focus sound
There is no reason to load this sound until it should be played.

closes odoo/odoo#140900

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-11-04 03:25:48 +00:00
Loukas Wets (lowe) df53cf7fd0 [FIX] pos, pos_restaurant: patched order setup signature
Prior to this commit, the patched setup functions of Order did not match
the original signature.

closes odoo/odoo#140893

Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
2023-11-04 03:25:46 +00:00