Commit Graph
153080 Commits
Author SHA1 Message Date
Noe Antoine b13e822b67 [IMP] survey: allow live session participant identification
In the participation screen (user_input tree view), the users can
see the email and contact name of the participants. However, this
is fixed. Those will be empty for live session participants.

Therefore, make those optional but show them as default. Also add
the nickname field in the view before them, not shown by default
but optional, in order to be able to see nicknames for live session
and identify the participants.

Task-2928143

closes odoo/odoo#97902

Signed-off-by: David Beguin (dbe) <dbe@odoo.com>
2022-08-17 19:48:24 +02:00
Guillaume (gdi) caf1ca67e9 [FIX] website: permit to open the image wall modal correctly
Since the bootstrap 5 merge at [1], when you click on an image in the
Image Wall block, the modal no longer opens. This commit restores that
and adds a test to make sure this problem does not happen again.

Steps to reproduce:
- Drop the "Image wall" block in a page
- Save
- Click on an image
-> The modal does not open

[1]: https://github.com/odoo/odoo/commit/971e5a91aab96d36129a823e03f1f9f1b1293968

task-2937538

closes odoo/odoo#97053

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-08-17 19:48:21 +02:00
Benjamin Vray 6bfca9f714 [IMP] web_editor: adds a remove button next to the shape selector
This commit aims to make it easier to remove a shape over a background
image.

Before this commit, we could only remove a shape by clicking on the
"shape" button in the background options (it was not easy to find
quickly), but with this commit we can now also remove it thanks to a
"remove" button that has been added next to the shape selector.

task-2827802

closes odoo/odoo#96788

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-08-17 19:48:18 +02:00
Rahul Prajapati 4123505efa [IMP] *: have replace as default command on update
* im_livechat, mail, snailmail, website_livechat

PURPOSE:

A `replace` command should be default while updating a field.

SPECIFICATION:

- If no command is passed while updating a field, add a `replace` command as
default.
- Remove all the existing occurrences of `replace` command.

Task-2851488

closes odoo/odoo#95885

Related: odoo/enterprise#30494
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-08-17 19:48:11 +02:00
Camille Spiritus 7035b8ba72 [FIX] random crash occuring during the populate
In this specific branch, populating the DB would systematically create a disbalanced move (id 835, balance -70.0)

This seems to be linked to the balance being equal to 0, and therefore considered faulty in the get_lines function.

We're still not aware of the wizardry explaining why it would happen specifically on this branch, but this should avoid this problem repeating.

closes odoo/odoo#94050

Related: odoo/enterprise#28607
Signed-off-by: Laurent Smet <las@odoo.com>
2022-08-17 19:48:08 +02:00
Camille Spiritus 7482aff6d7 [IMP] account: cash discount improvements
Purpose :
Improve multiple use cases while handling the Accounting part of Cash Discounts in Odoo.

When creating a Payment Term, the user can now specifically design an early payment discount through an additional part in the wizard.
This will, amongst other things, allow the user to choose in which way the tax should be computed on the discounted invoice (tax included/excluded).

The discounted amount and the conditions to fulfill are printed below the invoice PDF, as well as the details.

Registering a payment while filling the condition for an early payment discount will prefill the fields accordingly.

Reconciliation --> In the reconciliation widget, the logic of Early Payments Discounts are also applied.

Related : odoo/enterprise#28607
Task:2729038

Part-of: odoo/odoo#94050
2022-08-17 19:48:08 +02:00
Odoo's Mergebot 5060204e49 [MERGE][IMP] survey: implement a tour & revamp onboarding data
PURPOSE

This commit improves the accessibility of the survey samples when no records
are shown, revamps the onboarding data, slightly modifies the integration
of test surveys and related filters, and adds a tour that is started when the survey
module is installed

SPECS

1. Remove the modal used to show the samples and show them on the empty screen
	instead.

When no survey exists, the user gets the proposition of trying survey samples.
Previously, the user had to click on a button to open a modal showing the
different samples. Now, the samples are shown in the empty screen directly.

2. Revamp sample surveys data

