Commit Graph
139249 Commits
Author SHA1 Message Date
Antoine Prieels 798621ae5f [FIX] pos_restaurant: Order change receipts alignment
The alignment of quantity and product name was off when the product
name was split into multiple lines.

opw-2360424

closes odoo/odoo#60547

X-original-commit: 58404f299f7fa9128758b4b7830a6393c64ad085
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-10-22 14:21:22 +00:00
Benjamin Vray 8ca7aa5d3c [FIX] website, portal: fix language selector inline
This commit align vertically the copyright text and the inline
language switcher items. This commit also add a padding on
list-inline-item in the language selector. Because before this commit,
there was no space between lines if the list was to be displayed on
multiple lines.

Part of #59581

task-2312878

closes odoo/odoo#60527

X-original-commit: a8c4ca8a942d94557db5b95f42344fee71faf6e2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-22 13:06:15 +00:00
Benjamin Vrayandqsm-odoo 97f33eca52 [FIX] website: hide the add language separator if it is the last item
Before this commit, the add language separator was visible at the end
of the inline language switcher even if the add language link was not
displayed.

Part of #59581

task-2312878

X-original-commit: cf34f10a54390d2ecd86d47de90c221d79ed5873

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-10-22 13:05:52 +00:00
Bruno Zanotti (ADHOC) 597f379284 [I18N] l10n_ar: add missing translations
closes odoo/odoo#60526

X-original-commit: a4871a7dbbc96399696dc9cd8424a4bcb7814262
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-22 11:52:09 +00:00
Michael Mattiello (mcm) 3f826e4eaf [FIX] web: keep new widget el in ComponentAdapter
Before this commit, when sub widget replaced its el, the ComponentAdapter
parent kept the previous el.
This caused some issues as in the ActivityRecordAdapter which lost its
event listeners when re-rendered.

This commit forces the ComponentAdapter to keep the new sub widget el
after being patched.

task id: 2360021

closes odoo/odoo#60521

X-original-commit: 393b5fd4cfba254ad054a526996e82922f9057e2
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Michaël Mattiello <mcm-odoo@users.noreply.github.com>
2020-10-22 11:06:16 +00:00
qsm-odoo b2afa61ec7 [FIX] web_editor: restore overlay top options on top of the page
When the overlay covers a snippet, if that snippet is at the top of
the page, the options at the top of the overlay are hidden. A system
was made to make them change position in that case but this was broken
by [1], leaving the toggling of a class for that case but without its
related scss.

This commit restores that scss and also improves the detection of that
problematic case.

[1]: https://github.com/odoo/odoo/commit/4f27e52cabb77b8b1a9637a11185ddf882adc9af

closes odoo/odoo#60467

X-original-commit: 97f11571f9e3deacc9b9e1dc0d2cc8fc6b93f15c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-22 08:12:59 +00:00
Aurélien Warnon f4bcfe6a32 [FIX] website_slides: correctly close subscription modal when saving
This commit fixes a small issue with the modal displayed when the user wants to
manage his subscription to a course.

When pressing the "Save" button, if no modification was made, the modal would
not close and nothing would happen (which seems strange on a user POV).
Now the modal correctly destroys itself and closes.

Task 2363028

closes odoo/odoo#60507

X-original-commit: 32d0b1086b5db6c58c1e2891d8d77fafb9482de9
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-22 09:09:17 +00:00
wan 00b61c752e [FIX] l10n_cn: incorrect account type
The fix c710c3a35a3f466ebadc5748c70784bc063a7eb2 has been forgotten
while applying https://github.com/odoo/odoo/pull/43768

closes odoo/odoo#60494

X-original-commit: c5d355444a3dde2635025e5452360e853afca099
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
2020-10-22 07:27:52 +00:00
Odoo's Mergebot 44e79a1438 [MERGE] web: enable action menu on mobile
This merge sets up the requirements to enable the action menu on mobile device.

