Commit Graph
139630 Commits
Author SHA1 Message Date
oco-odoo 6abde401bf [FIX] account: also support QRR on payment form for Swiss QR-codes
When displaying a QR-code on the account.payment form view, we now pass its communication as both structured and unstructured communication, letting the QR-code generator parse it needed. This allows supporting QR-IBANs and QRR communications for Swiss QR-codes.

closes odoo/odoo#61891

X-original-commit: de6e81337d168ef296f7b0aa46aedbea1ea7a82d
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-11-17 17:59:50 +00:00
Siddarth Gajjarandqsm-odoo 3f8e4f5eef [IMP] website_livechat, *: properly position the chatbox in edit mode
*: im_livechat

Also, fix its unopened position so that it stays at the same horizontal
position when opened.

task-2369225

closes odoo/odoo#61898

X-original-commit: eb3aa203fa3033b6583a6ffddca7e80e6e1de0d2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-11-17 19:31:18 +00:00
Hardik Prajapati 625fb86abe [FIX] web: Fix the height of svg when signature is empty
Currently, in the user setting, hovering on the live chat input will
focus on the signature div due to long height of the empty svg.

So in this commit fixes the issue by adding the css property in the
svg element of signature widget due to that svg element contains the
proper width and height.

closes odoo/odoo#61897

Taskid: 2361880
X-original-commit: 6fe2a0b8b6f8dadb2eb7008019f2d7266dcf6fb1
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 19:26:05 +00:00
bit-odoo a53a0f593e [FIX] mail: Fix the issue with activity widget dropdown scrollbar
This commit fixes the issue with dropdown of activity in kanban.
The activity dropdown was cut with document inspectorbar in document
kanban view due to data-boundry window on dropdown.

Note:
Dropdown of list activity was cut on the list view and to fix that
commit[1] was done but it has side effect on document kanban view.
another fix was done in commit[2] so now commit[1] is not useful so
here revert that commit.

[1] - https://github.com/odoo/odoo/commit/cef57b930b27cb487973f251797c93ea3967a5b3
[2] - https://github.com/odoo/odoo/commit/a98f0621169144f53f4ebc9361f3b7c6b60556c8

closes odoo/odoo#61895

Taskid: 2336146
X-original-commit: 6b32689b00e96d9cfc165fe31a3a121d97874321
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 18:45:50 +00:00
Laurent Stukkens (LTU) baaaadd470 [FIX] website, website_sale: fix race condition on dynamic snippet
Prior to this commit:

    A race condition could occur when dropping the dynamic product snippet
    creating a traceback "Cannot read property 'limit' of undefined".

After this commit:

    Potential race condition has been removed from the code.

closes odoo/odoo#61890

X-original-commit: de14be4986ef4a293b99523b7dc110be3b16b8ea
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-11-17 17:59:15 +00:00
Krina Oza 5cf0f5e209 [IMP] hr(_fleet,_timesheet): Improve the UX of employee form view
Purpose of the task is to the ui of HR Settings tab, on the employee
form have to be reorganized to be more clear

So in this task, split the status details under the two new groups
'Payroll' and 'Application Settings'.

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

closes odoo/odoo#59984

Taskid: 2351762
Related: odoo/enterprise#14089
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-15 12:28:33 +00:00
Kamesh Patel 039650f824 [IMP] Fleet: driver end date activity
PURPOSE

Currently, when changing the driver of a vehicle, we don't set the end date
of the last driver and we can't automatically set it because this end
date can be another date that the start of the new driver.

SPECIFICATIONS

When we change the driver of a vehicle, add an activity to specify
the end date of the last driver.

LINKS

Task-2328981

closes odoo/odoo#58170

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-24 08:43:33 +00:00
Kevin Baptiste 32c7b1442e [IMP] project: stop recurrence on delete/archive task
closes odoo/odoo#57226

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 19:47:38 +00:00
YOGRAJ TANDEL 642bce457c [FIX] web_tour: fix issue of droplet animation follow the wrong button
Currently, when signing the document during the tour,
the droplet animation don't follow correctly the button.

