Commit Graph
152128 Commits
Author SHA1 Message Date
Martin Trigaux d3cc71db72 [FIX] auth_totp: remove outdated trusted devices
The trusted devices are valid for maximum 90 days (TRUSTED_DEVICE_AGE).
No need to keep them in the list of trusted device, it may even be
confusing.

closes odoo/odoo#95796

X-original-commit: 49130e60a3c43fa3df0adddbd3359e437f5bc0b2
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-07-12 06:21:03 +02:00
afmipy d190a2b48e [CLA] afmipy
closes odoo/odoo#95779

X-original-commit: 3747a32878515c3ded82194574cfaea1a4d1831a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-07-12 06:21:00 +02:00
Jeremy Kersten 8a18d7a20f [IMP] website_sale_autocomplete: don't search if less than 5 char
In case of error (wrong whitelisted ip e.g.), the error was not visible.
Now we log it in odoo-log.

Add arbitrary limit of 5 char before to make api call
(limit: 'Rue X', 'Street', ...)

Hide suggested dropdown if less than 5 chars or no results (in case of
error, results are empty and so dropdown not with class 'show')

task-2806842 (partially)

closes odoo/odoo#95773

X-original-commit: 387d19208fc97259c5786c5098c02ccc248c53ae
Signed-off-by: Jérémy Kersten <jke@odoo.com>
2022-07-12 06:20:57 +02:00
Ipsita Borisagar 3fe33487e1 [FIX] im_livechat: disable attachment upload via drag and drop
Before this commit:

Attachments are not properly supported in livechat, so there is no point in
allowing attachments to be uploaded via drag and drop.

After this commit:

Disable attachment upload via drag and drop in livechat channels.

Task-2824502

closes odoo/odoo#95761

X-original-commit: 1aed05eb1c50ee69b974a140b3080e38c802cb2f
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-07-12 06:20:51 +02:00
alt-odoo a6ca15fa9d [FIX] hr_gamification: grant badge to employee of another company
This is a side-effect of commit [1].

Consider we have access to companies A and B, and current active company
is A. Before the mentioned commit we were able to grand a badge to an
employee in company B. We should keep that behavior, as long as the
current user have also access to company B.

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

closes odoo/odoo#95757

X-original-commit: 9590b910ccaf92d0466b27ce3c4dda3c567f8676
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-07-12 06:20:45 +02:00
FrancoisGe 1f4e583ba2 [FIX] web: CP lose init seach value
Before this commit, in the HomeMenu, typing several characters very
quickly could result in some not being present in the command palette
when it was opened.

Exemple:
In the HomeMenu,if I type "a" "b" "c" quickly the command palette will
open with the search value "/a" or "/ac". So we have lost the second
and/or third character.

Why:
All characters typed between the first and the moment the command pallet
is not yet mounted are lost because the search bar of the command pallet
is not yet available.

Solution:
If you use openPalette and the command palette is already open.
The configuration of the command pallet will be overwritten by the one
given to openPalette.
In our case, we can pass new configurations with the correct searchValue
until the command palette is returned.

closes odoo/odoo#95492

Task-id: 2906623
Related: odoo/enterprise#29230
Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-07-12 04:21:33 +02:00
Laura Schauer 2ee4251d07 [IMP] payment(_adyen, _authorize): disable tokens of disabled acquirers
Before this commit, zombie payment tokens (= tokens linked to disabled
acquirers) could still
1) be used by internal users and
2) reactivated when the acquirer’s state changed to ‘test’ or ‘enabled’.
This is not desirable because zombie tokens should neither be used,
nor reactivated.

After this commit, all tokens related to an acquirer are unassigned
from linked documents and archived as soon as the acquirer’s state is
changed to ‘disabled’. Creating a payment with an archived token is
prohibited. In addition, archived tokens cannot be un-archived anymore.

task-2649806

closes odoo/odoo#93774

