Commit Graph
138880 Commits
Author SHA1 Message Date
Benjamin Frantzen (bfr) cc255de85b [FIX]account: added country_code related field in account.bank.statement
closes odoo/odoo#59266

Related: odoo/enterprise#13844
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-10-06 12:13:10 +00:00
qsm-odooandBenjamin Vray 41a2a109c7 [FIX] web_editor: allow to go the parent snippet more easily
Before this commit to select a parent snippet you had to click on
its title in the editor panel.

After this commit, we can still click on the title but also on the
whole line. At the same time, make it so the title has a pointer
cursor and so that long titles work too.

task-2327182

closes odoo/odoo#59262

X-original-commit: 5d3310cea75014ce3c43ee89235cd42b87e0cf99
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Benjamin Vray <bvr@odoo.com>
2020-10-06 11:58:21 +00:00
Pierre Collinet (pic) 7b368e7215 [FIX] sale: Apply several fix on sales tour
1. Lead to loose the tour: Remove the step of the tour that asks
to set an address (the address is auto-completed at free trial
based on domain name).

2. Bug: At step 3, it redirects to the
invoice settings to select a localization, when you click on
"install more packages", you are sent back to the sales app.
--> this bug is related to res_config_settings.js from base addon.
I tried to fix this bug by adding a data-attribute "discard" in the
res_config_settings_views and checking this additional condition in
the js.

3. Bug: Tour blocks at last step "send by email" on quotation.
After clicking on "sent" on the pop-up, there should be rainbow
effect to mark the end of the tour.

4. Bug: Sale order line: fix the blue color on Invoiced Quantity
only, instead of the full line

5. Put the "sample product" in active= false (it's necessary for
the sample invoice but should not be visible to the user, they
should create their own)

6. Merge the 2 dates fields related to expected delivery on sale.order
--> since other modules extends this module, I made the field
expected_date invisible and put the same value in both fields. This
value is the max of the order_lines.expected_date

closes odoo/odoo#59261

Taskid: 2277314
X-original-commit: 0f81816d4ddb0febd28f6c6bb5dd50ae570333e1
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 11:57:55 +00:00
oco-odoo d1c918175b [IMP] l10n_eu_service: remove old and confusing feature description from manifest
This feature description had stayed there since v8. Back at the day, we used to create one tax code per tax the module created. We removed this in v9, as similar result can be achieved by looking at the generic tax report.

closes odoo/odoo#59232

X-original-commit: 3a6aaa6e95517807a11446d202566ac02ac6e03f
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-10-06 09:52:17 +00:00
Nicolas Martinelli 0783530e14 [FIX] base_vat: check VAT numbers UAxxx
- Go to the Contacts app
- Click on the Azure Interior company, or any other company with multiple associated people
- Set the country to Mexico
- Edit the VAT field and enter the following string: UAC070620MB3

Traceback will happen after hitting save.

It happens because `self` is a recordset in this case. Moreover, while
the VAT number starts with `UA`, the country is Mexico so the check is
incorrct.

opw-2348045

closes odoo/odoo#59260

X-original-commit: 3dbdc62b3458e9af2e74d8552a17d629dc7e2393
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-06 11:55:16 +00:00
fw-bot 285be5eb1b [FIX] sale_expense : avoid blank selection on re-invoice expenses
Changing this to radio buttons to avoid confusing the user with a
blank option

Task-2299286

closes odoo/odoo#59253

X-original-commit: ba8f62139bfcb27c14ce92f63585f9d277e74547
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 11:10:54 +00:00
fw-bot 06dc4e20e3 [FIX] hr_timesheet : fix timesheet visibility on portal
If a portal user was a customer but not a follower of a project
he didn't have access to the timesheets linked to the project.

Task-2299286

closes odoo/odoo#59252

X-original-commit: 13fc0ab18eb1e1d4ba47b7a1e66cd5079d692d8b
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 11:21:38 +00:00
Kairis 9b0bc31177 [FIX] Google_spreadsheet : traceback correction
When we wanted to add data to google spreadsheet in crm or accounting
=> it raised an error
Error because it couldn't find a propriety of an undefined object.
Now we're getting the query element from searchModel and not model.