So in this commit, due to timeout/Aniamation there is lag on scroll
so need to change 50 to 0.1, now droplet have correctly follow
the button, or appear after the button animation

closes odoo/odoo#56214

Taskid: 2296010
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-21 07:59:55 +00:00
Romain Derieandqsm-odoo 3ee4bc4636 [FIX] website: show mega menu over /my sidebar
Note that in 14.0 the same fix was already applied with [1]. This commit
only clarifies the line's related comment and use the right zindex
variable (even though the value is the same).

[1]: https://github.com/odoo/odoo/commit/0f2cab4aebcc33ca9e278c9395fed2cc8934ed38

closes odoo/odoo#61889

X-original-commit: 1bfc5c83ae208430cfd6e3eda72dd53aa8d3a613
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-11-17 17:58:35 +00:00
Arnaud Joset 1196605882 [FIX] payment_test: fix token name.
This commit fixes two bugs with payment_test:

First:
Before, payment test would create token without a name.

When you tried to pay your subscription on the portal with these, the following error would occurs:

```
Error to render compiling AST
AttributeError: 'bool' object has no attribute 'replace'
Template: sale_subscription.subscription
Path: /t/t[2]/div/t/t[2]/ul/li[1]/div[3]/t
Node: <t t-esc="account.payment_token_id.short_name"/>

The error occured while rendering the template sale_subscription.subscription and evaluating the following expression: <t t-esc="account.payment_token_id.short_name"/>
```

This commit add a distinct name for these token to avoid errors and confusion.

Secondly,

Before this commit when user tried to make a payment with the payment_test acquirer, the callback method was never called.
This had an impact on module where the callback method is used (mostly subscription).

closes odoo/odoo#61888

Taskid: 2367508
X-original-commit: a0e012f1578b6257816dfb1a508781d054b95198
Related: odoo/enterprise#14814
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 17:57:34 +00:00
Goffin Simon fa3a0dbac2 [FIX] sale_timesheet: Non billable task in project Overview
Steps to reproduce the bug:

- Let's consider a product P with price=100€, Timesheets on tasks and Create a task in sales order's project
- Create a SO with 1 P and confirm it
- A project PR and a task T have been created
- Assign an employee E to T and record 01:00 hour
- Create an invoice I from the SO and confirm I
- Go to the project overview of the SO

Bug:

100€ was counted twice in Non billable task and in Billed on Timesheets

PS:

When validating I, an analytic line L is created and L is not linked to PR.
That's why 100€ was counted twice because L was counted once in the 'Invoiced' part
and once in the 'Other revenue'

opw:2370418

closes odoo/odoo#61880

X-original-commit: 46d254e79900cbb76521d8e6b00f7c7597a914c9
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-11-17 16:15:35 +00:00
Florent de Labarre 95d58c75e9 [FIX] sale: wrong object mail if proforma
closes odoo/odoo#61874

X-original-commit: 304ebe3d930ca8deab71c6b8109cb73166fe7648
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-11-17 15:22:46 +00:00
Goffin Simon 7a8786f697 [FIX] fleet: Impossible to upgrade fleet
With PostgreSQL version 9.6, it was impossible to install the module fleet
A traceback was raised saying:

could not determine which collation to use for view column "cost_type"

closes odoo/odoo#61850

X-original-commit: d652dbb9655d98b4121ac685e6444bbf7e303292
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-11-17 15:29:21 +00:00
Thibault Francois bb42687206 [FIX] hr_holidays: Cannot save regular allocation
Problem
-------
For regular allocation that have an empty date_from
(Allocation existing before 14.0),
it's not possible to save any change since an invisible field is required
and cannot be set.

Solution
--------
The field date from should be only required for type accrual

closes odoo/odoo#61892