In a nutshell :
* allow to simulate touch-screen device in the QUnit tests
* fix the DropdownMenu OWL component to not open out of the viewport
* add the required hooks to be used on enterprise
* improve the UX of the export modal on mobile

Related PR: https://github.com/odoo/enterprise/pull/11960

Task ID: 1879566

closes odoo/odoo#54745

Related: odoo/enterprise#11960
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-10-22 10:28:01 +02:00
Swapnesh Shah 0995755126 [FIX] website: default focus of searchpanel
Before this commit, Going to Website --> Configurations --> Apps was displaying Modules related to Website only but the default focus on searchpanel was on "All". (https://tinyurl.com/y5tw5uob)

Now, The default focus of searchpanel is on Website Category. (https://tinyurl.com/y6984hl7)

closes odoo/odoo#60485

X-original-commit: 0e2c55eec07600585121acf560ec8ffebde442e3
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-21 22:06:35 +00:00
Swapnesh Shah bfecc0f3c0 [FIX] website_blog: readonly visits
Before this commit, Field "No of Views (visits)" was editable on multi_edit mode.

Field "No of Views (visits)" should be readonly for Obvious reason.

closes odoo/odoo#60484

X-original-commit: 6c3bf61df4fb2a705db27b6b51fea8ddfaa24e87
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-21 20:01:20 +00:00
Laurent Smet bc76a2b9af [FIX] account: Fix reversal of journal entry with tax_ids on tax line
A tax line could have something in the `tax_ids` field.
Then, these condition needs to be inversed in order to not handle them as base lines.

closes odoo/odoo#60473

X-original-commit: eada9f91f3361f8335c23b3a27161803cfda6608
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-10-21 15:46:17 +00:00
Nicolas Martinelli d0053c7b45 [FIX] stock: routes in multi-company
- Create companies A & B
- Create a Dropship route for B
- Create a product P with route 'Dropship'
- Set the website under company A
- As a portal user, buy the product P on the website
- Do the payment

The SO is confirmed but the Dropship route for B is used despite the
fact that the website is under company A.

This happens because `_search_rule` is called as superuser: therefore,
routes from all companies are retrieved.

To prevent this, we add the company in the domain.

opw-2349094

closes odoo/odoo#60482

X-original-commit: 31a54b5e859ead7972cdccc956518e14038476ba
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-21 18:07:13 +00:00
Romain Estievenart b04c670ba0 [IMP] web: improve Export Data UI on mobile
This commit improves the UI of the Export Data action's modal on mobile
screens:
* open it full-screen
* 2 main panels are one after the other (side-by-side on desktop)

Task ID: 1879566
2020-10-21 14:45:40 +00:00
Romain Estievenart f9193fa417 [IMP] web: enable action menu on mobile
This commit creates the required hooks to implement this feature.

Task ID: 1879566
2020-10-21 14:45:40 +00:00
Romain Estievenart e1f605bef8 [FIX] web: avoid to display dropdown outside of the screen on mobile
When opening a DropdownMenu OWL component (like the favorite menu, filter
menu) positioned to the right of the screen (left on RTL languages) on a
small screen, the content of the dropdown could easily overflow out of
the viewport, making hard to use or even unreachable.

This commit fixes it by using the middle of the screen as a threshold to
align the dropdown menu to the right (or left in RTL) of the triggering
button.

Note: this fix specifically targets mobile-like/small screens as bigger
one like on desktop would require much precise calculations (and are
not an issue at the time of this commit).

Task ID: 1879566
2020-10-21 14:45:40 +00:00
Romain Estievenart a35dab5653 [IMP] web: allow to simulate a touch-screen when creating a test's view
When running the webclient in a regular environment, a 'o_touch_device'
class is set when ran on a touch-screen enabled device.

This commit adds the ability to simulate touch-screen when creating a
view inside a test (independently of the device), allowing tests to
match the reality.

Task ID: 1879566
2020-10-21 14:45:40 +00:00
Jeremy Kersten 02f989671a [FIX] website_blog: don't index blogs index with tags
Courtesy of sts

closes odoo/odoo#60458

X-original-commit: bc2dc85c76f00b7328c0a931afa8b6c60f865e7f
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-21 13:59:07 +00:00
Nasreddin (bon) c73b42244c [FIX] web_editor: Autocomplete options can break layout
Issue

	- Install "Website" app
	- Go to "Contact us" page on website
	- Edit Page, then click on submit button to
	edit form style
	- Alter 'Recipient Email' by selecting a value
	from 'autocomplete' values

	Other input text options are also altered.

Cause

	Due to chrome autocompletition, others text input fields are
	also altered (like it will do with a form address).
	In this case, the error was obvious since it alter also the
	'Labels Width' who break the layout.

Solution

	Disable autocompletition on `<input type='text'/>` options
	elements.

opw-2361169

closes odoo/odoo#60481

X-original-commit: 48d4c8185482545b049e2fecf315dd66ab9472f8
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-10-21 18:06:50 +00:00
Achraf (abz) e37b0707e6 [FIX] base: Invalid parent_id field in crm.lead for Mexico
Issue

    - Change country to Mexico
    - Install 'CRM'
    - Install 'l10n_mx_edi'
    - Try to open any lead in 'CRM'

    The same error is present in l10n_pe

Cause

    'l10n_mx_edi' and 'l10n_pe' use 'res.partner' in 'ir.ui.view'

Solution

    Adding a condition to prevent '_fields_view_get_address' in 'format.address.mixin'
    from rewritting the model and let ir.ui.view determine it

opw-2361875

closes odoo/odoo#60463

X-original-commit: 3229239c2a738cc99820dba0fce1bd1c2a3536ea
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2020-10-21 14:40:12 +00:00
Victor Feyens 7e26237ffe [FIX] sale_coupon: underterministic recordset order
Recenlty, this method was changed to use set instead of recordsets
to improve the performance of the code.

But set have a non deterministic order, which means the order of the
returned programs returned is not the same, modifying the resulting behavior
as some programs cannot be applied together.

To fix this problem, this commit replaces the set by lists
to ensure the returned recordset keeps the same ordering.

Also rename a potentially conflicting variable caused by the same commit.

Finetuning of commit cc1bb9224b3d50897e8f16404ed10bcc04225c60.

closes odoo/odoo#60472

X-original-commit: 6d4da47fff9a809f65912d4132a5fd3ccaa37b90
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-10-21 15:43:32 +00:00
Nasreddin (bon) 9a42f49b70 [FIX] website_form: Required hidden field is not saved
Issue

	- Install "Website" app
	- Go to "Contact us" page on website
	- Edit Page, then click on submit button to
	  edit form style
	- Alter 'Recipient Email' then save
	- Edit Page and click on submit button

	'Recipient Email' have default value.

Cause

	If a field is required, the default value is set without
	checking if a value is already set.

Solution

	Set current value if available, else default value.

opw-2361169

closes odoo/odoo#60457

X-original-commit: e29d2818abf0e7902feb26c9e0b4809c9a3351c6
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-10-21 13:50:28 +00:00
Antoine Prieels 8e01d8e969 [FIX] point_of_sale: Receipts cut in browser
The bottom of long receipts was missing when printing through the
browser printing dialog.

opw-2362522

closes odoo/odoo#60456

X-original-commit: f48fa3e33e0174f6f2eb59210532859997046856
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-10-21 13:48:11 +00:00
Christophe Monniez defd6ac925 [FIX] packaging: stop moving addons for deb package
The package.py script is moving the addons in odoo/addons which is not
more necessary for the Debian package as it's made at the Debian
packaging level. So package.py will not do that anymore.

closes odoo/odoo#60442

X-original-commit: 27b755a3dfe1e2a580fd436038a60df19e9d83ab
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-10-21 11:59:55 +00:00
Benjamin Vray dc9505b019 [FIX] gamification: fix badge creation
Before this commit, we executed the request even when creating a new
badge. And it thrown a traceback.

After this commit, we return default values before executing the
request if this is a new badge.

task-2312878

closes odoo/odoo#60441

X-original-commit: 85995b7a4f0544779f3de537f0e6024820abbd5d
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-21 11:59:26 +00:00
Thanh Dodeur 0b8146c94f [FIX] mail: sets the z-index of dialog to the z-index of modals
This commit gives to o_Dialog the same z-index as modals, before
this commit, the dialog could be hidden or partially obstructed
by other elements.

part of task-2171884

closes odoo/odoo#60440

X-original-commit: b4de3c4e34500c9d4e3e2eef68c880643953f2ff
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-21 11:58:59 +00:00
Benjamin Vray 49aad4ede1 [FIX] website: fix carousel blockquote width on mobile
Before this commit, the width of carousel blockquotes was too small to
display correctly on mobile device.

Part of #55857

task-2318526

closes odoo/odoo#60439

X-original-commit: 12a68cc0f057f6febc70fdc6785a1bcec9f282f3
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-21 11:58:34 +00:00
Benjamin Vray 8107fe0c68 [FIX] web_editor: fix option background position
Keep the original position of the background as a percentage. In this
way, we avoid converting in pixel a direction that we have not changed.

Part of #55857

Related to task-2318526

X-original-commit: b8ac4f6b0c0aaa17ccae43ad8756c5b807e29823
2020-10-21 11:58:33 +00:00
Benjamin Vray 677f9c235f [FIX] website: fix small layout issues in carousel on mobile
-Remove arrows on mobile because it's too big and hide the content.
 User will use the touch screen to make the carousel move.
-Bordered style: Reduce the borders on mobile.

Part of #55857

task-2318526

X-original-commit: 86cd5e898b482192e50a20d0b6ef2a9b02b8301f
2020-10-21 11:58:33 +00:00
Raphael Collet 8de95a3fb4 [FIX] core: validation of field parameters
The feature was actually not working as expected.  It has been fixed,
and a test now ensures it does work as expected.  This commit also fixes
some invalid parameters, hopefully nothing critical.

closes odoo/odoo#60429

X-original-commit: 231bdca3f26d96f578503694e5aec062de2317ed
Related: odoo/enterprise#14285
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-10-21 10:18:36 +00:00
Jeremy Kersten 5e9748cc82 [FIX] website: remove searchbar from kanban theme
closes odoo/odoo#60073

X-original-commit: c10cc2cfb46d34e6a119859dc1bc34ce8229c1da
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-15 10:58:30 +00:00
Nicolas Martinelli 36da97a0db [FIX] stock_landed_costs: fix account for non-anglosaxon accounting companies
This reverts commit c382e8c81f7c3739bf5875d621623f971aa9ccab.

closes odoo/odoo#60431

X-original-commit: 84ec7277193958d914d0c976d85a00d2270a0563
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-21 10:46:33 +00:00
Nicolas Martinelli 490ee8890e [FIX] l10n_it_edi: customer outside EU
- Create a partner outside Europe
- Set a VAT number
- Create an invoice for the partner
- Post the invoice

The `IdPaese` and `IdCodice` is obtained from the VAT number, but it is
not correct for partners outside Europe: the VAT number should always be
`OO99999999999`.

A workaround is to set the VAT number of the partner to
`XXOO99999999999`, where `XX` is the country code. However, in case of
multi-company with shared partners, another company might need the
proper VAT number.

In case of a customer outside EU, we:
- get the `IdPaese` from the country of the partner
- set the `IdCodice` to `OO99999999999`

We also add the `IdPaese` to customers without VAT.

opw-2355842

closes odoo/odoo#60416

X-original-commit: 35267c59c32f747351e8741cfe6011749914e809
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-21 09:19:07 +00:00
Antoine Guenet c4503c736d [FIX] web_editor: open media modal in appropriate tab on dblclick media
closes odoo/odoo#60331

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-21 09:16:39 +00:00
David Monjoie d1429aec45 [IMP] web_editor: update Jabberwock library to commit 0bd94881
Changelog:
[FIX] formattingSpace: remove space between inline elem and block
[FIX] EventNormalizer: consistently apply insertLineBreak on shift+enter
[FIX] DomObjectRenderer: fix typo in comment
[FIX] Bundle: change css bundler for rollup
[FIX] Odoo: open the media modal in the right tab on dblclick media
2020-10-21 09:16:38 +00:00
Benjamin Vray f1d5e73d5e [IMP] website: reorder carousel style option list
task-2318526

closes odoo/odoo#60425

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-21 10:02:19 +00:00
Achraf (abz) 4f28864617 [FIX] calendar: Dont send mail to attendees when the event date is past
Issue

    - Install "Calender"
    - Install "Google Calendar"
    - Try to sync google in "Calendar"

    Every created events will trigger the sending mail to attendees
    even if the event date is past

Cause

    'events' was not filtered

Solution

    Filter 'events' to get all the events that have not yet happened

opw-2358123

closes odoo/odoo#60414

X-original-commit: 3b1df8f57e0cd342fe7f9ff7bd34100b2c821569
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2020-10-21 09:12:44 +00:00
Thanh Dodeur bd26e75f34 [IMP] mail: replaces window.location by services.navigate
part of task-2171884

closes odoo/odoo#59947

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-10-20 11:55:51 +00:00
Romain Derie 6bf6688d73 [FIX] portal, sale: scroll correctly if fixed header
Depending of the configuration, on the portal, anchor do not consider the
header, so a part of the text is hidden by the navbar.

task-2290213

closes odoo/odoo#60415

X-original-commit: 2cd9a9d12f4cd7352430c166145a7488af0c120c
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2020-10-21 09:17:14 +00:00
Goffin SimonandWhenrow 09b6010d35 [FIX] stock: Cancelled DO changed to Ready
State to reproduce the bug:

- Let's consider a 2 steps delivery setting
- Create a SO with a product P and a quantity Q and confirm it
- Pick: Deliver a smaller quantity than Q, don't create a backorder
  but duplicate the Pick and validate it with the remaining quantity.
- Out: the initial delivery order OUT P1  does not allow the reservation, so cancel it and duplicate it (let's call it P2).
- Click on Mark to do on P2

Bug:

The initial picking OUT P1 was changed in state Ready instead of keeping in state Cancelled

opw:2339217

closes odoo/odoo#60391

X-original-commit: 61734cdaf1cf6857125b1ece63928ab080359c6c
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Co-authored-by: Whenrow <whe@odoo.com>
2020-10-20 17:50:27 +00:00
Luis González fc90b208c3 [IMP] sale_management: Non-deterministic elements in views
There are currently some elements in views that are not reachable on a
deterministic way when those views are inherited. That means, to reach
them, positional selectors need to be used (e.g. `last()`). That causes
inherited views to get broken when there are small changes in element
position.

A good example of this is [1]:

    <th class="text-right">Unit Price</th>

Which can't be filtered by:
- Class, because there are several `<th>` elements with the same class
- Text content, because when content is translated, selector will fail

To solve the above, this change provides IDs for several elements, to make
possible/easier to reach them on a safely manner.

[1] https://github.com/odoo/odoo/blob/54b40f1eb096/addons/sale_management/report/sale_report_templates.xml#L15

closes odoo/odoo#60388

X-original-commit: 746bacf680c74603f63f7b46304b8fb364e0d60e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Luis González [Vauxoo] <luisg123v@users.noreply.github.com>
2020-10-20 17:00:51 +00:00
Benjamin Vray b0d58f18c1 [FIX] web_editor: fix mouse up event on active handles
Before this commit, the mouseup event was not detected outside the
body element when resizing paddings.

task-2312878

closes odoo/odoo#60380

X-original-commit: 2766eee14341a2475bc1c33a032ea05b50becc29
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-20 15:30:29 +00:00
xO-Tx 8d2f029817 [IMP] web_unsplash : update unsplash messages
The goal of this commit is to update all unsplash alert messages :

- message : "unsplash key not found"
- message : "search temporarily unavailable"
- message : "unauthorized key"
- message : "something went wrong"

and replace them with cleaner content.

task-2341558

closes odoo/odoo#59014

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-13 07:39:01 +00:00
Antoine Prieels 07a495d52c [IMP] hw_drivers: Support for Star receipt printers
Add support for Star Line Mode protocol, used by most Star receipt
printers.

closes odoo/odoo#60371

Taskid: 2365648
X-original-commit: cd0545b98fc1e7a66dd46eb6a283736ef58ac4ff
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-10-20 13:15:34 +00:00
Antoine Guenet c724da2160 [FIX] web_editor: do not insert chars around step icon on click
closes odoo/odoo#60301

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-10-19 15:45:27 +00:00
Odoo's Mergebot 3fac2f8450 [FW][FIX] mass_mailing_sms: try to render jinja content when using test wizards
# Purpose

The wizard to test a mailing does not compute the jinja part. It does
not detect syntax errors that would make cron crash

# Specifications

If there is at least one record in the mailing model then render template
completely. Thow an error if rendering cannot be done.

The downside is that we cannot test the jinja part if there is not yet any
record in the mailing's model.

Do it for mass_mailing and mass_mailing_sms.

Add tests to ensure error detection in test wizard effectively works.

Task ID-2312442
PR #55696

closes odoo/odoo#60370

Forward-port-of: odoo/odoo#55696
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-20 15:31:38 +02:00
Jérémy Hennecart 95705a4ef2 [FIX] mass_mailing_sms: try to render jinja content when using test wizards
Like the mass_mailing app we want to raise an error in case there is a syntax
error with jinja when we test the mailing and if there is at least one record
in the mailing model.

PR odoo/odoo#55696
Task ID-2312442

X-original-commit: 7370d573ae91cf442d045aec2b49332061f6c0ee
2020-10-20 12:29:29 +00:00
Jérémy Hennecart eafbc90df8 [FIX] mass_mailing: try to render jinja content when using test wizards
Before when a user clicked on the button "Test", jinja syntax was not taken
into account for the test mail sent. If an error was present clicking on the
button did not raise an error before the cron was executed.

Now, if there is at least one record in the mailing model, the template is
correctly rendered and throws an error if there is a syntax error.

If we don't have any record to render the template, we fallback on the raw
content like before.

PR odoo/odoo#55696
Task ID-2312442

X-original-commit: 92aef67cc8cd1f3ac1ac28803f69aeab1d14ca97
2020-10-20 12:29:28 +00:00
Jérémy Hennecart 6bb907ed35 [FIX] test_mass_mailing: add test for the send_mail_test action
This test ensures that when using the test sending tool of mass mailing (sms)
a wrong jinja content is detected if we have any record available to evaluate
it.

PR odoo/odoo#55696
Task ID-2312442

X-original-commit: 183a7677616ac36ed06109e22288aacb185ac097
2020-10-20 12:29:28 +00:00
Benjamin Vray b971b417c5 [FIX] web_editor: disable overlay pointer events on wheel event
This commit disable the pointer events on the overlay during the mouse
wheel event. To prevent page scrolling from stopping when hovering
over the overlay.

task-2312878

closes odoo/odoo#60367

X-original-commit: 978cd02406495e7566cefb556276e2ac2292e3f8
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-20 11:41:05 +00:00