Commit Graph
146456 Commits
Author SHA1 Message Date
stefanorigano (SRI) 528429e64c [FIX] website_sale: "block" options, design coherently to editor
task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:02 +00:00
stefanorigano (SRI) 531f81a73f [FIX] website_sale: product's carousel, improve design
Improve the design and increase the carousel height when set to vertical
layout.

task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:01 +00:00
stefanorigano (SRI) 9bd712edd8 [FIX] website_sale: topbar dropdown design
Prior to this commit the element was affected my themes customization.

task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:01 +00:00
stefanorigano (SRI) e9c4b39543 [FIX] website_sale_stock_wishlist: fix misleading out-of-stock message
task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:01 +00:00
stefanorigano (SRI) 8ff203e068 [FIX] sale, website_sale, *: fix product's page cta block design
task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:00 +00:00
stefanorigano (SRI) 99432214dd [FIX] website_sale: allow search-bar to extend in product page
task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:00 +00:00
stefanorigano (SRI) 3986dbb961 [FIX/IMP] website_sale: sidebar design
Properly align categories' entries + use <h6> tags rather than forcing
uppercase text (not editable by the user).

task#2667024

Part-of: odoo/odoo#79651
2021-11-16 13:03:00 +00:00
Nicolas Martinelli 7bbe15bc15 [FIX] base: GC files progressively
- Get a database with millions of files in the checklist (do not ask how
  this happened)
- Set a cron timeout low enough so that `autovacuum_job` times out

The file GC will endlessly timeout without being able to delete any
file.

This is due to how the `_file_gc` method is built: we first build the
whole whitelist, then we perform the deletion. With millions of
checklist files, the loop which builds the `whitelist` takes ages. It
ultimately leads to a timeout of the scheduled action, and therefore no
file is deleted.

To avoid this, we delete the files progressively. The checklist is split
in chunks, and we check which files must be GC'd in a given checklist
chunk. This way the files are removed even in case of timeout, meaning
that there will be less files to check during the next run. Eventually
the GC won't timeout anymore.

closes odoo/odoo#79834

X-original-commit: dbae52479062ace9e2b2d376ec2d601d86482f86
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2021-11-16 12:20:02 +00:00
William Braeckman 85577f7b33 [FIX] project: fix following on assignation
This commit fixes an issue since user_id was changed to user_ids.

The default behaviour of `_message_auto_subscribe_followers` could not
work with the user_ids field as it is only meant to work with user_id.

This also fixes a related issue due to the same problem where the
assignation emails were not sent.

TaskId-2691486

closes odoo/odoo#79831

X-original-commit: 3510251ad19d4394f4613924aa2af20abb7c35d9
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2021-11-16 12:19:57 +00:00
xmo-odoo 2789824fcc [FIX] core: dbname threadlocal in evented CDT
Since #77735 the chrome runner uses a receiver thread to better handle the
full-duplex nature of Chrome's websocket communication.

However that thread was missing the `dbname` threadlocal, leading to some of
the logging and reporting to be mis-configured, and thus the filtering on CI
(runbot) to exlude any logging message emitted from the receiver thread, such
as the screenshot notifications.

Fix by passing the current `dbname` to the receiver thread when spawning it,
and having said receiver start by setting up the threadlocal.

closes odoo/odoo#79808

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2021-11-16 11:34:37 +00:00
Sébastien Theys 09ad04cebc [IMP] mail: automatically compute notification groups
Part of task-2258617

closes odoo/odoo#79789

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-11-16 11:34:33 +00:00
Nicolas Bayet 2706f6d7af [FIX] web_editor: prevent re-rendering of linktool
Before this commit, the linktool was re-rendered clicking on
same link twice.
If between click, the some property of the link changed, they
were lost after the linktool being needlessly re-rendered.

Task-2691483

closes odoo/odoo#79820

X-original-commit: 110790cb2482367867dbc0bdaa97ad0e224a3d1e
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-11-16 10:49:39 +00:00
Adrien Minet ccab4ae0ba [FIX] hr_recruitment: typo in template (field variable)
In the template 'Applicant: Interest', there was a typo related to a field variable
raising an error. This commit fixes the typo