X-original-commit: 700e584dd22fb7bc845675b4a49a3e5a85a7253a
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 18:00:22 +00:00
Laurent Stukkens (LTU) 94909c3f0f [FIX] hr_contract: order contract_ids by date_start desc in hr_contract_history
Prior to this commit:

    * The contract_ids one2many widget in the hr_contract_history form was not sorted
      desc.

After this commit:

    * The contract_ids one2many widget in the hr_contract_history form is correctly sorted
      desc.

related PR's: odoo/enterprise#14647, odoo/upgrade#1939

closes odoo/odoo#61512

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 13:37:49 +00:00
Krina Oza b6e1261b37 [IMP] note: Default filter should be on "Today or Late Activities"
Purpose of the task is, to remove the behavior inconsistency with
"scheduled activities" on notes with other modules.

Currenlty, For all the other models, when clicking the line in the
"activities" top menu, you arrive in a kanban view which is filtered
to only list objects which actually have scheduled activities on them,
for notes it displayed all the user's notes regardless of any activity
scheduled or not.

So in this commit, Make the behaviour consistance with other modules and
remove the override of the method to open the all the notes.

closes odoo/odoo#60777

Taskid: 2312083
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-27 09:43:46 +00:00
Dominik Rubo 3e768c232f [FIX] project: fix language errors
This commit fixes various types of language errors in strings visible to the
user, including
- singular/plural mix-ups
- missing or incorrect punctuation
- missing or incorrect articles
- inconsistent use of title case and sentence case and other capitalization
  errors
- mixed-up words
- missing words
- incorrect prepositions
- missing or incorrect apostrophes

closes odoo/odoo#60189

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-17 17:19:30 +00:00
Hardik Prajapati 2e19c34b1f [FIX] coupon: domain selector visibility in modal
Currently, when inline domain selector is inside the modal dialog
then the domain selector popover hide inside the modal body due to
auto scroll on modal body. domain selector in dialog is rare case and
here there is less content inside the coupon dialog due to that we can
use the overflow visible for this specific wizard(modal dialog).

So in this commit, fix the issues by adding overflow property in the
modal body due to that, it will always display on top of the modal.

closes odoo/odoo#59594

Taskid: 2225272
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-09 09:55:14 +00:00
Ivan Yelizariev fe38009e8f [FIX] sale: fix custom values order in product description
STEPS:
* activate Product Configurator
* create 3 attributes with custom values option
* create a quotation with a product having all 3 attributes and custom values
* select the custom values for attributes in different orders for each SO line

BEFORE: Product description get random order for the custom attributes list

AFTER: Order is fine

---

opw-2379778

closes odoo/odoo#61869

X-original-commit: 57eb05071a08251171dcfdb2308feb13c3281fa7
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2020-11-17 14:44:59 +00:00
Nicolas Martinelli b0670da86b [FIX] point_of_sale: prevent closing the same session twice
- Create a POS session
- Sell some items
- Close the session, go to the closing page
- Duplicate the browser tab
- Close the session in tab 1
- Close the session in tab 2

The journal entries are created twice.

There should be a server check before closing the session.

opw-2379278

closes odoo/odoo#61860

X-original-commit: 0ba535c5123fecb410fa7546b5bb39a52884ca40
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-11-17 14:11:15 +00:00
Bonis Modi 4bc886c181 [FIX] various: Disable mass editions on onboarding list views
Purpose of the task is,  user's get 'stuck' through onboarding because
of multi edit feature.
When records are selected user can't open that records just when they
leaves from multi edit/mass edition then that feature will works.

So in this commit, removing multi_edit="1" from some onborading
tree views.

closes odoo/odoo#61264

Taskid: 2373161
Related: odoo/enterprise#14578
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-04 08:45:02 +00:00
Kevin Baptiste af357fecd6 [IMP] hr: enforce selection of one advanced control option
Before this commit, it was possible to activate the Advanced Presence
Control feature without any advanced feature enabled.

This commit enforces the selection of *at least* one of those option
(email or IP).