Related: odoo/enterprise#28661
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-12 03:09:44 +02:00
Xavier BOL (xbo) 2432b4a490 [IMP] project_purchase: allow user to add new purchase order
Before this commit, when the user is in the project update kanban view
and click on Purchase Order row shown in Project Profitability section
in the right side panel, the user cannot create or edit a purchase order
because the AA on each purchase order line is used to link those
purchase orders to the project.

This commit adds the project and also `project_update` key in the
context to use them keys to set the AA on new Purchase Order Line by
default.

task-2861207

closes odoo/odoo#95721

Related: odoo/enterprise#29304
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-07-12 01:29:25 +02:00
Xavier BOL (xbo) c227ff755a [IMP] project: update contextValue for components in right side panel
This commit directly add the `default_project_id` key in the
`ProjectRightSidePanelComponent` component to get it in all components
which extends on the that component.

task-2861207

Part-of: odoo/odoo#95721
2022-07-12 01:29:24 +02:00
Denis Ledoux d369929d60 [IMP] mrp: convert unbuild uom and locations onchanges
This allows to create a mrp.unbuild record without
the need to call the onchanges to set the uom and locations
or to set them manually during the `create` call.

For instance, this makes easier to create unbuild orders
using XMLRPC when you do not use multiple UOMs or multiple locations.

closes odoo/odoo#95557

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-07-12 01:29:20 +02:00
Miquel Raïch 02c541a73b [FIX] delivery: assure stock user can validate pickings
Steps to reproduce:

- Delivery module is installed.
- User_1 is stock_manager and sale_manager.
- User_1 creates sale_order with set carrier_id and confirms it
  (Automatically is created a picking P).
- User_2 is stock user/manager but in sale is "Own documents only".
- User_2 open picking P and validates it.
  => Error: cannot validate due to access rules.

closes odoo/odoo#94684

X-original-commit: 465bb47b89e34609b34a647a5a4ba4db8a0ffc8a
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2022-07-11 23:43:41 +02:00
Hubert Van de Walle (huvw) 9392129e96 [FIX] mail: update record after activity edit
Steps to follow:

  - Go to a crm.lead
  - Schedule an activity
  - Click on edit
  - Click on mark as done in the popup
  - Move the lead to a new stage
  -> A missing record error is displayed for the activity

Cause of the issue:

  Once the activity has been mark as done (deleted),
  The crm.lead record is not updated. The old activity is then
  passed to the server where an error is thrown

Solution:

  Update the main view after editing an activity

opw-2878984

closes odoo/odoo#95748

X-original-commit: 0a740e819b7f2aa7feb527bb3223b272e4c9f967
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
2022-07-11 20:25:23 +02:00
Romeo Fragomeli 12e189bb48 [FIX] web: BS5: restore table-striped behaviour
In BS4 text color wasn't defined for `table-striped`.
In BS5 color text decorations in list views was broken because of BS5
sets the color of all `td` in a stripped table.
Now we simply override the value of the variable to inherit.

closes odoo/odoo#95746

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-07-11 20:25:20 +02:00
Xavier-Do 2c6e73a6f3 [FIX] account: avoid invisible product_uom_id
For a non well identified reason, the user doesn't have the uom group
to see the field during the test.

this commit adds the group to the user to make it visible during
the test as a simple fix.

closes odoo/odoo#95741

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-07-11 20:25:17 +02:00
Denis Ledoux 3d7c14a7e4 [IMP] mrp: fix import order in test_order.py
CI/Style
```
odoo/addons/mrp/tests/test_order.py:8
from odoo import Command, fields
C0412(ungrouped-imports) coll 0: Imports from package odoo are not grouped
```

closes odoo/odoo#95733

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-07-11 20:25:11 +02:00
Denis Ledoux 4abacd9cff [IMP] mrp: default workorder duration_expected without form/onchanges
With this revision, the expected duration is correctly set
when creating a production order with work orders without the need of
onchanges, through a form.

For instance, this allows an easier implementation to create a production
order with work orders through XMLRPC API calls,
as you will not need to manually set the expected duration value
or to call onchanges manually to set it.