Considering this is the data wa want to push forward, it needs to be as
relevant as possible while being "light" for the db.

3. Consider completed test surveys as completed surveys

Most people expect to see the test the just did counted in the completed
surveys counter in the survey view. The filter excluding the tests surveys has
therefore also been removed from the participation view.

4. Rename the filters related to the test surveys

"Tests Only" and "Exclude Tests" are more straight to the point than
"Test Entries" and "Exclude Test Entries".

5. Implementation of the tour

The tour suggests to the user to try and test a sample survey, and shows how
to check the results gathered for this survey.

6. Changed the target of the "test" button to "self"

Since the test action is used during the tour, the test page needs to be opened
in the same tab so that the tour can continue.

7. Added ids to some elements

These ids are used by the tour to identify which element is the current target
of the tour.

Task-2794884

closes odoo/odoo#87326

Related: odoo/enterprise#26661
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-08-17 19:47:59 +02:00
Adrien Schoffeniels 34c98e999d [IMP] survey: implement a tour
PURPOSE:

This commit adds a tour that is started when the survey module is
installed, and makes small changes to be able to implement the tour.

SPECS

-Implementation of the tour:
The tour suggests to the user to try and test a sample survey, and shows how
to check the results gathered for this survey.

-Changed the target of the "test" button to "self":
Since the test action is used during the tour, the test page needs to be opened
in the same tab so that the tour can continue.

Task-2794884

Part-of: odoo/odoo#87326
2022-08-17 19:47:59 +02:00
Adrien Schoffeniels 24e8e3adc3 [IMP] survey: revamp onboarding data & test surveys integration
PURPOSE:

This commit revamps the onboarding data and slightly modifies the integration
of test surveys and related filters.

SPECS

- Revamp sample surveys data:
Considering this is the data we want to push forward, it needs to be as
relevant as possible while being "light" for the db.

- Consider completed test surveys as completed surveys:
Most people expect to see the test the just did counted in the completed
surveys counter in the survey view. The filter excluding the tests surveys has
therefore also been removed from the participation view.

- Rename the filters related to the test surveys:
"Tests Only" and "Exclude Tests" are more straight to the point than
"Test Entries" and "Exclude Test Entries".

- Rename "answer(s)(ed)" at some locations:
"answer" and its various forms are used too often, which sometimes makes it
hard to understand who is who. Therefore, we replaced some of them with
synonyms.

- Set "one page per question" as the default layout. Added the "one_page"
layout in some tests for which the layout was not set.

Task-2794884

Part-of: odoo/odoo#87326
2022-08-17 19:47:58 +02:00
Adrien Schoffeniels d981d7efc1 [IMP] survey: improve survey samples accessibility
PURPOSE:

This commit improves the accessibility of the survey samples when no records
are shown.

SPECS

Remove the modal used to show the samples and show them on the empty screen
instead.

When no survey exists, the user gets the proposition of trying survey samples.
Previously, the user had to click on a button to open a modal showing the
different samples. Now, the samples are shown in the empty screen directly.

If the user does not have the rights to create surveys, the "Try It" buttons
are removed from the NoContentHelper.

Task-2794884

Part-of: odoo/odoo#87326
2022-08-17 19:47:58 +02:00
Kevin Baptiste d3b9f2c443 [IMP] hr: properly show images on kanban/form
The avatars were not properly shown anymore on kanban and form views.

closes odoo/odoo#98264

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-08-17 18:38:08 +02:00
Antoine Vandevenne (anv) d104ef0a50 [FIX] payment: move _build_url to the test class that supports it
Calling `_build_url` for a test class that only inherited from
`PaymentCommon` would raise an error, as the method depends on the
`HttpCase` test class that is only inherited by `PaymentHttpCommon`.

closes odoo/odoo#95860

Related: odoo/documentation#2532
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-08-17 17:20:50 +02:00
Laura Schauer 5ac27efc72 [ADD] payment_aps: add Amazon Payment Services
See README for technical details.

task-2802678