closes odoo/odoo#60498

Taskid: 2361870
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-12 09:17:57 +00:00
Krupal Oza 4097829caa [IMP] hr_recruitment: Several improvements for mobile view
Purpose of this task is to improve mobile interface for Recruitment App

So in this commit, Done the below changes for mobile interface:
 - In the job position kanban view :
    - Align the logo of Link Trackers with the job description.
    - Reduce the space between header and job description.
 - Create new kanban view of Job sources so be default it will
open the kanban view.

closes odoo/odoo#59512

Taskid: 2333976
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-20 04:53:53 +00:00
Kevin Baptiste 49dfed790f [FIX] rating: return correct last rating value
Before this commit, the last rating value returned was not the last
consumed one.

closes odoo/odoo#61868

Taskid: 2260685
X-original-commit: 5fd11c46a4a12ffb977b15511e6eaf744cd8e0b6
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2020-11-17 14:43:48 +00:00
Krina Oza 04822fb52a [IMP] hr_contract: Added the hr_contract App icon
Purpose of the task is to add  the App icon for the hr_contract module

closes odoo/odoo#60423

Taskid: 2360070
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-12 10:52:20 +00:00
Achraf (abz) 6d78c58ceb [FIX] product: Change public pricelist currency when changing main currency
What are the steps to reproduce your issue ?

    1. Go to 'odoo.com/trial' and create a database with 'account'

    or

    1. Start local server with a new database and with '--without-demo=all --init=account'

    2. Change main currency from 'EUR' to 'USD' in settings

What is currently happening?

    Error raised when trying to install 'point_of_sale'

What are you expecting to happen?

    Install 'point_of_sale' normally even after changing main currency

Why is this happening?

    But there is a condition which verifies that there is not already
    a pricelist with the currency we want to set or with the currency
    of the company. Otherwise it prevents the pricelist modification

How to fix the bug ?

    Change the condition so that it allows the change of the pricelist
    in the case where the currency we want to set is not the same as the
    currency of the company

opw-2376457

closes odoo/odoo#61847

X-original-commit: 716e0e791da1e4647dab29959b7012e366aa7b1f
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2020-11-17 12:01:33 +00:00
Raphael Collet af6c56711f [FIX] core: avoid access error when flushing
This patch guarantees that computed fields with `compute_sudo=True` do
not cause access errors when fetched from database.

This fixes a non-deterministic access error upon `commit`, where fields
are recomputed and flushed with some random environment.  The method
`recompute` performs its duty by accessing the fields to recompute.  The
compute method of a field is called but does not assign it.  As the
field is not in cache, its value is read from database.  However, as the
latter is not done in superuser mode, it may cause some access error.

closes odoo/odoo#61842

X-original-commit: cfb942ab5902e0992434eb2c7db2940526df404e
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-11-17 11:32:42 +00:00
Benoit Socias a5fc632682 [FIX] website_sale: find abandoned cart using specific delay per website
Before this commit the search for abandoned carts was always using a delay of
one hour if no ebsite in the context.

After this commit the search for abandoned carts uses the specific cart
abandoned delay configured for each website and the related public partner_id.

This commit closes #59709, #54932

closes odoo/odoo#61671

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-11-17 12:49:47 +00:00
Krina Oza 42965b16cb [IMP] various: Update the app icons
Purpose of the task is to update the icon of the various modules.

So in this commitn updated App icons of the following modules:

-fetchmail
-iap
-mail_bot
-partner_autocomplete
-sale_timesheet
-sms
-snailmail

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

closes odoo/odoo#60817

Taskid: 2369682
Related: odoo/enterprise#14408
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-27 13:19:20 +00:00
Benoit Socias 317266d4e3 [IMP] payment, payment_test: missing payment token identifier
Before this commit payment tokens had no name for Test Payment Acquirer

After this commit tokens generated by Test Payment Acquirer have a name
that combines the last 4 digits of the card number and the card account
holder name

https://github.com/odoo/odoo/issues/50965

