Commit Graph
145331 Commits
Author SHA1 Message Date
Mathieu Duckerts-Antoine 75f8814afd [FIX] crm, web: forecast views
After the conversion of the graph and pivot views done in https://github.com/odoo/odoo/pull/73311,
it was no more possible to open the forecast_graph and forecast_pivot views.
This is due to the fact that the new View component cannot manage a legacy
view: every extension of a converted view must be converted. We thus
convert forecast_graph and forecast_pivot.

closes odoo/odoo#76793

X-original-commit: ff28db335fa77dadc3198e754f1e0649811fba7b
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-09-20 10:54:23 +00:00
wan 3dadf5214b [FIX] l10n_cl: fix dc736ccd51c25e2f793fe9d5b858e332565352f1
Remove hardcoded value and extra space.

closes odoo/odoo#76782

X-original-commit: 093a8b4fd7fc9b44f66d3404f097b35cdd4b6315
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-20 10:54:19 +00:00
Manuel Fombuena 31fda28b95 [FIX] base: en_GB, week_start: Monday
Monday is commonly accepted as the first day of the week in the UK.

Listed as first option on https://www.unicode.org/cldr/cldr-aux/charts/29/supplemental/territory_information.html#GB with Sunday as an alternative.
All mayor OS (Windows, Mac, iOS) use Monday as the first day of the week when the locale en_GB is used.

closes odoo/odoo#76780

X-original-commit: d7dfa09a2bd649cc3370b3e918469c2a3cdddc95
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-09-20 10:54:15 +00:00
Sébastien Mottet (oms) 84e712e6b8 [IMP] website: add menu/footer bg color in configurator palettes
Menu and footer background colors are retrieved from scss and added
to the palettes. The chosen palette is sent to iap-service for the
theme preview svg generation. From now on iap-service will be able
to use specific menu and footer color for the svg preview generation.

task-2602521

closes odoo/odoo#76774

X-original-commit: 857022c5955f173f5814beb5345ec9e13f089964
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-20 10:54:11 +00:00
Sébastien Mottet (oms) 6846191e85 [IMP] website: add 'no result' message for industry selection
When the user search for an industry in the industry autocomplete
input, an information message is now displayed if no industry match
the user's search.

task-2602521

closes odoo/odoo#76773

X-original-commit: 93df93c966b097f671ab63de2e778ad1662953d6
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-20 10:54:07 +00:00
AlfaFza 9adec35c7e [CLA] AlfaFza
closes odoo/odoo#76765

X-original-commit: 3e233d976de80d222db0663e41b04df6b3b610aa
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-09-20 10:54:00 +00:00
Arnold Moyaux 0e2c4becf2 [FIX] stock: avoid breaking global scss for thead
commit bc1a6faa51fef60bb64ea09f4e43f1120f9855bd add a rule to fix
tracability report but on a global level. However we won't this behavior
everywhere in odoo or at least if it's the case it shouldn't be specify
there

closes odoo/odoo#76713

X-original-commit: f96c78f701831ed7aa1798765e3e5f81d1a689c1
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-09-20 10:53:56 +00:00
sofiagvaladze 42089cb78c [IMP] hr_holidays: Time Off dashboard information tag popover
Purpose: From the dashboard, the user sees the number of left time offs,
but does not have an information regarding how it is calculated.

In this task, we add an information tag on the Time Off dashboard
next to each Time Off type that requires allocation.
When we hover over the tag, we see how is the number calculated.

For example, it could look the following way:

Allocated : 20 days
Approved: 5 days
Planned: 3 days
-----------------
Left: 12 days

task - 2643115

closes odoo/odoo#76682

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-09-20 10:53:49 +00:00
Sébastien Theys 312fa7faad [IMP] mail: show message delete confirm dialog when editing it empty
closes odoo/odoo#76594