Part-of: odoo/odoo#95860
2022-08-17 17:20:49 +02:00
David Monjoie 4b31c2f065 [FIX] mass_mailing: update showcase snippet to bs5
closes odoo/odoo#98247

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-08-17 12:45:17 +02:00
Benjamin Vrayandqsm-odoo a2a71ae2a1 [FIX] website: fix logo options not displayed if text logo
Before this commit, the logo options (type, height, height scrolled)
were not displayed if the logo type was "Text".

After this commit, these options are moved to the navbar section so that
they are always displayed if the logo is "Text" or "Image". And if the
logo type is "None" only the logo type selector is displayed. Just like
it was in 14.0.

task-2800680

closes odoo/odoo#98229

X-original-commit: cddf06da77cb7be2219f2f539d13a90ca53d9178
Related: odoo/upgrade#3781
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2022-08-17 12:45:05 +02:00
Julien Castiauxandypn 6819f2b0d2 [FIX] base: loading the public user avatar
Prior to saas-15.4, access /web/content/res.users/4/image_128 without
being logged in, there was an internal server error because you cannot
access the public user (id=4) image.

The saas-15.4 branch is unaffected by the bug but it is a good idea to
forward-port the test that was next to the fix merged in prior versions.

Closes #94258

closes odoo/odoo#98201

X-original-commit: 4deb7e373e046844d997ddc0a11999cc12b765d8
Signed-off-by: Julien Castiaux <juc@odoo.com>
Co-authored-by: ypn <ypnwebdev@gmail.com>
2022-08-17 12:44:58 +02:00
xO-Tx 4b79788889 [FIX] website: fix page properties auto save
Issue:

1- Go to page properties > change the URL of a page.
2- A list of dependencies appears on a popover.
3- Click on a dependency > you are redirected to the related object
but the URL change for your page was "saved".

The changes on form views are automatically saved when the view is left
using a "beforeunload" handler.

The goal of this commit is to fix this behaviour by making website page
dependency links "_blank".

task-2687506

closes odoo/odoo#98180

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-08-17 12:44:55 +02:00
xO-Tx 575c0f9646 [IMP] web, *: update page properties dialog size
*: website

The goal of this commit is to tweak props on 'FormViewDialog' component
to be able to change dialog size (since 'props.size' is already used
by its 'Dialog' sub component).

Follows the merge of the "website in backend" task at [1].

[1]: 31cc10b

task-2687506

Part-of: odoo/odoo#98180
2022-08-17 12:44:55 +02:00
xO-Tx 74ab655253 [FIX] website: adapt page dependencies to BS5
The goal of this commit is to fix website page dependency popover by
adapting its template to BS5.

task-2687506

Part-of: odoo/odoo#98180
2022-08-17 12:44:54 +02:00
Samuel Degueldre fb6834b7bb [FIX] web: fix kanban record content not taking entire width
As we recently changed the structure of the DOM to wrap the content of
kanban card inside of kanban record instead of using the same div, some
of the rules were not properly applied. In fixing a previous bug, the
content was no longer taking up the entire width of the card. This
commit fixes that.

closes odoo/odoo#98235

Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2022-08-17 11:21:53 +02:00
Xavier-Do 421d500842 [FIX] profiler: manage frame without lineno
In some case the frame may have a filename and corresponding file but
no lineno. This may lead to an error

File ".../odoo/tools/profiler.py", line 571, in _add_file_lines
    line = filelines[lineno - 1]
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

This commit simply fixes this by skipping the logic if we have no lineno.

closes odoo/odoo#98217

X-original-commit: 44715af97413da3608e99f211c361a498f25d964
Signed-off-by: Raphael Collet <rco@odoo.com>
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2022-08-17 11:21:50 +02:00
William Braeckman 2656bcf55d [FIX] website_sale_wishlist: fix undeterministic error in tour
This commit attempts to fix an undeterministic error during one of
`website_sale_wishlist` tests.
Due to a race condition it may happen that the button to add to the
wishlist would be re enabled while it should be disabled (if the product
is already in the wishlist) causing the tour to fail.

closes odoo/odoo#98206

X-original-commit: e10f50e6eb3b825113058d29ae79c7aeafd94a55
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-08-17 11:21:47 +02:00
Sébastien Theys 60c87dd426 [IMP] mail, *: introduce identifyingMode and remove identifyingFields
* = calendar, hr, im_livechat, rating, snailmail, website_livechat