closes odoo/odoo#79819

X-original-commit: 58abdaced8894df04c4e5ed5a00143d1686d877d
Signed-off-by: Adrien Minet <admi@odoo.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-11-16 10:49:36 +00:00
Nicolas Bayet 5bb243cfd8 [FIX] website_sale: stop changing location for product category
In the product page, when the categories are activated
(through the customize menu item) and the page is in edit mode and when
the user click on one of the categories, the page was relocated.

We do not want that behavior in edit mode.

task-2666167

closes odoo/odoo#79818

X-original-commit: b929a6388035c3f5c69aab6c4889e326eac53fd9
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-11-16 10:49:32 +00:00
baa 3ea12e93d6 [IMP] account: auto-load invoices modules for KSA
closes odoo/odoo#79817

X-original-commit: 32f653327bd92688190475ce6aeacd17c3eba555
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-11-16 10:49:28 +00:00
baa fa60eff552 [ADD] l10n_sa_invoice: adding new mandatory fields for KSA e-invoicing
X-original-commit: d9c97b8fb8bfd9b015240d31f744ae806c431faf
Part-of: odoo/odoo#79817
2021-11-16 10:49:27 +00:00
baa 30019e3e32 [ADD] l10n_gcc_invoice: arabic/english report for GCC countries
Most GCC countries are required by law to have invoice reports in both arabic in english

X-original-commit: 0baca0420b472bdfdd95c108c945f5990e0b34da
Part-of: odoo/odoo#79817
2021-11-16 10:49:27 +00:00
Romain DerieandSiddarth Gajjar 7ab8fc9eda [FIX] website: fix usability of the popup snippet
There were some usability issues with the popup when a video was
inserted inside it:
- The video would be playing before the popup is shown and the user
  would thus miss part of that video (potentially a lot, depending of
  the set popup delay).
- The video would continue to play in the background after closing the
  popup.

task-2251203

closes odoo/odoo#79802

X-original-commit: 5ec45659fe89f14a9c770d982e257d75931033d8
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Siddarth Gajjar <sga@odoo.com>
2021-11-16 10:49:20 +00:00
Siddarth Gajjarandqsm-odoo a66d347606 [FIX] website: fix background video placement in popup
Before this commit, if you add a background video in a popup, the video
frame will not setup properly because the _adjustIframe function cannot
find wrapperWidth and its ratio.

After this commit, _adjustIframe will be called again once the popup
is opened.

task-2251203

X-original-commit: 2b571bd012c8a1226d17edb2ee9dd2e6f74ce5d1
Part-of: odoo/odoo#79802
Co-authored-by: qsm-odoo <qsm@odoo.com>
2021-11-16 10:49:19 +00:00
Aurélien Warnon 77324d5dde [IMP] survey: keep navigation buttons at the same location
This commit slightly adapts the survey navigation buttons to make sure that
they are always positioned at the same spot.

Before this change, if you rapidly click the "back" button a lot of times, when
it disappears, you will misclick the "Odoo" button and land on the Odoo
website, which can be very annoying during a real test with a timer.

Now, we disable the button when it becomes non-clickable instead of removing
it, so that it always stays at the same spot.

Task-2665998

closes odoo/odoo#78513

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-11-16 10:49:13 +00:00
Nicolas Bayet 55cd20db47 [FIX] web_editor: not override root on website
Before this commit, if the editor was initiated as a simple
editor rather than the website editor (eg. the editor in the forum or profile)
the $root of the wysiwyg was wrongly assigned to #wrapwrap rather
than the $editable.

Subsequent binding (eg. LinkPopover) was bound to too many elements
which generated incorrect behaviors (eg, link popover on triggered on every
links).

Task-2691117

closes odoo/odoo#79810