closes odoo/odoo#61848

X-original-commit: e20f0650acbd1a7a918375a70ec5c89606523a7b
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-11-17 12:08:11 +00:00
Hiral Bhavsar 90546e4aaa [FIX] web: handle mail delivery exception
Before this commit:

When trying to send the notification for the user form, it shows a traceback.
This is happening after https://github.com/odoo/odoo/commit/ab4000fb3cf8fa54ba714ceceec391b78d73755e

After this commit:

Send the notification without any traceback as handle
the MailDeliveryException inside CrashManager

Task-2333121

closes odoo/odoo#61832

X-original-commit: 3aadcf1ad42e704c369910628a1549d1e777c959
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-11-17 10:40:46 +00:00
Jairo Llopis 012eec250a [FIX] website_slides: embed YouTube videos without cookies
Due to recent legal changes in EU, you cannot install tracking cookies in a user's browser without explicit consent.

Before this patch, Odoo embedded youtube videos were violating that law (AFAIK & IANAL).

With this simple patch, you benefit from YouTube's offering to embed videos without cookies. The UI remains the same, but no tracking is done.

@Tecnativa TT26153

closes odoo/odoo#61828

X-original-commit: a1a1169f28233b69cd70d01621d605b36517ac73
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-11-17 09:55:43 +00:00
Nicolas Galler f0232808c2 [FIX] sale, sales_team: fallback to partner's team
Behavior prior to the commit:

- when setting the customer (partner) on a sales order, the sales team
is set based on the partner's sales person.  If there is no sales person
on the partner then the team defaults to the first team in sequence for
the company.
- the team set on the partner is not used (by default, this field is not
visible, but it can be set from server action or added via studio).  In
Odoo 12.0 the team set on the partner was used as a fallback, but this
was removed in commit 242be00429

Behavior after the commit:

- the partner's team is used as fallback when the partner is updated
- when the salesperson is updated on the quote, we also use the current
team as fallback (since presumably this was set either from the partner,
or using the existing default rule, there is no reason to change it)
- in debug mode, the field `team_id` is shown on the partner view (under
the `Sales & Purchases` tab)

Note:
- Change in existing installation is expected to be minimal since it only
affects the customers who are making use of the partner.team_id field, not
populated or displayed by default, but there is a risk for a customer who:
   1. has that field populated on existing partners (maybe upgraded from
   an old install where it was displayed?)
   2. is relying on the new (as of v13.0) behavior of assigning the default
   sales team based on the sequence

opw-2351868

closes odoo/odoo#61827

X-original-commit: 7683e1907f6eb1fde4626927957df4eede49b8ca
Signed-off-by: Nicolas Galler <ngaller@users.noreply.github.com>
2020-11-17 09:49:35 +00:00
Jérémy Hennecart ffa891f713 [FIX] website_crm_partner_assign: fix condition to assign salesman
The first stage has not always its sequence equal to 1. So if the
probability was for example equal to 0, then the salesman will not
be set to the new lead.
Since when we create a lead, the default stage is the first one in
the sequence. We only need to check if the lead is not already won
when we create a lead and try to assign the salesman to it.

task-2329327

closes odoo/odoo#61816

X-original-commit: c5059aa151430eebd62e9f000fe43e87bdd89ff3
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-11-17 08:55:18 +00:00
Goffin Simon 440e892ed7 [FIX] base_automation: traceback on updates
Steps to reproduce the bug:

1.Create an automated action with the following:
   - Model: Task (project.task)
   - Active: True
   - Trigger: On Update
   - Action To Do: Create Next Activity

2. Open or create a task in Project module
3. Edit
4. Change or set customer (partner_id)

Bug:

An error message was raised.

opw:2376492

closes odoo/odoo#61812

X-original-commit: b3415d9dd0bcc1053e47b8a0082c772ca4a8220f
Related: odoo/enterprise#14772
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-11-17 07:50:13 +00:00
root 76a969e1fd [FIX] l10n_ch: map tax report to right country
Before this commit the tax report links to Brazil while the chart of account is Switzerland.