closes odoo/odoo#59251

Taskid: 2337046
X-original-commit: 8d26094b020db0245620e9898e02486acf3674bf
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 11:09:43 +00:00
Swapnesh Shah b4795e6d3b [FIX] doc: correct link for runbot
Following the last summer runbot update, the URLs have changed

closes odoo/odoo#59241

X-original-commit: 7eaec4b2693b9aea67cfbde5d19dda152fd9f395
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-06 10:36:27 +00:00
Raphael Collet 5d6b697ada [FIX] core: optimize prefetching on large recordsets
This patch optimizes the performance of prefetching when iterating on
large recordsets.  The optimization is *transparent*, i.e., it requires
no code change for it to apply.

The worst-case scenario for prefetching is the following: the ORM has to
fetch a field for a given `record`, `record._prefetch_ids` (its prefetch
set) is *very* large (many thousands), and most records in the prefetch
set are already in cache.  This requires the ORM to iterate a lot on the
prefetch set in order to make a batch of records not having the field in
cache.

    records = model.browse(ids)     # large recordset
    for record in records:
        record.foo                  # fetch 'foo' every 1k records

When running such a loop on an empty cache, the overhead of prefetching
(determine a batch) grows as the loop progresses.  The time complexity
of this loop is actually O(N²)...

The overhead of prefetching is minimal when `record._prefetch_ids` is
about the size of a prefetching unit, i.e., 1k records.  This commit
modifies the iterator method such that every record returned by the
iterator has a prefetch set of maximum 1k records.

We measured the time taken by the loop above on an empty cache, before
and after this commit, on a simple model (res.partner.category) with
100k records.  The third measure is a reference one: a `_read` on all
prefetched fields (to fill in the cache) followed by the loop.

                            Total time      Time per 1k records
    Before this commit      3.690s          30ms - 45ms
    After this commit       1.176s          12ms
    Read then loop          1.161s          -

The measures are enlightening: the overhead of prefetching was more than
200% of the reference time, and the time to prefetch records grows as
the iteration goes on!  This commit reduces the overhead of prefetching
to less than 2% of the reference time, and make it scale gracefully with
data size.

closes odoo/odoo#59239

X-original-commit: d0d54d63dbf49a97e7fea36fe7fb4b860a0b6606
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-10-06 10:29:38 +00:00
Thanh Dodeur c1393a713c [FIX] website: matches icon apps to the app switcher
This commit makes it so that the icons of the website new-content
menu are closer to the icon of the app they are related to.

task-2329291

closes odoo/odoo#59236

X-original-commit: 4565a65e99a6dae323fd3d7ddf2010fea102bb91
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-10-06 10:17:32 +00:00
Arnaud Joset 9ace056714 [IMP] account,sale: html field for terms & conditions
Before this commit, the terms and conditions could not be html formatted text.

closes odoo/odoo#56512

Taskid: 2304199
Related: odoo/upgrade#1689
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 10:26:56 +00:00
Arnaud Joset 4d7ebb8cf5 [IMP] website_sale: remove /shop/terms controller in favor of /terms 2020-10-06 10:26:56 +00:00
Nicolas Martinelli 264f4b708a [FIX] website_event_sale: sell non-event tickets
- Create a ticket product.
- Add it to an event.
-  Uncheck it as ticket.
- Sell it on the website.

A traceback is raised here:
https://github.com/odoo/odoo/blob/88e32c5af9f47981bebea560de456a1404b4e382/addons/website_event_sale/models/sale_order.py#L88

It happens because a ticket is found, but `new_qty` is a `string` while
while `old_qty` is a `float`. It is coming from `add_qty` which is a
`string` while a `float` is expected.

We apply the same logic than:

https://github.com/odoo/odoo/blob/88e32c5af9f47981bebea560de456a1404b4e382/addons/website_sale/models/sale_order.py#L181-L190