X-original-commit: db487735f03c9a948d83eedbd2a149241ebd8e1b
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-20 10:53:45 +00:00
Touati Djamel (otd) 95e56d75ad [FIX] l10n_cl: correct Chilean VAT formatting
Problem 1 steps to reproduce the bug:
- Install `l10n_cl`
- Create a new company
    - Choose for example Algeria in country.
    - Enter this VAT number: CL220604497
- Save
- edit
- Change the country to Chile

problem:
VAT number is not formatted according to the Chilean VAT formatting,
Because in the write function we do not trigger the VAT formatting when the country changes

Bug introduced in this commit: https://github.com/odoo/odoo/commit/11ec94df926db98265d26af1072a0c8bf1843083

Problem 2, steps to reproduce the bug:
When you install `l10n_cl`, a Chilean company is created with these demo data: https://github.com/odoo/odoo/blob/7cc252908b33b7d77d45d0630464e203b25b09dc/addons/l10n_cl/demo/demo_company.x15ml#L

- The VAT is formatted according to the standard formatting instead of the Chilean vat formatting,
Because the field `" l10n_latam_identification_type_id "` is not defined: https://github.com/odoo/odoo/blob/f3a66dd65d041ffc7367d85d5603e9627efb9f2b/addons/l10n_cl/models/res_partner.py#L33-L34

so we will have this result: CL220604497 instead of 22060449-7

- create a vendor bill with this company
- try to print it
- a traceback is triggered, because we call the `_format_dotted_vat_cl` function which divides the vat in two parts
based on the dash and then processes the result without checking that there are two elements in the result.
As in our case here. The vat has no dash in the middle, so we will only have one part
an error is triggered when the function tries to access the 2nd element

https://github.com/odoo/odoo/blob/2b500c12c2540e593f3a243bf80de28bd335b7be/addons/l10n_cl/views/report_invoice.xml#L53

opw-2630877

closes odoo/odoo#75936

X-original-commit: d1369dbcc6c40297e7616b990aefa87a2eb4d5c3
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-09-20 10:53:39 +00:00
Aaron Bohy 4bf3667e40 [REF] web: remove ControlPanel's BottomContent feature
This commit simplifies the API of the ControlPanel by removing a
feature that isn't really necessary. It was used only once, in
web_dashboard, and there are simple alternatives.

closes odoo/odoo#76776

X-original-commit: 6ddc9b3256266fc393faaaddb1b49140e6a1990f
Related: odoo/enterprise#20990
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-09-20 09:30:04 +00:00
Nathan Marotte (nama) e2c819351f [FIX] account move: Due date not updated when invoice_date changed
Issue: When changing the bill date (invoice_date) of a vendor bill,
the due date (invoice_payment_term_id) is not updated correctly

Steps to reproduce :
1) Install Accounting, Purchase
2) Create a vendor bill
3) (debug) Edit the view, remove the invisible attr for the div with
label invoice_payment_term_id
4) For the vendor bill, in that order, set the Vendor, then the due date
to 30 days, then bill date, then add a product
5) Due date is now set to 30 days after the bill date
6) Change the Bill Date
-> Due Date stays unchanged

Thanks to @smetl for writing the test !

opw-2627686

closes odoo/odoo#76736

X-original-commit: d15e0a678b021d842b96bce9c8880ed28f7fff77
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: Nathan Marotte <nmarotte@users.noreply.github.com>
2021-09-20 09:30:00 +00:00
Nathan Marotte (nama) 9bdb206096 [FIX] mrp_workorder quality: product and template desynchronized
Issue : When selecting mrp_operation as picking_type, the product
variant is not changed

Steps to reproduce:

Install Quality, MRP
Disable variants
Edit View: Form (debug mode) and remove
groups="product.group_product_variant" to show the variants
(This is done so we can see the issue in the backend)
Set a product
Changing product changes the variant
Set the operation to manufacturing
Set another product
-> The variant is not updated
Why is that a bug:
It can lead to some problems if the variants are disabled and then
enabled at a later time for the company