By changing the ref it now installs the tax report with the right country set.

closes odoo/odoo#61806

X-original-commit: 93e44b6d85564b6fde99053ccb16399e224477e3
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-11-16 17:51:35 +00:00
Didier (did) edc8f85c3a [FIX] mail: always hide the dropzone when something is dropped
Before this commit, when an invalid element was dropped (e.g. dragging a
mention) the drop area freeze and make the UI unusable.

task-2373971

closes odoo/odoo#61792

X-original-commit: 629b54dc1249c77d1e30240c0b5a91e22a1ae110
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-16 15:13:45 +00:00
Martin Trigaux e433bc57ff [FIX] *: rephrase, correct typos
Courtesy of Transifex's translators for reporting bad/unclear sentences.

closes odoo/odoo#61804

X-original-commit: f5d0f4a1ebf406583889e9e04912d40c0693343e
Related: odoo/enterprise#14769
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-11-16 16:47:28 +00:00
qsm-odoo b453663500 [FIX] website_form: allow to add form snippet inside columns
closes odoo/odoo#61799

X-original-commit: bcb22aca37aa6f7301bc92fa3ae52f53d1044d97
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-11-16 16:02:06 +00:00
Antoine Prieels e5ffccdb28 [IMP] hw_drivers: Add action data in IoT events
Add all the request data in events triggered by IoT actions.

closes odoo/odoo#61798

Taskid: 2320958
X-original-commit: a8c56602ba8301b6e901be7ffeaa219d77401f79
Related: odoo/enterprise#14763
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-11-16 16:01:22 +00:00
Antoine Prieels f3b5bf6b3f [FIX] hw_drivers: Lost IoT events
Events coming from the IoT Box were lost in two cases:

1. Create a listener for device 1
2. Send an action to device 1
--> If the action arrives before the listener the event is never sent
to the DB

1. Setup up two listeners for devices 1 & 2
2. After a few seconds, send two consecutive actions to devices 1 & 2
--> Everytime a longpolling request arrives, a new threading.Event
object is created. The first action sets the event, then, before the
new longpolling request arrives, the second action sets the same event,
which is overwritten once the new longpolling request arrives.

We now maintain a list of events, and when a longpolling request
arrives on the IoT Box, we make sure that all events that occured in
the last 5 seconds were received by the DB. If no events were pending,
we wait 50 seconds to check if a new one pops up.

Taskid: 2320958
X-original-commit: e3260712ce96a8d81bf807574c334d92c37c6ae4
2020-11-16 16:01:21 +00:00
Sébastien Theys 91bbdf41f4 [FIX] mail: fix race conditions, especially with scroll
The `_update` of some components must take place before the `_update`
of other (usually sibling) components that might directly influence their
layout. This is in particular the case for `_update` that are relying on height.

Prevent force save of scroll position if there are pending hints to adjust it,
and prevent pending hints from overriding new scroll value.

Prevent flicker with message date.

This should fix all known issues related to incorrectly saving or restoring
scroll position.

task-2344226
task-2358066
task-2369332
task-2372339
task-2373741

closes odoo/odoo#61791

X-original-commit: 2002c6a599a685f4a18fc670a9f7992c8d595c0f
Related: odoo/enterprise#14759
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-11-16 15:40:10 +00:00
Emilien Durieu (edu) c65e284dcc [FIX] web_editor: image overlay did not update with changes
The blue overlay on the snippet currently being edited did not update when the size or place of the element changed.
The overlay is now edited on each Jabberwock commit.

closes odoo/odoo#61716

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-11-13 12:16:22 +00:00
Aurélien Warnon a3aa45414b [FIX] website_slides: fix archive/unarchive slide.channel behavior
PURPOSE

This commit fixes the behavior of archiving and un-archiving slide.channels.

SPECS