This simplifies definition and overrides and opens up new identification
opportunities.

Part of task-2741982

closes odoo/odoo#98166

Related: odoo/enterprise#30470
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-08-17 11:21:40 +02:00
Guillaume (guva) 62520fbefe [FIX] account: payment method for different payment types
This commit fix a bug noticed when fixing this other
one in v15 https://github.com/odoo/odoo/pull/93943.

We notice that, in addition to not set correctly
the payment type, the payment method was wrong too.

With this commit, when creating payments from batch,
we check for each payment if its type is the same
as the one set on the wizard. If not (which means
that there are payments of differents types), we set
the payment method regarding the payment type.

opw-2852186

closes odoo/odoo#98153

X-original-commit: af1fab8dab141c49d98b431a40a5ce98f2f3249c
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
2022-08-17 11:21:34 +02:00
Mathieu Duckerts-Antoine a41bec89e9 [FIX] web: X2ManyFieldDialog style
X2ManyFieldDialogs with no sheets were badly styled since the rewriting
of the form view in OWL (see https://github.com/odoo/odoo/commit/48ef812a635f70571b395f82).
For instance paddings were not set and this would make the dialog content
touch its borders. We fix that.

closes odoo/odoo#98072

Related: odoo/enterprise#30411
Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-08-17 11:21:28 +02:00
Mathieu Duckerts-Antoine e67803f35e [FIX] web: oe_inline class
Since https://github.com/odoo/odoo/commit/48ef812a635f70571b395f82, a field always has a div
as root element and that div receives the class oe_inline instead of
some of its child. This breaks some css rules. Here we restore that rules.

Part-of: odoo/odoo#98072
2022-08-17 11:21:27 +02:00
Mathieu Duckerts-Antoine 64aa8dd3b0 [FIX] web: stat button string in a span
With only the module appointment installed, go to Calendar App,
Online Appointments and click on "Create". In the form view displayed a
stat button "Customer Preview" is visible but is badly styled. This is
due to the fact that "Customer Preview" is no longer wrap by a span since
the rewriting of the form view (see odoo/odoo@48ef812a63).
We fix the problem by making the default slot content of ViewButton be a
span wrapping the prop string (if any).

Part-of: odoo/odoo#98072
2022-08-17 11:21:27 +02:00
Mathieu Duckerts-Antoine 223b9e998c [FIX] web: search panel style
The search panel style has been recently refactored (mostly simplified)
in https://github.com/odoo/odoo/commit/b3990e7d13a412693752a9d13d5a0f8affff918b, and some css rules specifying the cursor style were lost.
We reintroduce (finer) rules to set the cursor value appropriately.

Part-of: odoo/odoo#98072
2022-08-17 11:21:27 +02:00
William Braeckman b274cf2427 [IMP] website_sale: unify product page editor configuration
By adding features to the web editor for the product page we only
increased the amount of possible categories we might have for our page.
This commit unifies all of those categories into a single one that is
enabled for the editor on the whole page.

TaskId-2925690

closes odoo/odoo#97917

Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-08-17 11:21:19 +02:00
Abdelouahab (abla) 0a101226f9 [FIX] account : remove QR code method for credit note
To reproduce
============

Enable "Qr Codes" under Accounting Settinsgs > Create Invoice > set "Payment QR-code" method (tab "More Info")
> issue Credit Note > try to "Send and Print" credit note > Error:

` The chosen QR-code type is not eligible for this invoice. `

Specification
=============

Generating QR code on Credit Note doesn't make sense, so the field `qr_code_method` is set to `False`
when creating a Credit Note.

opw-2900112

closes odoo/odoo#97889

X-original-commit: cdc564d8b31d7691bb1a6faaef940bc5fd3eb8f0
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: abla001 <abla@odoo.com>
2022-08-17 11:21:16 +02:00
Julien Mougenot 27701b5cf7 [FIX] web: update and keep view props after switching/restoring
There were 2 problems before this commit:

1. When switching view and coming back from the breadcrumbs: the
previous view props (such as the pager props) were lost;

2. When paging to the next record, switching view and coming back from
the breadcrumb, the view was reverted to the first selected record,
effectively ignoring the paging step.

This commit fixes both of these issues by keeping the controller's
props during a "restore" action, and by also updating the current
controller's props when using the pager.

closes odoo/odoo#97395

Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-08-17 11:21:12 +02:00
luvi c94e38ca16 [FIX] web: ImageField style
This commit fixes the style of the field broken
since the introduction of the "display: contents"
rule in css.

closes odoo/odoo#97906

Related: odoo/enterprise#30073
Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-08-17 11:21:08 +02:00
Nikunj Ladava c8cdd6f5a3 [IMP] mail,sms: reset template button
Before Commit :
- Sometimes user breaks their Mail/SMS templates and have no way to go back to the
original one easily. They don't have any option to reset the template.

After Commit :
- Added new "Reset Template" button
- now user can reset the Mail/SMS template to its first version.
- also it will update the translation of the template
- added New "Reset Mail Templates/Reset SMS Templates" action to edit multiple templates

task- 2231977

closes odoo/odoo#83759

Related: odoo/upgrade#3674
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-08-17 11:20:56 +02:00
Julien Van Roy 6285b69281 [IMP] account_edi: remove dead function _is_account_edi_ubl_cii_available
This function was used to check the presence of the new module
`account_edi_ubl_cii`. The purpose was to use this module to render the xmls
for the existing modules: l10n_be_edi, l10n_no_edi, l10n_nl_edi... which used
outdated qweb templates (see https://github.com/odoo/odoo/commit/72c4972efd3f31bd86d100f160a530cc70400617).

After version saas-15.4, these old modules were removed and `account_edi_ubl_cii`
is used instead. Thus, `_is_account_edi_ubl_cii_available` is no longer used.

closes odoo/odoo#98208

Signed-off-by: Laurent Smet <las@odoo.com>
2022-08-17 10:03:02 +02:00
luvi 731a85f80e [FIX] web, product: BooleanField style
The field style was broken in form views since it
uses the display: contents rule. This commit
fixes the style of the field as it is now correctly
displayed inline.

It also changes the css selector to set the
style appropriately inside product views.

closes odoo/odoo#98185

Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-08-17 10:02:59 +02:00
Achraf (abz) ecc4db1944 [FIX] web: format correctly aggregate values in grouped list views
Steps:
  - Go to Employees/Reporting/skills

The first group has a Level Progress of `0.84444` which is not a valid
percentage, it should be `84.44%`

This fix calls the correct format function to display correctly the
aggregate values depending on their widget or type instead of just
displaying the raw aggregate value.

(https://pad.odoo.com/p/wowl_views:
[GMF] Employee : Skills report, group sum should be % https://tinyurl.com/262ec37z)

closes odoo/odoo#98207

Signed-off-by: FrancoisGe <fge@odoo.com>
2022-08-16 20:47:01 +02:00
Louis Wicket (wil) e8681d7440 [IMP] mail: remove useless memberThreads field on Partner
closes odoo/odoo#98191

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-08-16 17:50:07 +02:00
Alexandre Kühn f2d3a5bbd4 [IMP] im_livechat, *: remove Promise.reject in LivechatButton
*: website_livechat

closes odoo/odoo#98160

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-08-16 17:50:03 +02:00
Antoine Guenet 737479b25b [ADD] web_editor, website: commands to convert text into columns
This adds commands to convert the current text into 2, 3 or 4 columns,
and to remove said columns.

task-2901585

closes odoo/odoo#95359

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-08-16 17:49:58 +02:00
Tom De Caluwé 8c534f8724 [IMP] website: add languages field in the website creation modal
Allow the user to select multiple languages in the website creation modal.

task-2745347

closes odoo/odoo#86541

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-08-16 17:49:46 +02:00
Samuel Degueldre 73ec881535 [FIX] web: fix layout of kanban record and vignette
With the new kanban view, we have altered the structure of the DOM
slightly, and the kanban record is now a wrapper around the kanban
vignette. To restore the previous layout, some css rules need to apply
to the vignette. This commit adds those rules.

closes odoo/odoo#98188

Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-08-16 16:28:48 +02:00
Julien Van Roy eadf2a709e [FIX] account: product category - limit income/expense accounts
For the product categories, the default income and expense accounts
should only contain the income/expense accounts.
Such that the dropdown menu in the product view only lists the possible
income or expense accounts.

task-2835541

closes odoo/odoo#98184

X-original-commit: 526f44f3d1c5eaa0484ca96e491b7746d384522b
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
2022-08-16 16:28:45 +02:00
Romain Derie febc059807 [FIX] website_slides: fix typo on method call
Since [1], the call to the method was missing the `()`, thus always
being truthy.

[1]: https://github.com/odoo/odoo/commit/e42ee496f89a830c938a20389a9fc645dfbf96c8

closes odoo/odoo#98179

X-original-commit: 0ef2509d321423f8f8616790352b32da51c289ae
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-08-16 16:28:42 +02:00
Yannick Tivisse 3255f21ea8 [IMP] sale_expense: Add stat button from expense sheet to linked SO
Purpose
=======

Make it easier to navigate between an expense report and the sales orders it impacted.

closes odoo/odoo#98169

Taskid: 2948615
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-08-16 16:28:38 +02:00
Louis Wicket (wil) 83b307bb0e [IMP] mail, im_livechat: remove useless guards
Remove useless guards introduced in odoo/odoo#97996.

closes odoo/odoo#98147

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-08-16 16:28:35 +02:00
Lucas Perais 8ff00133a5 [FIX] web: settings: label with string taken into account
Inside a res.config.settings form view have a label with a string on it placed
before the field it is linked to.
i.e.:
```
<label for="myField" string="myString" />
<field name="myField" />
````

Before this commit, the string was not taken into account to build the HTML label.

After this commit, it is.

closes odoo/odoo#98109

Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-08-16 16:28:25 +02:00
Ahmed Khalaf (ahkh) 8b8eca55c6 [FIX] stock_picking_batch: add picks to batch
When adding list of transfers to batch from transfer tree view,
if transfers belong to two or more batches an error traceback pops.

To reproduce:

1-Create Transfer 1, go to Transfer list view and add it to batch under Action, choose
add to a new batch transfer and confirm.
2-Create Transfer 2 and do the same.
3-Now that we have two transfer belonging to two different batches,
Under Inventory->Operations->Transfers, select the two transfers
in the tree view and choose add to batch under Action, choose add to new batch
and confirm, error popsup

Bug originated from: #89815
Discovered while working on TaskId:2871679

closes odoo/odoo#97998

X-original-commit: 82580b0ba9dbbfb244ede233a251b059e2c233ba
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Ahmed Khalaf  <ahkh@odoo.com>
2022-08-16 16:28:22 +02:00
Ahmed Khalaf (ahkh) af6afc8053 [IMP] stock_picking_batch: remove ensure_one in action_cancel
This commit removes a needless `ensure_one` in batch `action_cancel`

X-original-commit: cf6013fff67441f67800df56349877c820873110
Part-of: odoo/odoo#97998
2022-08-16 16:28:22 +02:00
luvi a818a9b732 [FIX] web: ColorPickerField behavior/style
This commit fixes the recently converted color_picker field
widget. It is now always opened in a list as in legacy,
no longer togglable and many style issues have been fixed.

In form views, we still toggle the opened state because
always edit is coming and it would bloat the UI to
keep it always open.

Tests has been added/modified to assert those desired
behaviors.

closes odoo/odoo#97872

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2022-08-16 16:28:17 +02:00
Lucas Perais d9257d3aae [FIX] web: core: domain supports domain as tuples
Have a domain declared somewhere in the XML as:
`("&", ("field", "=", "value"), ("field2", "=", "value2"))`

Before this commit, that expression made the Domain algorithm crash, because tuples
were not allowed.

After this commit, only tuples containing at least one other tuple and some optional strings are accepted.

closes odoo/odoo#97850

Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-08-16 16:28:14 +02:00