For instance, without this change to remove the `default=60.0`,
the part added by this revision in the test `test_update_quantity_3`
would fail
```
2022-07-11 09:15:14,644 21 ERROR master odoo.addons.mrp.tests.test_order: FAIL: TestMrpOrder.test_update_quantity_3
Traceback (most recent call last):
  File "/home/odoo/src/odoo/master/addons/mrp/tests/test_order.py", line 347, in test_update_quantity_3
    self.assertEqual(production.workorder_ids.duration_expected, 90)
AssertionError: 60.0 != 90
```
while it just does the same thing than the existing `test_update_quantity_3` test
but without the use of a form / onchanges.

Part-of: odoo/odoo#95733
2022-07-11 20:25:11 +02:00
Romeo Fragomeli b7b4365055 [FIX] web_editor: fix media_dialog layout
Since BS5 migration [1], `form-inline` and `custom-control` classes are
no more available.

So we use `row` and `col` instead.
Also, we have unwrapped `input-group-append` has it's not more required
in BS5. [2]

Refs:
[1] odoo/odoo#95450
[2] https://getbootstrap.com/docs/5.1/migration/#forms

closes odoo/odoo#95725

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-07-11 20:25:06 +02:00
lejeune quentin 245b073659 [FIX] point_of_sale: Fix cleaning git between 2 version of iot
When iot switch between 2 version of odoo we must clean correctly the branch.

Now -dfx erases each and every file in git directory which is not part of repository.
(like drivers and interfaces)

closes odoo/odoo#95698

X-original-commit: c115f9f873c8ae46b079684ac90fcd6ab9fcadad
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-07-11 17:58:26 +02:00
Jinjiu Liu c5eb1b0274 [FIX] hr_recruitment: kanban record with long title overflow
Reproduction:
1. Install recruitment
2. Create a new job position with an extra-long title
3. Save and the title of this record is exceed the kanban card

Reason: CSS style doesn’t take account of long title

Fix:  Backported the overflow changes in V15 and added o_text_overflow
to the title of the job's kanban view, so the title does not exceed the
border of the kanban card

opw-2849601

overflow change in V15: https://github.com/odoo/odoo/commit/a0ebb4609848a65f9b6a14a94030ad3144a95038

closes odoo/odoo#95577

X-original-commit: 25d1c8cd248141aa65f310b3ef3d2d97808b1419
Signed-off-by: Liu Jinjiu (jili) <jili@odoo.com>
2022-07-11 16:40:48 +02:00
Olivier Dony 0d424c41c8 [FIX] hr_recruitment: make interviewer field tracked
The interviewer field was added by #78622, and adds access control for
`hr.applicant` based on whoever was assigned as the interviewer.

Due to the access control implications, it's useful to track the value of
this field in the applicant history.

closes odoo/odoo#95432

X-original-commit: 4b9447972009aa56ddacdba8eba4f7686537a753
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-07-11 15:02:49 +02:00
Rémy Baranx (bar) 90480ce2d1 [IMP] microsoft_calendar: get videocall URL from a Outlook event
Basically, a Outlook event may contain a videocall URL in 2 different ways:

1) the event location may be a specific URL (such as `https://teams.microsoft.com/...`).
 In this case, we use it as `videocall_location` instead of classic `location`.
We use a list of patterns to identify these specific URLs among classic locations.

2) the event may have an attribute `isOnlineMeeting` set to `True` and
the attribute `onlineMeetingUrl` set with the URL. In this case, we use
this `onlineMeetingUrl` as `videocall_location`.

opw-2601669

closes odoo/odoo#74785

Signed-off-by: Arnaud Joset <arj@odoo.com>
2022-07-11 13:48:40 +02:00
Xavier Morel ba37803064 [IMP] core: reintroduce test stats
Uses a dedicated logger (for easier filtering / silencing) for
results output, and provides rough (module-level) stats in INFO but
detailed (test-level) in DEBUG.

Also updates the global query counter (`odoo.sql_db.query_counter`) to
update after each query rather than on close: with test cursors the
actual underlying counter is only rarely flushed.