X-original-commit: 58c1b04de1ec9179b940ee930984a232bb5de30d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-11-16 10:02:37 +00:00
Nicolas Bayet a101887f66 [FIX] web_editor: remove overlay of link
Before this commit, in the website builder or in mass_mailing, when
creating a link then hitting enter, then click somewhere in the page,
the outline was not removed from all the links.

In mass mailing, the overlay was never removed. Not even upon save.

Task-2682176

closes odoo/odoo#79634

X-original-commit: 71325540712342ef8f251a37ee29270bd3b87469
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-11-16 10:02:33 +00:00
Nicolas Bayet 12953e98b9 [FIX] web_editor: avoid scroll on undo/redo
When performing undo/redo on some page, because some unneded mutation
get recorded, the page scroll to another location (either up or down).
This commit add a mechanic that filter out thoses unnecessary mutations.

task-2667885

closes odoo/odoo#79620

X-original-commit: 125730ffd9322d34ef1c7d8d0298457de3e65f90
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-11-16 10:02:29 +00:00
Nicolas Bayet ebb4d39571 [FIX] web_editor: activate the redo button when needed
Because the `_historyStepsStates` was not fully set at the time of
calling `historyStep` in `historyUndo` or `historyRedo`, the listener
for the event "historyStep" was triggered to early and `historyCanRedo` at
that time could not possibly be accurate.

This commit call `historyStep` after setting all ids in
`_historyStepsStates`.

task-2667885

X-original-commit: 659b530516e13df77eed6254b81e72b8009a71bf
Part-of: odoo/odoo#79620
2021-11-16 10:02:28 +00:00
Antoine Guenet 516a74a0c8 [REM] mass_mailing: remove unused snippets
Some snippets were removed in commit [1] but their now unused templates
were temporarily kept for migration purposes. This removes them.

[1] https://github.com/odoo/odoo/commit/6c63addd180e799eda99751768ccf20699136ca1

closes odoo/odoo#78358

Related: odoo/enterprise#21687
Related: odoo/upgrade#2923
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-11-16 10:02:18 +00:00
Csaba Tóth b419a0a2f1 [FIX] mail_group: Syntax error
This is a one liner fix.

closes odoo/odoo#79799

X-original-commit: 9b2a8005712454bb17858fb6ea2f07740d4e4d04
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-11-16 08:20:34 +00:00
Achraf (abz) 951270d12f [FIX] web: legacy action_menus: provide context to executeAction
In a list view in multicompany:
- select all records with the main checkbox above the list
- click on "Select All" to select every record for that domain
- open the "Actions" dropdown and try to do an action

Before this commit, there may be a fail on some records due to some
records not belonging to the right company.
This was because when fetching the active_ids from the server,
the context, and hence the allowed companies, was not passed to the RPC.

After this commit, the call to retrieve active_ids contains the allowed companies
and the correct records are returned and treated.

opw-2669292

closes odoo/odoo#79795

X-original-commit: 894430076423c81ec0804158249c354115030e9e
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Achraf <abz@odoo.com>
2021-11-16 08:20:30 +00:00
anhe-odoo 93f17e9e3c [FIX] accouting: fix 'unpaid invoice' filter on main dashboard
Expected Behaviour

When clicking on the "XX Unpaid Invoices" link on the main dashboard of the accounting app, we should get to a list view with only unpaid (and partially paid) invoices

Observed Behaviour

When cliking on the link, we get all the invoices, even the paid ones.

Reproducibility

This bug can be reproduced following these steps :
1. Create some invoices
2. Make sure some of them are paid and some are not
3. Go to the main dashboard
4. Click on the "XX Unpaid Invoices" link in the "Customer Invoices" app

Problem Root Cause

The problem comes from a change in the filter name from V14 to V15 ("unpaid" category has been replaced by "open").

Related issues

opw-2681099

closes odoo/odoo#79643

X-original-commit: 9212d07c5919470361b638f0e70c2069957c7d6f
Related: odoo/enterprise#22221
Signed-off-by: Olivier Colson <oco@odoo.com>
Signed-off-by: Hendrickx Anthony (anhe) <anhe@odoo.com>
2021-11-16 08:20:26 +00:00
Laurent Stukkens (LTU) 7330243e30 [FIX] project_mrp: remove gantt view from action_view_workorder action
Prior to this commit:

    * The `action_view_workorder` was wrongly returning a view_mode containing
      the gantt view, which is part of enterprise.