Side-Note:
The original bug related to the related commit was not present in
v13 as said in the related commit opw discussion

Related commit 2dc2003
opw-2515100 (related to opw-2490412)

closes odoo/odoo#76707

X-original-commit: 441fb1e9ee97e2dcc1c2bd1a9fdb393d006aa1a5
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Nathan Marotte <nmarotte@users.noreply.github.com>
2021-09-20 08:13:02 +00:00
Aaron Bohy 804e83d771 [FIX] web: adapt clickbot to new views
Since d1e227b07 and 242b1caa, the Pivot and Graph don't have the
viewType attribute set anymore.

Moreover, their filters don't have an "a" tag anymore.

closes odoo/odoo#76634

X-original-commit: 7d24a87a51c8202320ecf9abcfecb8a861463b0c
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2021-09-20 05:58:21 +00:00
Adrian Torres bbee0b3081 [FIX] base: allow setting group_expand for ir.model.fields
PR #75856 introduced a default implementation of group_expand for
Selection fields that set the value of group_expand to True.

However the PR lacked the necessary bits that allow the same behavior
for fields created on the fly instead of through code.

This commit allows the propagation of the group_expand attribute for
fields of type Selection, this commit also exposes the checkbox in the
UI to enable/disable the setting.

closes odoo/odoo#76775

X-original-commit: 1cacc3e53cf722a31bedff7a76f8e5cc6ed45ce0
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2021-09-18 17:00:52 +00:00
Stefan Rijnhart 84cb5433ab [FIX] website_forum: prevent error when creating multi
closes odoo/odoo#76496

X-original-commit: f827177ef434eeb14e1214ff8948ee807d90de3a
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-18 14:03:46 +00:00
Goffin Simon d5c64d1353 [FIX] sale: Partial payment link with invoice policy based on deliverd qty
- Configure payment stripe to be available on the web shop
- Let's consider a product with P (sales price = 100€) invoice policy based on delivered qty
- Set in the config parameter sale.automatic_invoice to True
- Create a SO with P and generate a payment link PL for 50€
- Go to PL and pay it

Bug:

An error was raised because there was no invoicable line when computing the
invoice of SO

opw:2635175

closes odoo/odoo#76735

X-original-commit: 846bc047fcd546bf5b8e7fe224b8a98e876eba21
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-09-18 12:52:04 +00:00
Philémon van Helden ca9aebf8c2 [IMP] web_editor, *: add btn to form editor to redirect in the backend
* website, website_form_project

In master, there was an error when adding a form to a website and
selecting "Create a Task" with no active projects. This issue was solved
in PR #73269, by allowing tasks without a project associated. This
introduces a new problem: if a user wants to create a project (e.g. if
there is no active project), they will have to save their changes, close
the editor, navigate to Project, and only then will they be able to do
it. This issue could happen for other modules, so the solution has to be
generic.

In this commit, we add the possibility to add a button to the form
editor, next to a we-select item, which will redirect the user to a
specified action after prompting them to save their work. This button
can be added by specifying an action window in the corresponding
registry.

We also add the action window to the website form project editor, so
that the user can be redirected towards the Project app if they want
to create a project to select in their form.

task-2580436

closes odoo/odoo#76772

X-original-commit: e4233643b93b521454cc146c6a2ae876781fb9ba
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2021-09-18 05:42:55 +00:00
lejeune quentin 59e9bf5981 [FIX] pos_adyen: Retry automatically to get last status
When making a payment intent from Adyen terminal with the POS, the payment intent was validated by Adyen
but Odoo stopped polling because a connection failure happened.

With this fix we use the remaining_polls already implemented to get the adyen status with a interval of 3 secondes.
If after 3 tries of 3 seconds each it still fails we can retry manually.
Related to dcb1e2b4823c917f4c547d2cad604187f893948d and f83d1b13a96f8df559918b5905b949009d2ece88