closes odoo/odoo#95420

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-07-11 09:04:51 +02:00
Mathieu Duckerts-Antoine f76205322e [FIX] web: graph,pivot: favorite groupbys
Problem:

Have a pivot view in some state. Toggle a favorite with a context in
which a key "pivot_row_groupby" is defined. The pivot view should be
grouped (on rows) by that pivot_row_groupby but it is not always the
case. The basic problem is that the key "pivot_row_groupby" is never
considered after the first load (see method load in pivot_model.js).

Solution:

We make the search model used by the pivot view send as groupby for the
favorite its pivot_row_groupby instead of its groupBy (which can be
different). We do something similar for the graph view that presents a
similar problem.

closes odoo/odoo#95688

Opw: 2837428
X-original-commit: ea9f66f99caaa6136912c467e5b80fe605586845
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-07-11 07:58:55 +02:00
William Braeckman 1741b1552e [FIX] hr_holidays: fix a bad call to relativedelta
This commit fixes a bad call to relativedelta missing a `day` key for an
argument.

closes odoo/odoo#95705

X-original-commit: b59e81b6c34e7a4e2f35cf719c811883b289ddb5
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-07-09 22:58:10 +02:00
Julien Castiaux 8eed20d6cb [FIX] core: replace empty images by placeholder
Create an empty image attachment and load it via an `<img>` html tag in
a document. Upon rendering the image is replaced by the default browser
placeholder instead of the pretty Odoo one.

closes odoo/odoo#95702

Task: 2886028
X-original-commit: 981d56f131f85d33e2415edaef36cfa501d86f0e
Signed-off-by: Julien Castiaux <juc@odoo.com>
2022-07-09 13:26:49 +02:00
Guillaume (gdi) 945991ba34 [FIX] website_twitter: update the Twitter API guide
The way to have API Key and API Secret has changed to configure a
Twitter application. The guide for this configuration is updated with
this commit.

task-2852404

closes odoo/odoo#95707

X-original-commit: 63d74f03d6cf6cf704fcf7bd6f58541b9f1e2a52
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-07-08 23:55:18 +02:00
Julien Castiaux dce5dade01 [FIX] website: missing alternate URLs for pages
Install multiple langages, each time translating the website. In a
private browsing session access /contactus, show the page source, the
multiple alternate URL (`<link rel="alternative">` in the `<head>`) are
all pointing the canonical URL instead of the alternative.

closes odoo/odoo#95683

X-original-commit: 3d4b4d3dcff864613a9e7038137e21674425ed08
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Julien Castiaux <juc@odoo.com>
2022-07-08 19:53:07 +02:00
Xavier BOL (xbo) 1806a4cddd [FIX] project: use the new route instead of the old one
Before this commit, the route used for the project sharing always used
the old one.

This commit changes the url to use the new one to avoid redirecting the
old route to the new one each time the user goes to the Project Sharing
feature.

closes odoo/odoo#95677

X-original-commit: 73e6438f1b294ac274dffccc9c4b97dbfc0e3e50
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-07-08 19:53:03 +02:00
Xavier BOL (xbo) e83d33b427 [FIX] project: redirect old routes with parameters
Before this commit, the redirection does not take into account the
parameters passed into the url.

This commit uses the full path instead of the path to get the url with
the GET parameters.

X-original-commit: 9570d284324ffef4d11575115f1f232e0191b895
Part-of: odoo/odoo#95677
2022-07-08 19:53:03 +02:00
Samuel Degueldre 5cc0672c10 [FIX] web: add missing selector for badge field in legacy views
The rule should apply to both the legacy badge field and the new badge
field, when adapting the css to the new badge field, the selector that
targets the legacy badge field was broken. This commit fixes that.

closes odoo/odoo#95665

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-07-08 19:52:55 +02:00
Romeo Fragomeli cf2d625a85 [FIX] mail,web: DiscussPublicView layout broken
Since BS5 migration [1], we added the possibility to customize the
BS utilities classes using Bootstrap API [2].

But in the mail module files was not added in the
`mail.assets_discuss_public` bundle so no utility class was generated.