After this commit:

    * The `action_view_workorder` will return a community valid view_mode.

closes #79785

closes odoo/odoo#79797

X-original-commit: 13f6ff19a4d7e5a58310a548c0514ecb3c94e448
Related: odoo/enterprise#22264
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-11-16 07:39:10 +00:00
Aktiv Software 1d908a14eb [FIX] project: remove gantt and map views from project.task actions
Prior to this commit:

    * The `action_dependent_tasks` and `action_recurring_tasks` were wrongly
      returning a view_mode containing the gantt and map views, which are part
      of enterprise.

After this commit:

    * The `action_dependent_tasks` and `action_recurring_tasks` will return a
      community valid view_mode.

closes #79785
Related to issue https://github.com/odoo/odoo/issues/79555

X-original-commit: c2e1a3133e2a9cff2db8ceb86d242930e17480e2
Part-of: odoo/odoo#79797
2021-11-16 07:39:10 +00:00
Laurent Stukkens (LTU) 919cc3314c [FIX] project: correctly display the 'Assign to Me' button
Priori to this fix:

    * The domain provided to the invisible member of the attrs was wrong
      as it was using the '=' operator.

After this fix:

    * The domain provided to the invisible member of the attrs is using
      the 'in' operator.

task-2691562

closes odoo/odoo#79800

X-original-commit: e69012541dbba5a98a3b847c78b2ac17455601b3
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2021-11-15 20:38:08 +00:00
Laurent Stukkens (LTU) a3e0f96fe1 [FIX] project: correctly color project and task rating stat buttons
Prior to this commit:

    * Although the display was correct in enterprise, the look was awful in community.

After to this commit:

    * The icon is colored in both comunity and enterprise and the text is always visible.

task-2531428
closes #73581

Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2021-11-15 17:29:38 +00:00
Laurent Stukkens (LTU) 0a9e5f7c7d [FIX] project: use html_escaping in project form view rating buttons
This commit fixes an html escaping issue in the project form rating buttons.

task-2531428
closes #73581
2021-11-15 17:29:37 +00:00
Mitali Patel 8ccba2ce15 [IMP] project, hr_timesheet: improve customer rating on project
Purpose of the commit is to improve the customer rating report
of the project app.

So in this commit, done the below changes:

- remove the project and task measures
- switch the rating value and the count from place in pivot view
- remove the default group by rated operator, keep it fot grap view
- reorder the some fields on form and list view
- use the badge widget for the rating field and the color code is applied to the form view
- add some demo data for the feedback field in list view
- center the information vertically in kanban view
- move the 'customer ratings' menu item below the 'project costs and revenues' one
- add the following filters: My Projects, My Team
  - reorder the group bys and rename 'Resource' into 'Task'
  - reorder the search fields
- project kanban card
  - the ratings % is represent the average satisfaction rate of the ratings submitted in the last 30 days (including today)
  - change the tooltip to: Average satisfaction rate for the last 30 days
- the 'customer satisfaction' stat button display the last 30 days rating on the project.project
and this stat button should open the kanban view by default instead of the list view

task-2531428
closes #73581
2021-11-15 17:29:37 +00:00
张文广 d0d8d28cba [FIX] base: return all the css attachments
When detecting if the assets where already preprocessed, the method
only the last asset type matching was returned and deleted.
In standard, it should not have any impact as all assets are of the
same type but it may be possible to mix it with external modules.

Sign CLA

closes odoo/odoo#79786

X-original-commit: 0c2f83f4a6c4603d107007ac77c94e6a2805cd81
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-11-15 16:41:28 +00:00
Luis Torres 3882ec7c39 [FIX] hr_contract: Missing field added in the contract view
The field contract_type_id is added in hr_contract, but is not present
in the view.