opw:2587625

closes odoo/odoo#76768

X-original-commit: 325b7dde0da6cca27f0d468d1358702d52b8cbaa
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2021-09-18 04:26:54 +00:00
Florian Gilbert (flg) 25cd5705f6 [FIX] l10n_fr_pos_cert: Remove useless "s" that is not a parameter of bank statement.
closes odoo/odoo#76749

X-original-commit: ef1fd7291dc066a39df7c0af9fd6971caeb8a600
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: Florian Gilbert <FlorianGilbert@users.noreply.github.com>
2021-09-18 03:10:44 +00:00
Touati Djamel (otd) d40f4f592b [FIX] account: recompute the payment terms only if there is an invoice
Bug introduced by this commit: https://github.com/odoo/odoo/commit/f05db8b122140a9d0f124484ab22eb094b4e36e9

Steps to reproduce the bug:
- create a journal entry with 4 ”account.move.line”:
    - two `”account.move.line”` with accounts of type ('receivable' or 'payable') > with the amount of both in debit or both in credit
    - two `”account.move.line”` with accounts other than the type ('receivable' or 'payable')
- save
- duplicate the `“account.move”`
- validation error will be triggered: https:github.com/odoo/odoo/blob/14.0/addons/account/models/account_move.py#L3209-L3211

Problem:
The payment terms must be recomputed only if the `”account.move”` is an invoice

OPW-2642826

closes odoo/odoo#76779

X-original-commit: 52482ae43f38a95bce9e17f2e455378d1badc893
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-09-17 23:59:41 +00:00
Aaron Bohy e6bc5bfde6 [IMP] web: add graph test from legacy
Commit [1] fixed a bug in the legacy graph view and introduced a
test. This was done while we were re-writting the graph view in
owl. This commit adds the test added by [1] in the new graph test
suite.

[1] 11eb4542ab

closes odoo/odoo#76778

X-original-commit: c5ac7fc541cbdb0a7fe7c9d01849bcc9a615a78c
Related: odoo/enterprise#20992
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-09-17 23:59:34 +00:00
Aaron Bohy 040c73fe69 [FIX] web: fix concurrency issue in graph
Let's assume the following scenario in a graph view
 - toggle a filter on a slow network s.t. it takes a while to load
 - while it's loading, toggle a measure

Before this commit, the view was kind of locked after those two
steps, i.e. toggling measures or changing graph mode did not work
anymore (it could be unlocked by interacting again with the search
view though). The reason is that the new filter triggered a
re-rendering of the withSearch component (the parent of the graph
view), thus calling willUpdateProps on the graph view, which reloads
the data. Toggling a measure cancels the current load operation
(via keepLast), and the promise returned by willUpdateProps is thus
pending forever. From that point, only another re-rendering from the
parent (withSearch) could unlock the situation by cancelling the
previous rendering.

To solve this, we use the new Race primitive. It ensures that the
promise returned by load resolves as soon as the view is actually
reloaded (whether it came from the load itself, of by toggling a
measure).

This commit also refactors the pivot model to use the Race
primitive.

X-original-commit: ceebab7128cb9838024029aefe3910a18cf14e44
Part-of: odoo/odoo#76778
2021-09-17 23:59:34 +00:00
Aaron Bohy cc9c229fda [IMP] web: add Race concurrency primitive
This commit adds a new concurrency primitive inspired by
Promise.race, except that it is dynamic (promises can be added to
a Race instance anytime).

X-original-commit: 4a487524d69ac7ede68296ea4e1f51e1b769d642
Part-of: odoo/odoo#76778
2021-09-17 23:59:33 +00:00
Francois (fge) 08c001957d Revert "[FIX] point_of_sale: prevent menu_service from loading"
This reverts commit 7ddcebfcda.

The 8756e69b5de993d22de908606a328b607ea0a68a commit moves
computeAppsAndMenuItems out of menu_service. So we can remove
menu_service from pos again.