When archiving a slide.channel, you could run into an issue where the
associated slide.channel.partners would be marked as "completed" even though
the related slides were NOT completed by the user.

This happened because when computing the completion, it's searching for
slide.slide.partners marked as completed, and then comparing it with the count
of slide.slides in the channel, which would always return 0 since all slides
are archived when the channel is archived.

Marking channels as completed when they should not triggers undesired
side-effects (karma increase, completion email sent, ...).

Now, when the slide.channel is not active, we don't mark associated
slide.channel.partners as completed anymore.
The ordering in which we archive channel and slides was also altered, see
method docstring of 'slide.channel#toggle_active' for more info.

A new test ensures the correct behavior of archiving.

LINKS

Task 2170708

closes odoo/odoo#61773

X-original-commit: f7795f85ed66fcebaf8a96bf4e550b069fcf1e83
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
2020-11-16 13:40:47 +00:00
Andrea Grazioso (agr-odoo) 060175cc07 [FIX] mrp: fix backorder quantity uom
Activate units of measure and workcenters (work operations)
Create Product C, uom Kg
Create Product F, uom Kg
Create BoM for F, 2000g manufactured from 5000g of C
Set 1 operation/work order in the BoM: processing
Create MO to produce 2kg (change the uom in the MO) of Product F
from 5000g Product C
Confirm MO and go to the work order put the quantity of Product F to 1 Kg
then click Record Production/Mark as Done

The manufacturing backorder is automatically created but is not
showing the components.

This occur because of a mismatch between the uoms, `move._split` expect the
parameter `qty` to be based on the product uom, instead it is the quant uom
because the BoM was created using a different UoM than the one defined
in products

opw-2376217

closes odoo/odoo#61782

X-original-commit: 8b32e558fde3cb3aaa1deb40acb07488d04d343e
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2020-11-16 13:10:31 +00:00
Jorge Pinna Puissant 6e594f9537 [FIX] account,point_of_sale: increment customer supplier rank to commercial partner
Before this commit, if a customer/supplier has an invoice address, when
creating an invoice/bill it's the invoice address that will be
identified as the customer/supplier and that will have its rank
increased and not the commercial partner.

Now, the rank increment is done to the commercial partner as well.

opw-2377870

closes odoo/odoo#61778

X-original-commit: dbf042611ccb134a220704d6b775aab650364ca2
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-11-16 12:25:34 +00:00
Aurélien Warnon 46cc27cc6e [FIX] web: improve the hit box of the kanban quick_create
When the user clicks outside of the kanban quick create element, it's closing
itself automatically.

However, the "hit box" of this behavior is not entirely accurate and clicking
on the very edge of the box would also close the element.

This commit fixes the click behavior and allows clicking anywhere inside the
quick create element.

Task 2373095

closes odoo/odoo#61763

X-original-commit: 72ed82489daa2b82628dfdefeb06262e17e6548e
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
2020-11-16 09:58:10 +00:00
nie c767ed9380 [FIX] base: print modal stays open after PDF download
Steps to reproduce the bug:
- Install invoicing
- Create an invoice and confirm it
- Click Send & Print above the invoice
- Click Send & Print again in the modal

Bug:
The modal stays open after having downloaded the PDF

Explanation:
`close_on_report_download` was cleaned out here: https://github.com/odoo/odoo/blob/2fd4e48cbb673175323fb866d87e654c5c9e05ac/addons/web/controllers/main.py#L332-L337 and wasn't forwarded to the frontend.

opw:2375920

closes odoo/odoo#61757

X-original-commit: f5abe6626fcd14f18cd84af7adf48f327ee9ed6d
Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-11-16 09:15:20 +00:00
Jeremy Kersten 1669bf81eb [FIX] google_recaptcha: remove autoinstall on google_recaptcha
You can enable it in base_setup when you need it.

Depends of base_setup and not ir_http or website because you need to
be able to enable it for login form e.g.

closes odoo/odoo#61520

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-11-09 09:27:23 +00:00