Why not a custom module to add this field in the view?
The hr_contract is the base module, then, my custom module install it,
but it need to set the contract type and the field is not present.

The field cannot be added in the custom module, because some customers
that use my module also needs hr_contract_salary, that adds the field in
the view.

Then, this is related with another PR in enterprise that removes the
field from the view on that module.

closes odoo/odoo#79763

X-original-commit: 9bb0227423b97d085e53e7297a85bbb2fff4a0e0
Related: odoo/enterprise#22248
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-11-15 16:41:15 +00:00
Aktiv Software 744db253c5 [FIX] hr_expense: Error when create new expense product.
When create expense product, it raise validation error.
The issue was mandatory field of product was not available on form view.

This PR contains madatory field mandatory field as invisible in form view.

closes odoo/odoo#79754

Fixes: #78498
X-original-commit: b087a3133fa54c10ad0f87a6a83f3c714ee707af
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-11-15 16:41:10 +00:00
Thanh Dodeur e1c7c1f9f4 [FIX] mail: prevents disabled video when receiving a broadcast
Before this commit, it was possible to lock the transceivers of the
streams when the remote was updating this stream.

This commit fixes this issue.

closes odoo/odoo#79782

X-original-commit: 82c7d6dad5603242e72c45160ac7193e3fb1c350
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-11-15 15:54:46 +00:00
Sébastien Geelen (sge) c3bff57df2 [FIX] web_editor: avoid onbeforeunload pop-up issue
Remove onbeforeunload pop-up if editor has no snippet.
This fix pop-ups wrongly showing outside website editing.

see: #79731

task-2666177

closes odoo/odoo#79781

X-original-commit: 2f587eea4eea947597f0c4f7e5473c08e2175bcd
Signed-off-by: Antoine Guenet <age@odoo.com>
2021-11-15 15:54:42 +00:00
Didier (did) 20758a8d16 [IMP] mail: improve attachment box model
Before this PR, attachment box event handlers where stored inside the attachment box component.
This PR move the handlers inside a dedicated model.

part of task-2579306

closes odoo/odoo#79464

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-11-15 15:54:39 +00:00
Thanh Dodeur fe22d14821 [FIX] mail: prevent traceback when granting video permissions
Before this commit, granting the video permission when the call had
already ended would generate a traceback.

This commit fixes this issue.

closes odoo/odoo#79715

X-original-commit: 8759220048054e656d02696972d0a3229df508b1
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-11-15 15:09:54 +00:00
Thanh Dodeur d3ebd04ec1 [FIX] mail: allow saving of guest volumes
Before this commit, it wasn't possible to save the volume
of guests, the backend was already implemented but the
feature hasn't been implemented in the frontend, this commit
fixes this issue by completing the implementation.

taskId-2679227

closes odoo/odoo#79714

X-original-commit: 149456839f8379422affb53b7b64c6190b6e9f42
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-11-15 15:09:50 +00:00
jpr-odooanddwa-odoo f2bace6518 [IMP] website: add min & max option for chart axis value
This commit introduces min & max input options for the chart values of
the axis. It will be visible only for the line and bar chart.

- When min and max values are same, we fix this by changing the min
  value to zero and multiply provided value by 2 to set max value.

- When min value greater than max value, we swap the values.

- When the min value is given and the max value is not:
    - If the min value is smaller than greatest value of the chart, then
      the max value is set to the greatest value of the chart.
    - Otherwise, the given minimum value is used as maximum value and
      the minimum is set to 0.

- When only the max value is given then the minimum value is set to 0.

task-2250766

closes odoo/odoo#52221

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: dwa-odoo <dwa@odoo.com>
2021-11-15 14:27:06 +00:00
Adrien Widart ef158c5f36 [FIX] mrp: set component's lot as readonly in MO
Updating the producing quantity may wrongly change the consumed quantity
of tracked products

To reproduce the issue:
1. Create two storable products P1, P2:
    - P2 is tracked by lots
2. Update P2's quantity >= 10
3. Create a BoM:
    - Product: P1
    - Components: 1 x P2