closes odoo/odoo#76777

X-original-commit: dfcfe63c976a017460a1f786f212452d64466272
Related: odoo/enterprise#20991
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-09-17 23:59:20 +00:00
Francois (fge) 6e95fda6d0 [MOV] web: move computeAppsAndMenuItems to menu_helpers
X-original-commit: be602afc7e566ab783bcebaf80b8bdb14b6ebba6
Part-of: odoo/odoo#76777
2021-09-17 23:59:20 +00:00
Francois (fge) e0e4d38cdd [MOV] web: move /commands to /core
We move /commands to /core because DebugMenu depends
on /command/command_hook. All the files in /commands depend only
on /core or /commands except for menu_providers which we will move to /menus

X-original-commit: eca8cd478b72d81b2293c22d2c9c41d1f94be16a
Part-of: odoo/odoo#76777
2021-09-17 23:59:19 +00:00
Francois (fge) db7d95eaac [FIX] website: missing dependency in debugMenuService
DebugMenu depends on services:
- location => env._t
- command => useCommand hook
This is add by dca9ca6464.

X-original-commit: 008ed3e77733a7fa524da246ce27c056260203cb
Part-of: odoo/odoo#76777
2021-09-17 23:59:19 +00:00
William Braeckman 13084f0faa [FIX] account,mail: fix no depends not computing field
Computed fields with no depends are not computed before record creation
rendering those fields empty instead of being computed on the first
request.
By adding a depends (the field does not actually depend on it) the field
is computed correctly and may be used directly.

TaskId-2647225

closes odoo/odoo#76744

X-original-commit: f03e74317a40957a355235b92dacff6310fbdd5b
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-17 18:52:49 +00:00
Christophe Monniez 4dcd29284d [FIX] crm: disable hazardous tests in lead assignment
Some tests in this test class are leading to uncertain results and fails
randomly.

With this commit, the whole test class is deactivated until a fix is found.

closes odoo/odoo#76743

X-original-commit: 39545ba5b3c080ae3e651c4f9d25aa190582429a
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-17 18:52:45 +00:00
William Henrotin cba96dec0a [FIX] mrp: merge move with same cost_share
Byproduct moves with same cost_share can be merge but only if there is
no other move with different cost_share in the list of move. This commit
allow merge move with same cost_share in any cases.

closes odoo/odoo#76709

X-original-commit: 41bd26f6522cf9f4e11962399504030c36512c39
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2021-09-17 17:39:45 +00:00
Francois (fge) 0361b60274 [IMP] web: adapts the UserMenu Shortcuts Table
In UserMenu Shortcuts Table, we correct the shortcuts for MacOs and
we add the shortcut to open the command palette.

closes odoo/odoo#76614

Task-id: 2646058
X-original-commit: af69aef93a1bec4eccf0813aeacb26e3bd1098ea
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-09-17 12:38:57 +00:00
Francois (fge) e13c41a45f Revert "[FIX] mail,web: Change command palette shortcut"
This reverts commit 2623b4591d.

The command+m shortcut on safari is not listenable. Safari prevents to
catch events of some shortcut reserved for OS actions. Command+m is
used to minimize the app. This makes it impossible to open the command
palette on safari. So we decided to use again the command+k (ctrl+k)
to open the command palette.

X-original-commit: ca0e37cc20da907d74245e935416d66a52976c5e
Part-of: odoo/odoo#76614
2021-09-17 12:38:57 +00:00
Mathieu Duckerts-AntoineandMichael Mattiello cad6408e6e [FIX] web: toJSON for date classes
The classes PyDate, PyDateTime, and PyTime used in py.js to evaluate
python expressions did not have a toJSON method. As a consequence, the
dynamic domains manipulating date/datetime but forgetting to use strftime
didn't work anymore. This fix simply defines a toJSON method in the three
above mentionned classes

closes odoo/odoo#76699