opw-2347633

closes odoo/odoo#59216

X-original-commit: 859ffdbc3a80f50be9e298c0b5e86cd58eca0d89
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-06 08:51:09 +00:00
nie 3765415e6a [FIX] sale: calendar view overrides stock picking name
Steps to reproduce the bug:
- Open the calendar view of the quotations in Sales
- Select a time slot and enter a summary (A)
- Click "Create", fill in the required values and add an order line
- Save and Confirm
- Click the "Delivery" smart button

Bug:
The delivery order has the summary (A) for name and not the computed sequence.

Cause:
Context key 'default_name' is added here:
https://github.com/odoo/odoo/blob/0db882ce3eddc88adb3e5046f9b8d14685ffc8a8/addons/web/static/src/js/views/calendar/calendar_controller.js#L231
And it's propagated up to here:
https://github.com/odoo/odoo/blob/0db882ce3eddc88adb3e5046f9b8d14685ffc8a8/addons/stock/models/stock_picking.py#L483

opw:2335541

closes odoo/odoo#59210

X-original-commit: df580bdc8fdaa33685862f2210881f19017f1daf
Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-10-06 08:39:56 +00:00
jpr-odoo 7b82e5f89d [IMP] web_editor: improve confirmation message
In this commit, Improved the web_editor confirmation message for better readability.

task-2349785
Closes https://github.com/odoo/odoo/pull/59115

closes odoo/odoo#59115

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 13:36:19 +00:00
Rushi Sathawar 8990713aa3 [FIX] hr_recruitment: Prevent toggle active on refuse applicant
Currently, when click on refuse action on applicant it will
call the toogle_active and applicant is archived then it will
going to open the wizard for refuse reason due to that even if user
cancel the wizard the applicant is archived.

So in this commit, On click of the 'refuse' on applicant just open
the wizard for refuse reason and click of apply archive the applicant
with reason.
It will not affect the opening of wizard on archive of applicant from
action menu.

closes odoo/odoo#58740

Taskid: 2333037
X-original-commit: 9dfb85b494efeec7786d345315977b9bcea63b82
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-28 18:18:24 +00:00
Mohammed Shekha 6dd4aca6b4 [FIX] web: do not allow to edit priority field if readonly
if readonly attribute is given on priority widget then priority widget should
not be clickable and hover effect should be removed so that user can easily
understand that field is readonly.

task-2339680

closes odoo/odoo#59199

X-original-commit: 53dbfc7a65a8eb2f41d6b2373cf628c4800d1f57
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-10-06 08:18:22 +00:00
Rémi Rahir 17b3cd79ab [FIX] crm_iap_lead_enrich: improve iap calls robustness
In its current state, the code contacting the iap service was prone to
fail in case of huge batches of leads being processed due to 2 factors:
- the call could timeout;
- any processed lead that was modified somewhere else in the meantime
would trigger a serialization failure and ultimately make the whole
batch fail.

This commit ensures that we process the leads by smaller batches and
that we avoid serialization failures by acquiring a lock on the current
batch.

We now also avoid useless calls to iap when an email address is linked
to well-known email providers to alleviate the payload and speed up the
server's reponse.

closes odoo/odoo#59190

X-original-commit: 0a898e16948b38a0029937c7c2eb6e2a38fd9a8a
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-10-06 07:51:59 +00:00
Paul Morelle def4f727b7 [FIX] web: load_filters in search dialogs
Since fbf347498f, when opening a view in a
dialog, the favorite filters were not loaded.
For example on the runbot:
1. In CRM, open any lead, edit it, and open the Customer dropdown
2. Create a custom filter, save it as favorite, and close the dialog
3. Open the dialog again: you don't see your new filter

With this commit, you will see your filter at step nr. 3

closes odoo/odoo#59186

X-original-commit: 418013e8dbb2aa2d4ffd4f650f080ca5a94183f9
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
2020-10-06 07:43:04 +00:00
Mohammed Shekha 657ef8ad7f [FIX] web: show no content helper message in center
no content helper message is displayed in bottom in modal when there is sample
data, when no content helper message is displayed in modal and there is sample
data the ndisplay no content message in center which is not the case for modal.