4. Create and confirm a MO for 10 x P1
5. Check availability
6. Edit the MO and set the consumed quantity of P2 to 10
7. Edit the MO and set the producing quantity to 8

Error: The consumed quantity of P2 becomes 1

When saving the MO, it also writes the `lot_ids` on `move_raw_ids` while
it shouldn't. As a result, it triggers method `_set_lot_ids` for no
reason and lead to an undesirable behavior.

OPW-2667412

closes odoo/odoo#79757

X-original-commit: 66a1e96f88b3b06f40f9fd8035fca61d4e2a4e3a
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Adrien Widart <awt@odoo.com>
2021-11-15 12:53:27 +00:00
Thibault Libioulle f2b13dd0ec [FIX] website{,_sale}: fix search product with several categories
This commit fixes an issue when there are several public categories on
a single product. Categories are shown side-by-side under product name
in the search bar.
This commit also fixes the issue where the `Category:X` text is matched
and highlighted whereas the search text is not used to match the product
categories.

Steps to reproduce :
    - Install eCommerce
    - Add several eCommerce Categories to a product
    - Go to shop
    - Search for the product in the searchbar
    - Traceback

Current Behavior :
    - Traceback when generating the results in the quick search bar.
      It's not expected to have several categories in the current
      implementation.
    - If all products have a unique category, then the text in
`Category:X` is matched and highlighted.

Desired Behavior :
    - No traceback
    - When there are multiple categories, an extra link should be
      present on each category rather than a unique link on all
      categories.
    - The product categories don't have to be matched.

Related PR: #79258
task-2680726

closes odoo/odoo#79363

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-11-15 12:53:20 +00:00
Pierre Paridans bed30d93cc [FIX] web: remove unused class o_py
closes odoo/odoo#79751

Related: odoo/enterprise#22244
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2021-11-15 12:07:21 +00:00
Aktiv Software 7bfb643229 [FW][FIX] product: properly trigger computation of computed fields
The two fields (name & price) were only updated on pricelist (`product.pricelist`) save, not when the rules were updated (`product.pricelist.item`).

The reason was that name and price are compute fields, which were added to the tree view but not added to the form view.

This commit adds "name" and "price" to the `product.pricelist.item` form view and hence the values will be updated as soon as the popup form is saved.

Fixes: #78488

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#79748

Forward-port-of: odoo/odoo#78699
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-11-15 11:02:49 +00:00
Touati Djamel (otd) 8c77e1cfdb [FIX] {pos,sale}_gift_card: compute the gift card balance correctly
Steps to reproduce the bug:
- Install POS
- Go to the POS settings and enable “Gift Card” option
- Create a new Gift card with initial amount of $50
- Open a new POS session > create an order of $50 and apply the gift card
- Confirm the order > the order state becomes “paid” and the gift card balance is computed correctly: $0

Problem:
Close the POS session, the order state becomes “done” and the balance is computed wrongly: $50

opw-2683523

closes odoo/odoo#79741

X-original-commit: 10f22a125a96d60fc5983531f6026ba325d08959
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2021-11-15 11:22:40 +00:00
Nicolas Bayet 6f972d9f9c [FIX] web_editor: undo after dropping a snippet
The commit 1b80fe9b56acea09a6784691561df65fe6349f50 made impossible
to undo after dropping a snippet.

Task-2688104

closes odoo/odoo#79649

X-original-commit: 92b1f78e8de6c343a9d1ef19459522b868cf108f
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Antoine Guenet <age@odoo.com>
2021-11-15 11:22:34 +00:00
Nicolas Bayet 8087bd00e8 [FIX] web_editor: allow to move snippets
As an oversight of 2185e89e3f2a15b98b9cb8c3371a6031f9a6f055, it became
impossible to move snippets.

Task-2688281

closes odoo/odoo#79648

X-original-commit: f76ba944c516a0377cec324f564df604e52c2ffd
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Antoine Guenet <age@odoo.com>
2021-11-15 11:22:30 +00:00