X-original-commit: 53eefe36f39e6c9ad355e78bcabbba4e0039aa35
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Co-authored-by: Michael Mattiello <mcm@odoo.com>
2021-09-17 11:17:45 +00:00
Didier (did) 043b124abd [FIX] mail: close RTC session when leaving a channel
When a user leave a channel with an RTC session open, we need to notify others
user and remove the leaving user from the room.

task-2646095

closes odoo/odoo#76719

X-original-commit: 6b498a0969b63e190637f112c6a7d5f8177c772c
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-17 09:32:24 +00:00
Samuel Degueldre b6ec6e8a64 [IMP] mail: trim down assets_discuss_public bundle
In the interest of time, we previously pulled a lot of dependencies into
the assets_discuss_public bundle so that all dependencies were met.
While this worked well as a first approach, this makes the bundle
dependent on many files managed by different teams, limiting their
freedoms in modifying those files, or forcing them to stuff even more
things into the bundle.

This commit cuts out a significant amount of unneeded dependencies to
allow this bundle to be more self contained and less fragile.

closes odoo/odoo#76688

X-original-commit: 9da13113467b7f445c2aeafe7ecfccb1b2064314
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-17 09:32:21 +00:00
Sébastien Geelen (sge) 02b7bf524a [FIX] web_editor: toolbar outside of editable zone
On very small editors the restriction on the toolbar size
and position could generate issue (blocking text visibility).

So we changed the rules to allow the toolbar to overflow
outsize of the editable zone.

task-2648156

closes odoo/odoo#76710

X-original-commit: 6390a4225ea8a97fd0bc0b267d0d016846d27e46
Signed-off-by: Antoine Guenet <Zinston@users.noreply.github.com>
Signed-off-by: Sébastien Geelen <sebgeelen@users.noreply.github.com>
2021-09-17 05:59:10 +00:00
Romain DerieandPhilémon van Helden 86c8cd76cc [IMP] web_editor, website_event: hide duplicate dates on edit
In master, when editing a date, the same date will be shown multiple
times next to each other. This is because each date is comprised of a
few times the same field with different formats, and when editing them,
they all remove their formatting and show the entire date.

In this commit, we allow adding the class `oe_hide_on_date_edit` to date
fields we don't want to show when editing, which will be dynamically
hidden (by adding the `d-none` class) when a user clicks on a field with
the same date.
We also add this class to some date fields in website_event.

task-2618494

closes odoo/odoo#75205

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Co-authored-by: Philémon van Helden <pvh@odoo.com>
Co-authored-by: Romain Derie <rde@odoo.com>
2021-09-16 18:14:55 +00:00
Philémon van Helden 85cb19b294 [IMP] web_editor, base: allow parameters in image URLs
When adding an image to the library from an URL, if the URL contains
parameters (e.g. ?width=200&height=200), the link will not be accepted.

In this commit, we remove these parameters from the URL before checking
the image, so that the URL is considered valid.
We also remove these parameters before computing the mimetype of the
image, since it is computed based on the end part of the URL.

task-2618494

Part-of: odoo/odoo#75205
2021-09-16 18:14:54 +00:00
Sébastien Geelen (sge) e1ad97a7d3 [FIX] web_editor: prevent multiple collaborative editor
When displaying a view with the same html field in multiple places,
we would have some conflicts between the editors if they start in collaborative
on the same channel.

task-2647125

closes odoo/odoo#76676

X-original-commit: 7bc676d751baeb030030eb814fc4a78200b80777
Signed-off-by: Antoine Guenet <Zinston@users.noreply.github.com>
Signed-off-by: Sébastien Geelen <sebgeelen@users.noreply.github.com>
2021-09-16 16:57:57 +00:00
Benoit Socias 041e3938c0 [FIX] website: allow link popover test to continue when already hidden
Before this commit the link popover test sometimes froze on a test that
was added to hide the popover in case it did not work automatically.
The popover is however automatically hidden before this step from time
to time, thus making this step blocking.