Also, missing 'text-black' and 'text-white' are now added in the
compiled SCSS (for `mail.assets_discuss_public` bundle).

Refs:
[1] odoo/odoo#95450
[2] https://getbootstrap.com/docs/5.1/utilities/api/

closes odoo/odoo#95661

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-07-08 19:52:52 +02:00
Xavier BOL (xbo) 81c44cfbf0 [FIX] project_timesheet_holidays: add freeze_time in test using today
Before this commit, when the test is launched at the end of the working
date, the first global time off created will start at the end of the
next Monday and so no timesheet will be generated for this day.

This commit adds a `freeze_time` for this test to have the expected
behavior. That is, a timesheet should be generated per global time off
created.

closes odoo/odoo#95658

X-original-commit: 6a72c81b5b435fc79e139531a8b38d97ed04e994
Signed-off-by: Kevin Baptiste <kba@odoo.com>
Signed-off-by: Xavier <xbo@odoo.com>
2022-07-08 19:52:46 +02:00
qsm-odoo 9c1602d917 [FIX] web_editor: properly remove img-thumbnail class on media change
Following [1], it was discovered that, before this commit, the
img-thumbnail class was properly removed when turning an image into an
icon, document or video but not when turning an icon into an image,
document or video. The working image case actually worked by chance as
we remove all classes starting by img-. The "thumbnail" class was
actually removed instead of the "img-thumbnail" one.

In master, this fixes the issue by adding "img-thumbnail" instead of
"thumbnail" to the list of classes to remove. We also do not need to
consider all classes starting by "img-" anymore.

[1]: https://github.com/odoo/odoo/pull/95287#pullrequestreview-1031639109

closes odoo/odoo#95616

X-original-commit: 55ba93da587773fedae64b2911ddc8d04482d94b
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-07-08 19:52:43 +02:00
qsm-odoo 89f13a75c4 [FIX] website: prevent the sidebar from being over the content
With this commit, users can no longer have headers that have the sidebar
template and the over the content option at the same time.

Steps to reproduce the problem:
 - Edit a website
 - Edit the navbar
 - Set Header Position to Over the Content
 - Change the navbar template to Sidebar

The navbar is not displayed properly and there is a margin on the left
that should not be there.

task-2877421

closes odoo/odoo#95463

X-original-commit: 618fd49642310c7b97ef3b9e6c01f8f691c7b12f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-07-08 19:52:37 +02:00
Sébastien Theys 602ca8435b [IMP] mail: introduce WebClientViewAttachmentView
This will allow using the component directly into the new Owl form.

task-2886642

closes odoo/odoo#95436

Related: odoo/enterprise#29182
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-07-08 19:52:31 +02:00
aliya 26b2472f49 [IMP] account: refactor account types
Task: 2856281

- Remove user_type_id, account.account.type model, internal_type
- Add account_type that is a simple selection field
- Move internal_group and include_initial_balance to account.account
- Because of these changes, type_control_ids on account.journal is also removed

closes odoo/odoo#93212

Related: odoo/documentation#2223
Related: odoo/upgrade#3595
Related: odoo/enterprise#28205
Signed-off-by: Cedric Snauwaert <csn@odoo.com>
2022-07-08 19:52:15 +02:00
Younn Olivier cb68632d8a [IMP] website: open the theme_install_kanban_action in the webclient
Before this commit, the switchTheme option was redirecting the window to
the theme_install_kanban_action url.

After [1] was merged, the editor is instantiated inside the webclient
and the action can now be opened directly from there, without a reload.

For that, the request_save event data can include an 'action' parameter,
which the WysiwygAdapter will use after leaving debug mode to trigger
the action with the action service.