To produce this issue: go to Expense -> Create Expense -> Create expense line
and if there is not expense line then sample data is displayed and no content
helper message is displayed at bottom of sample data, it should be displayed
in center of sample data with blurry effect.

With this commit this issue has been fixed.

Task-2311408

closes odoo/odoo#59175

X-original-commit: 5461efc9620a6ff6f0d61cd2a15676c6b9c58fd7
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-10-06 07:06:19 +00:00
Samuel Degueldre dc8ffd4266 [FIX] website_sale: fix ribbon-editing UI
Previously the ribbon editing UI was missing some indentation symbols
that have been added recently in the rest of the web_editor (⌙), this
commit adds those where needed. This commit also fixes an issue where
both the ribbon editing UI and the ribbon select-menu were visible at
the same time, caused by changes to how the visibility of widgets is
computed.

task-2339986

closes odoo/odoo#59158

X-original-commit: c7e4533757982592be9b0c6dfc37b9b05042b5b9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 17:41:36 +00:00
Tiffany Chang (tic) 737e9076ba [FIX] stock: fix quant check when archiving location
Quant search domain was missing a '|', this made it so locations with
non-zero quants in it could still be archived. Also added a missing
space in warning message when there are multiple locations because it's
better that way.

Discovered during task: 2336455

closes odoo/odoo#59154

X-original-commit: 340dac3b2928da292c6b74971e77816304b263ab
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-10-05 17:16:09 +00:00
Thibault Delavallée 624f9f1a77 [FIX] crm: fix checking duplicates on dummy emails
Currently when trying to find duplicates of a lead with an email that
cannot be normalized and without partner, a crash appears as there is
no domain part to form a valid domain.

Fix it by returning a void set if no valid email and no valid partner
is set on the lead as we cannot determine any duplicate based on void
information.

closes odoo/odoo#59147

X-original-commit: 291db77cf09c6ee76373fd168f575fda28270467
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-05 16:25:08 +00:00
Tiffany Chang (tic) 8d87f7b2a0 [FIX] stock: correct validated inventory date
Currently the help of stock_inventory.date includes:
"If the inventory adjustment is validated, date at which the inventory
adjustment has been validated."