After this commit this step just hides the popover in case it was still
there.

Related to staging build https://runbot.odoo.com/runbot/build/9990797

closes odoo/odoo#76662

X-original-commit: 2c419971411301219b0a1784749b9f1751796239
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2021-09-16 16:57:51 +00:00
Joseph Caburnay 8a4f6b760e [FIX] point_of_sale,pos_sale: isRpcError no longer works
Following wowl and https://github.com/odoo/odoo/pull/73725, isRpcError
no longer works. We introduce a new method called isConnectionError
since it's actually what we are interested of in the previous use of
isRpcError. After handling connection error, we just rethrow any other
errors such as RPCError (which includes server error such as UserError
or any programming error in the server) and let the errorHandler in
Chrome handle them.

closes odoo/odoo#76661

X-original-commit: a447872b2ef0267d654295ac58dddc74e31d6424
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-09-16 15:46:05 +00:00
Benoit Socias 198b999f5b [FIX] web_editor: open palette below if insufficient space above
Before this commit opening the color palette only checked for the
available space below the button to open the popup above instead.
Because of this the popup sometimes opened higher than the top of the
screen making it unusable.

After this commit an additional check is done on the space available
above the button. If there is not enough room above then just opens
below, which makes the area scrollable if there was insufficient space,
thus keeping the palette usable.

task-2599771

closes odoo/odoo#76611

X-original-commit: 3ac197de28f7b4403a55342f387189fc9a1d74e0
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-16 15:45:57 +00:00
Bruno Zanotti 0110b874d8 [FIX] l10n_ar: natural vat for Uruguayan partners
Add the natural vat number for partners from Uruguay.

closes odoo/odoo#76664

X-original-commit: 35c8fef451d405f977349cef8440d613d0ff4b45
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-16 13:37:51 +00:00
Yannick Tivisse 0ca0fdcee3 [IMP] hr_contract: Make a method callable on an empty recordset
closes odoo/odoo#76604

X-original-commit: 7126040738cabe7d16412224f7b3baa1d41df014
Related: odoo/enterprise#20912
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-09-16 11:19:50 +00:00
Romain Derie 6dd7207b6f [FIX] web_editor, web_unsplash, test_website: make unsplash work
Since cfe079221c, unsplash is not working anymore as that commit did not adapt
the unsplash code to that change.

task-2581567

closes odoo/odoo#76617

X-original-commit: 9a4723628e868836c7bbe8bec31ec9b6ce3f2554
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-16 10:01:14 +00:00
Benjamin Vray 360abc0570 [IMP] web_editor, website: make animation options available on text
After this commit, it is possible to animate text in website pages.

task-2545252

closes odoo/odoo#76610

X-original-commit: 187acb938f70a2130d25fa76079221339c742f1e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-16 10:01:06 +00:00
Benjamin Vray c0dcc8265b [FIX] web_editor: not hide the toolbar container by clicking in itself
Before this commit, the toolbar container was closed when we clicked
on its background or in its title bar.

task-2545252

X-original-commit: 2ca87a5142a03540fc5e6428530d394faa223d17
Part-of: odoo/odoo#76610
2021-09-16 10:01:06 +00:00
Benjamin Vray a04ce99689 [IMP] website: add a zoom-out animation in website animate
task-2545252

X-original-commit: b1e15473f024c569e6a8f44ba8805467f484fb05
Part-of: odoo/odoo#76610
2021-09-16 10:01:06 +00:00
Benjamin Vray 146070db7c [IMP] website: make the columns animable instead of the whole section
-Instead of having animate options on whole section, make it available
on a column.
-Rename "Disable animation" into "No Animation".

task-2545252

X-original-commit: 9a4d4d1527c004f4157d6c039acdd99f8d7e8231
Part-of: odoo/odoo#76610
2021-09-16 10:01:05 +00:00