[1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

task-2687506

closes odoo/odoo#81485

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-07-08 19:52:09 +02:00
Younn Olivier 1ff7f1e8b6 [FIX] website, *: restore theme/new content loader
*: test_website_modules

This commit restores the display of the website loader (the "Building
your website" GIF) during the installation of a module from the new
content modal, or after completing the configurator flow.

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

[1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

task-2687506

Part-of: odoo/odoo#81485
2022-07-08 19:52:09 +02:00
Younn Olivier 30a03a07df [FIX] website: better redirection from a fullscreen slide to edit mode
Before this commit, clicking on the edit button of a slide viewed in
fullscreen mode would instantiate the wysiwyg, remove it, exit the
fullscreen mode et re-instantiate the wysiwyg.

To prevent that, the editor component never starts with the wysiwyg
shown by default when mounted. Before that, it checks if it should
redirect somewhere in the publicRootReady method (if not, it shows the
wysiwyg).

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

[1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

task-2687506

Part-of: odoo/odoo#81485
2022-07-08 19:52:09 +02:00
Younn Olivier 11429329b8 [FIX] website: properly switch language while in edit mode
Before this commit, switching languages from the language dropdown while
in edit/translate mode was broken.

Now, the click event on this dropdown is listened alongside links with
external redirection from the WebsitePreview client action, so that the
client action leaves the edit mode while frontend is redirected to the
right language.

For that, a new leaveEditMode method is added to the website service,
which removes the edition classes and unmounts the Editor component.
This will further be reviewed in future commits.

Also, adding a new language from the language switcher dropdown directly
opens the wizard in a dialog on top of the WebsitePreview client action.

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

[1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

task-2687506

Part-of: odoo/odoo#81485
2022-07-08 19:52:09 +02:00
Younn Olivier da1a65fd29 [IMP] website: remove navbar xml patch
This commit adds the PagePropertiesDialogWrapper and
AceEditorComponentAdapter as children of the client action, instead of
the NavBar. Both of the components are displayed conditionally based on
the websiteContext. It allows us to remove the navbar xml patch.

With the PagePropertiesDialogWrapper rendered only when needed, it can
open directly the appropriate dialog in the onRendered hook, so that we
can avoid passing the widget to the parent that would later open it.

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

[1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b

task-2687506

Part-of: odoo/odoo#81485
2022-07-08 19:52:08 +02:00
Eleftherios Kritsotakis 7a5120e703 [FIX] pos_restaurant: PaymentScreen closes while paying
Before this commit, if a user were inside
the PaymentScreen and stayed idle for more
than 1 min, the system would take
them back to the FloorScreen, even if they
were in the middle of a payment proccess.

This would interrupt their workflow and cause
a negative userexperience. For this reason,
if a user has added payments (which means that
they are in the middle of a payment workflow)
the screen will not switch back to the
FloorScreen.

opw-2849939

closes odoo/odoo#95447

X-original-commit: 755e90019c6a7530c9026842dedeb9765969ad1f
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-07-08 18:45:03 +02:00
Sébastien Theys 7b03c59353 [IMP] mail: introduce suggestion list item models
This allows removing the AND/OR mix in identifying fields of
ComposerSuggestionView.

Part of task-2741982

closes odoo/odoo#95341

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2022-07-08 18:44:59 +02:00
Sébastien Theys b80f045c16 [IMP] mail: move navigation methods to ComposerSuggestionListView
Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:59 +02:00
Sébastien Theys 3aa248b2e0 [IMP] mail: move activeSuggestionView to ComposerSuggestionListView
Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:58 +02:00
Sébastien Theys 4573b4e46e [IMP] mail: composerSuggestionListViewOwner in ComposerSuggestionView
Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:58 +02:00
Sébastien Theys 9b40d86446 [IMP] mail: remove isActive from ComposerSuggestionView
Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:58 +02:00
Sébastien Theys f2d930420e [IMP] mail: move onClickSuggestion to ComposerSuggestionView
Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:58 +02:00
Sébastien Theys 7c995c4282 [IMP] mail: move suggestionViews to ComposerSuggestionListView
To correctly follow DOM tree in models.

Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:58 +02:00
Sébastien Theys ff461773d0 [IMP] mail: introduce main and extra suggestions on composer view
Suggestion list view should depend on finding suggestables, not on the existence
of suggestion views (which themselves have to be computed on the suggestion list
view instead).

Part of task-2741982

Part-of: odoo/odoo#95341
2022-07-08 18:44:57 +02:00