But for some reason this isn't the case. This commit makes it so we now
update the `date` when the inventory is validated. Since no one
previously complained about this, we only apply it to newly validated
inventories and leave existing ones as is. Note this change makes the
`accounting_date` help accurate (i.e generated account moves already
use the date when the inventory is validated when no accounting date
set, so before this fix the dates won't match).

Discovered during task: 2336455

closes odoo/odoo#59143

X-original-commit: 1da012147fa49045bb1dff25eb304364d47e0271
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-10-05 15:57:11 +00:00
Rémy Baranx (bar) 7a05887cd0 [FIX] stock_dropshipping: create missing dropship picking type
In the function `create_missing_dropship_picking_type()`, the way to
search companies that already have dropship picking type was not robust
enough as it used the translatable `name` field in a search domain and
the ORM `search` method used the translated value of `Dropship` name value
instead of the raw value.
A better approach is to search `stock.picking.type` with a default source
location usage set to `supplier` and a default destination location usage
set to `customer`.

Related to upgrade request: #54154

closes odoo/odoo#59142

X-original-commit: 203bb4d9c113f5c24ad00d39e2ae46b4689117f4
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-10-05 15:50:32 +00:00
Odoo's Mergebot d532a052b2 [FW][FIX] website_event_track: PWA install & ServiceWorker caching
This PR aims at preventing the cluttering of the ServiceWorker's cache by filtering out non-necessary assets and preventing "opaque" responses from being cached.

Also, it registers earlier the listener for the PWA install event, allowing to properly show the installation's banner in most of the case.

Finally, it fixes the optional URL's language parsing by allowing custom language naming.

closes odoo/odoo#59001

Forward-port-of: odoo/odoo#58994
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-10-06 10:23:20 +02:00
Pierre Paridans dc95d43efb [FIX] website_event_track: only cache local & cdn based urls
This commit allows to filter out the requests to local-ish domains (cf.
the current host and an optionally configured CDN for the current
website) and preventing from cluttering the cache used by the
ServiceWorker with tracking files, scripts or other non-necessary
assets.

This allows to even further reduce the possible "opaque" requests from
being stored in the cache (as they use way more space than regular/basic
responses).

X-original-commit: 052bc7665e89426fb51928e43bd4a15dbf6cb705
2020-10-02 13:56:32 +00:00
Pierre ParidansandOlivier Dony 0e56f7ce7d [FIX] website_event_track: reuse fetch logic for prefetching urls
Before this commit, when prefetching urls if one of them fails, the
following are dropped.

This commit fixes it by handling each url seperately instead of sending
all of them to `cache.addAll()`. It also reuse the same logic as the
regular FetchEvent for consistency.

X-original-commit: 47fdfb8ae73ab79100fb83751ff0f132b4a5c628
Co-authored-by: Olivier Dony <odo@odoo.com>
2020-10-02 13:56:32 +00:00
Pierre ParidansandOlivier Dony 65c65b6c19 [FIX] website_event_track: don't clutter the ServiceWorker cache
This commit aims at reducing the requests stored in the cache by
filtering out the error-like requests (404, 500...) and the "opaque"
requests.

Also this commit adds a check for the cache size to prevent it from
filling up, resulting into a locked out cache (blocking certain
requests).

X-original-commit: ef2d323c3a029cb58ee219f06a9809aa52d108b3
Co-authored-by: Olivier Dony <odo@odoo.com>
2020-10-02 13:56:31 +00:00
Pierre Paridans 92aee2732d [FIX] website_event_track: properly match custom lang in url
In multilanguage website, URLs are automatically prefixed with the
language (beside the default language) but only the default
language-slug were supported (e.g. "en", "en_US"...).

This commit supports also customized language-slug, which can actually
be any string, for the ServiceWorker's scope.

X-original-commit: 20eddda77d0ed6f2bb9b61d8ae4194e960ccc4ff
2020-10-02 13:56:31 +00:00
Pierre Paridans b1a51bdbf4 [FIX] website_event_track: listen for pwa install event earlier
To display the PWA's install banner, the browser triggers a
`beforeinstallprompt` event when he estimates that all the requirements
for installation are fulfilled (e.g. Service-worker, manifest...).

But we have observed that the browser can trigger this event really
early in the loading of the page and even before our listener has been
registered, failing to display the banner.

This commit moves the event listener's registration out of the lifecycle
of our widget to allow it to be registered as soon as possible,
drastically reducing the risk of missed-events.

X-original-commit: a014a6c9e3baced22b158d6d8b4199bdae7562b9
2020-10-02 13:56:30 +00:00
asa-odoo 63248ff378 [IMP] base: improve notification of successful mail server connection
This commit improves the notification displayed when we configure
the mail server and click 'Test Connection' button. It removes the
title of the notification, improves the message string and changes
the notification type to 'success' instead of default 'warning'.

Task Id : 2321763
PR #56213

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-24 09:08:32 +00:00
IEL 41471bb0ab [FIX] purchase: always switch to vendor's currency on creating a bill
Before this commit vendor's currency wasn't used on creating an invoice if there
is default journal in context. As I understand, the idea was to let onchange("journal_id")
handler to update the currency. It works well, if journal has the same currency
as specified in vendor record (res.partner). But it confuse users in following
scenario:
* there is just one vendor journal
* vendor is configured to invoice in another currency
* then, if you create invoice via "Accounting >> Overview >> Vendor Bills", it
would have journal's currency
* while, if you create invoice via "Accounting >> Vendor >> Bills", it
would have vendor's currency

This commit force to switch to vendor's currency on changing vendor field, even
if it differs from journal's currency. If after changing vendor, you set another
journal, then journal's currency is used (thanks to onchange("journal_id") handler)

opw-2339966

closes odoo/odoo#59162

X-original-commit: 513cc1abe121cd05623be1a6519239f8f4b3fb48
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-05 18:07:49 +00:00
Laurent Smet ad77981a96 [FIX] hr_expense: Bank account must not be impacted directly
The outstanding payment account must be used instead.

closes odoo/odoo#59066

Task: 2348361
X-original-commit: 84a9d31f8611d4890ce06c511fd74b13ce17958c
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-10-05 07:46:51 +00:00
Xavier-Do d7a5ee11ed [FIX] web: add margin on template linearity check
Linearity is not always perfect, managing more template will sometimes lead to slighlty
more than a linear ratio randomly. The maximum observed ratio was 10.9.
12 seems a good value to catch non linear treatment while avoiding false positive.

closes odoo/odoo#59027

X-original-commit: 62610f7851f0994fc0864f2b95851ce8b5984ce7
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-10-02 16:16:51 +00:00
Joseph Caburnay fd4a42a7d6 [FIX] pos_restaurant: remove ambiguity to prevent runbot error
This random runbot error happens when the tour manager is steps ahead of
the rendering:
1. clicks Second Floor button
2. checks T1 - this won't fail even if the Second Floor hasn't finished
rendering because Main Floor has tables that start with `T1`.
3. clicks a table in Main Floor with T1 in name
4. Then error because the back to floor button should be Second Floor.

Tables that start with `T1` is created in Main Floor during the tour,
however, we also have one in Second Floor. To make sure that the runbot
correctly waits and clicks for the right table, we use T3 in Second
Floor instead of it's T1.

closes odoo/odoo#59170

X-original-commit: 8e65a220cadefe41df9fcc2172d60ff90ea5b584
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-10-06 06:25:36 +00:00
Kishan Gajjar 17dbdb62fe [FIX] website_mass_mailing: close popup after successful subscription
closes odoo/odoo#59153

X-original-commit: 548e45b9b7eea6c395c0e6959bec5b6418239ced
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 17:00:59 +00:00
qsm-odoo 2e767ffefa [FIX] website: improve menu loading effect
Long story short: that menu loading effect was introduced with version
12.0 for a technical reason: allow menu items to collapse into a
dropdown when there are too many. For that, during loading their height
is forced to 0 and they are hidden so that they do not make the header
grow when going on multiple lines.

Since 13.0, the lazy loading made this effect to be too delayed... but
fixing that would make another flickering appear due to the logo image
loading. This thus cannot be fixed at the moment.

However, since 14.0 there are several menu templates and some make the
effect look really ugly. Like the vertical header which has a tiny
empty header which then grow with the menu items on loading. To mitigate
the effect, this commit replaces the "height: 0" trick by forcing the
menu items on one line during loading. They however still stay hidden
during this time to avoid the logo menu flickering, for now.

Part of https://github.com/odoo/odoo/pull/59136

closes odoo/odoo#59148

X-original-commit: 1edf40e76be4a4595849c4c9dab692984e372c46
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 16:27:48 +00:00
qsm-odoo e8ed7e6880 [FIX] website: prevent button to flicker in navbar
The navbar may now have static content which can be on the right of the
menu items. Like for the default navbar which has a button on the right.
When they are a lot of menu items, the static content is shrinked...
before the auto-hide extra menus feature is done. This flickering can
be reduced by forcing the navbar buttons to stay on one line.

Part of https://github.com/odoo/odoo/pull/59136

X-original-commit: 5c9d28ac9a1307e5786f0909d5135e82f420274d
2020-10-05 16:27:48 +00:00
Arnold Moyaux 012e4c3b31 [FIX] product: missing supplierinfo fields on view
commit ca3e898481 introduce an editable view for vendor
pricelist on product variant and template.

However this view is missing product_name and product_code that are
editable field in the form view.

This commit readd them.

Fix #59099

closes odoo/odoo#59132

X-original-commit: 0e1447b745f293bfee61511d3a0895a39ed25d8c
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-10-05 14:58:36 +00:00
Antoine Prieels 9bb9be2a00 [FIX] adyen_platforms: Fixes following the review
closes odoo/odoo#59122

X-original-commit: e9a075b996886851b3e5134d996db36376a68964
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-10-05 14:11:25 +00:00
Laurent Smet fc1fbd3fcb [FIX] account: Fix traceback when opening auto entries with multilines
Introduced by:
https://github.com/odoo/odoo/commit/f9ef2c8cd980ecb9eee22d4cc43d5291953471ef

`self.id` is making an `ensure_one` raising a traceback when trying to open the wizard with more than one selected line.

closes odoo/odoo#59088

X-original-commit: 587c1d0f9bddd7bcc3d8d165d6d3073387dfe73f
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-10-05 10:58:38 +00:00
Samuel Degueldre 5d67cdc822 [FIX] web_editor: fix background-image urls becoming absolute on drop
With the recent addition of the parallax option on all snippets,
background-image urls were being converted from relative to absolute on
snippet-drop. This was caused by trying to read the background-image's
url and setting it back onto the target, but there is no way to reliably
read a background-image url in relative form, so it was returned in
absolute form and then written back to the element as is.

This commit fixes that by always converting the absolute URL to relative
when they are on the same origin as the database.

task-2312878

closes odoo/odoo#59113

X-original-commit: 7558dcce791f707e3f3470835133f91ec7ff074f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 13:25:44 +00:00
qsm-odoo 6c3131d4be [FIX] website: always show border radius config for cards
The border radius configuration is available on elements whose
background color or border is set. For cards, it should always be
available since the background color option is different there and there
is no way to remove the color entirely anyway.

closes odoo/odoo#59089

X-original-commit: 2d860cdddf29b9fbd1a5401082c9f743028d2fb5
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-10-05 10:59:00 +00:00
nie 2db7d48d12 [FIX] point_of_sale: unable to close open session with deleted journal
Steps to reproduce the bug:
- Create POS (P)
- Create journal (J) and link it to (P)
- Open a new session in (P)
- Exit the session without closing it
- Delete (J)

Bug:
You cannot close the session nor assign a new journal to the POS.

opw:2347169

closes odoo/odoo#59097

X-original-commit: 636f1358e72e65a3210c95c60d1703c9cbd914dc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-10-05 11:27:30 +00:00
Martin Trigaux 2683184aa6 [FIX] *: fix all the typos
And other reported English mistakes in source string
Courtesy of Transifex translators

And remove leftover from gengo

closes odoo/odoo#59022

X-original-commit: 26efc84c5cac47a2cc83d7b084f8b71528fec6c7
Related: odoo/enterprise#13781
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-05 09:36:34 +00:00
Cyril VINH-TUNG ea05ced56b [CLA] EasyPME signs Odoo CCLA
closes odoo/odoo#59081

X-original-commit: ea31b502b5df8550357bb7f63580c2ca76849cc5
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-05 09:23:42 +00:00
Bruno Boi e654b32bc1 [IMP] web: use user's decimal separator for numeric fields
Until now, the numpad decimal key was not properly handled for some
keyboard layouts.

This commit will ensure that when this key will get pressed inside a
numeric field, the user's display language decimal separator will get inserted.

closes odoo/odoo#56962

Taskid: 1913999
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-10-05 08:21:00 +00:00
David Beguin 574154eb47 [FIX] survey: redirect on login page on survey start if not logged in.
Before this commit, when sharing a survey 'Login required' to a non logged in
user, the redirection was made to the home page.
The reason is: when the survey is not started yet, no user input is already
created for this survey and this user. So if no user_input has been created,
yet, that means that the user has never started the survey before and user
need first to login before continuing.

After this commit, we redirect to the loggin page.

Task ID: 2246430

closes odoo/odoo#58965

X-original-commit: a309d889ddf6e03a6701e921258cfa9338800fbb
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-10-02 09:54:10 +00:00