Commit Graph
147160 Commits
Author SHA1 Message Date
Louis Wicket (wil) 9303e896f4 [IMP] mail, *: rename messaging notification handler model
Rename javascript model `mail.messaging_notification_handler` to
`MessagingNotificationHandler` in order to distinguish javascript models
from python models.

Part of task-2701674.
* = im_livechat, website_livechat

closes odoo/odoo#81389

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:23 +00:00
Louis Wicket (wil) e8552668f0 [IMP] mail: rename messaging menu model
Rename javascript model `mail.messaging_menu` to `MessagingMenu` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81388

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 01:03:18 +00:00
Louis Wicket (wil) c8cfc58ea8 [IMP] mail, *: rename messaging initializer model
Rename javascript model `mail.messaging_initializer` to
`MessagingInitializer` in order to distinguish javascript models from
python models.

Part of task-2701674.
* = crm_livechat, im_livechat, mail_bot

closes odoo/odoo#81387

Related: odoo/enterprise#22889
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:51 +00:00
Louis Wicket (wil) deb12bc032 [IMP] hr, mail, snailmail: rename messaging model
Rename javascript model `mail.messaging` to `Messaging` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81386

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:48 +00:00
Louis Wicket (wil) bf297be03a [IMP] mail: rename message view model
Rename javascript model `mail.message_view` to `MessageView` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81385

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:44 +00:00
Louis Wicket (wil) b02edc2887 [IMP] mail: rename message seen indicator model
Rename javascript model `mail.message_seen_indicator` to
`MessageSeenIndicator` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81384

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:41 +00:00
Louis Wicket (wil) d7d5d522c2 [IMP] mail: rename device model
Rename javascript model `mail.device` to `Device` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81332

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 00:10:37 +00:00
Louis Wicket (wil) 4dfec3b8bf [IMP] im_livechat, mail: rename chat window model
Rename javascript model `mail.chat_window` to `ChatWindow` in order to
distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81322

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 00:10:34 +00:00
Louis Wicket (wil) 7936173c27 [IMP] mail: rename activity type model
Rename javascript model 'mail.activity_type' to 'ActivityType' in order
to distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80600

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-15 00:10:30 +00:00
Louis Wicket (wil) c873ea643a [IMP] mail, calendar, website_slides: rename activity model
Rename javascript model 'mail.activity' to 'Activity' in order to
distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80555

Related: odoo/enterprise#22593
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-12-15 00:10:23 +00:00
Louis Wicket (wil) a74c67169a [IMP] mail: rename channel command model
Rename javascript model `mail.channel_command` to `ChannelCommand` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81320

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 22:26:58 +00:00
Louis Wicket (wil) de0eec346a [IMP] mail: rename attachment viewer model
Rename javascript model `mail.attachment_viewer` to `AttachmentViewer`
in order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81317

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 21:37:13 +00:00
Louis Wicket (wil) ccabe512b3 [IMP] mail: rename attachment image model
Rename javascript model `mail.attachment_image` to `AttachmentImage` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81315

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 20:42:44 +00:00
Raphael Collet 6a12cd65d5 [FIX] core: create() always inverses fields in the same order
This makes the inversion of fields deterministic, as some orderings make
street fields crash in module base_address_extended.

closes odoo/odoo#80824

Related: odoo/enterprise#22711
Related: odoo/upgrade#3093
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-12-14 19:13:18 +00:00
Yannick TivisseandVictor Feyens 18952cdc76 [IMP] *: Convert single create method into multi
Taskid: 2703085
Part-of: odoo/odoo#80824
Co-authored-by: Victor Feyens <vfe@odoo.com>
2021-12-14 19:13:18 +00:00
Louis Wicket (wil) b403c7e068 [IMP] mail: rename activity box view model
Rename javascript model `mail.activity_box_view` to ActivityBoxView in
order to distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80605

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 19:13:13 +00:00
std-odoo ea5101a4ee [IMP] mail: add capital letters to the "Read More / Less" button
Purpose
=======
In the chatter, when we reply to an email, the parent email is folded
behind a "read more" button. Add capital letters to this button to make
it more visible.

Task-2656302

closes odoo/odoo#80571

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-14 19:13:09 +00:00
Louis Wicket (wil) 1b74cb210e [IMP] mail: rename guest model
Rename javascript model 'mail.guest' to 'Guest' in order to distinguish
javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80547

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 19:13:05 +00:00
thcl-odoo 28fc85c661 [FIX] sale_stock: correctly display lot's quantities on invoice
Current behavior :
Quantity displayed on 'Detailed operations' block for a product lot isn't correctly displayed on the invoice sometimes.

Steps to reproduce :
- Install Sales and Stock
- Enable 'Units of Measure' in Settings
- Enable debug mode then go to Users and enable 'Display Serial & Lot Number on Invoices' for current user (i.e. Mitchell Admin)
- Create a new product
  - Tracking set to 'By Lots'
  - UoM set to 'g'
- Create a quotation with the previously created product and set the quantity to 3.07
- Confirm the quotation, go to the Delivery and confirm it too
- Go back to the SO and create the invoice, then go to the invoice and confirm it
- Print the invoice

OPW-2704307

closes odoo/odoo#81422

X-original-commit: 5a978bce24266ae35db4cfc2180cbaa61d21897f
Signed-off-by: Arnold Moyaux <arm@odoo.com>
Signed-off-by: Claude Thibault (thcl) <thcl@odoo.com>
2021-12-14 18:23:23 +00:00
Laurent Stukkens (LTU) 4a6f5a7268 [FIX] hr_timesheet: use correct field type for timesheet_count
This commit fixes #80080 where a bad field type has been used.
Fortunatelly the field is only used in conditions where it is checked as being Truthy.

closes odoo/odoo#81419

Signed-off-by: Xavier <xbo@odoo.com>
2021-12-14 18:23:13 +00:00
svs-odoo 6d034d9e52 [FIX] *sale*: exception when cancel SO
The commit ca7d5701c6a46f7781bdc9af9f2d26cca880eb93 fixes issue with
backorder being to quickly canceled but as it call `action_cancel`
before the condition who's looking on the SO state, the condition can
never be matched as the SO state will always be `cancel`.
So, the exception about the SO being cancelled will not be logged on
following documents.

How to reproduce:
  - Create a product and enable route MTO + Manufacture on it and create
    a BoM for this product;
  - Create a SO for this product and confirm it;
  - Cancel the SO and check the generated MO => There is no exception
    about the cancellation of the SO.

This commit fixes this issue and doesn't impact the previous fix.

task-2657799

closes odoo/odoo#79215

closes odoo/odoo#81178

closes odoo/odoo#81401

Related: odoo/enterprise#22008
Related: odoo/enterprise#22814
Related: odoo/enterprise#22896
Signed-off-by: Arnold Moyaux <arm@odoo.com>
2021-12-14 18:23:03 +00:00
Louis Wicket (wil) f3e0671a8d [IMP] mail: rename composer view model
Rename javascript model `mail.composer_view` to `ComposerView` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81328

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 18:22:59 +00:00
Louis Wicket (wil) feb30408cb [IMP] mail: rename channel invitation form model
Rename javascript model `mail.channel_invitation_form` to
`ChannelInvitationForm` in order to distinguish javascript models from
python models.

Part of task-2701674.

closes odoo/odoo#81321

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 18:22:55 +00:00
Camille Spiritus 3732aea4b8 [IMP] account,sale: move partner_shipping_id field from sale to account
The computation of 'partner_shipping_id' is now done using a 'compute' instead of 'onchange'.

task-2601934

closes odoo/odoo#78449

Related: odoo/enterprise#22098
Related: odoo/upgrade#3000
Signed-off-by: Laurent Smet <las@odoo.com>
2021-12-14 14:47:25 +00:00
rhe-odoo 298c23f048 [FIX] pos_cash_rounding: Fix value under rounding
It should be allowed to pay amount that are not rounded if the value is less than the rounding value.
Ex:
Rounding value: 0.05
Amount to pay: 0.04
The amount to pay should remain 0.04 and not be rounded to 0.05.

This fix allows the user to pay for values under the rounding value without applying the rounding.

closes odoo/odoo#81392

X-original-commit: 523bc2f9b26bbb51ededcb734fa4ec384671575b
Signed-off-by: Masereel Pierre <pim@odoo.com>
2021-12-14 13:29:04 +00:00
Víctor Martínez 166d1cf687 [FIX] stock_landed_costs: Allow to use LC without real_time
The requirement of having real_time valuation in product categories to use LC is not needed
at all, as the information is taken from stock.valuation.layer, but it was previously
enforced due to the leftovers of the previous algorithm.

We remove such requirement in this commit, and also not creating the LC journal entry in
such cases.

TT32954

closes odoo/odoo#81303

X-original-commit: 05af566f7cdbe36fa0a7e07da15b37bd1349ed80
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Arnold Moyaux <arm@odoo.com>
2021-12-14 13:29:00 +00:00
wan 1656f1a093 [FIX] account_edi: search partner based on VAT with spaces
This solution is not perfect. In order to be, we would need to have a
sanitized function that is used to store the number in the database, and
to use the same function to search in it. This will most likely be done
in master with a refactoring of `base_vat`, on which `account` will
depend one way or another.

In the meantime, we need to support cases that were working before these
fixes:
https://github.com/odoo/odoo/commit/bfb2436b9d99bf9eea29ee44000e18197efa88b6
https://github.com/odoo/odoo/commit/e24c5ba4efef466919735ec4304cfd46be5f0d3f

Since these, it was indeed impossible to detect a partner based on his
VAT for Swiss partners if `base_vat` was installed, which is the
default.

closes odoo/odoo#81263

X-original-commit: 04aa5cd79c6aca1615ba022c351054a390e6c0b5
Signed-off-by: Olivier Colson <oco@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2021-12-14 13:28:56 +00:00
Arthur Gossuin (goa) 7fc9234316 [IMP] delivery: add product_template.country_of_origin field
The origin of goods is required for the commercial invoice generation with
delivery providers. Until then we were using the warehouse country, but the
origin of goods is a different kind of field, as explained in this link:
[https://ec.europa.eu/taxation_customs/customs-4/international-affairs/origin-goods_en]( https://ec.europa.eu/taxation_customs/customs-4/international-affairs/origin-goods_en)

This commit is part of more important upcoming changes brought in Odoo
enterprise, especially with Fedex, Easypost, DHL and UPS commercial
invoices.

task-2701428

closes odoo/odoo#80900

Signed-off-by: Arnold Moyaux <arm@odoo.com>
2021-12-14 13:28:53 +00:00
Samuel Degueldre 57a02f0a14 [REF] web: remove dropdown-item-selected event
In owl 2, the t-on directive is no longer supported on components. The
way to handle events on components is to give them a callback as a prop.
This already works in owl 1, so this commit prepares the code for an
easier migration in the future by removing the "dropdown-item-selected"
event and converting the code that was using it to use the new paradigm.

closes odoo/odoo#80684

Related: odoo/enterprise#22722
Signed-off-by: Géry Debongnie <ged@odoo.com>
2021-12-14 12:40:19 +00:00
Samuel Degueldre 671ed63b2a [IMP] web: call methods with correct 'this' in arrow function
Currently, bare method calls in arrow functions in templates are bound
to the rendering context/scope. While this gives you access to most of
the things that exist on the component for reading, writing on 'this'
will not always work, and the rendering context can pollute the
component's name space. This commit fixes that by explicitly calling the
method on the instance of the components.

Part-of: odoo/odoo#80684
2021-12-14 12:40:19 +00:00
Louis Wicket (wil) 98290450c8 [IMP] mail: rename attachment card model
Rename javascript model `mail.attachment_card` to `AttachmentCard` in
order to distinguish javascript model from python model.

Part of task-2701674.

closes odoo/odoo#80604

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 12:40:09 +00:00
Fabio Barbero f1b1286393 [IMP] survey: display final screen in live presentation
Purpose
=======
When presenting a live survey, the page does not give a
confirmation message when the survey ends and stays on the last slide.
A "Thank you!" message is now displayed when the presentation ends.

Task-2700222

closes odoo/odoo#80447

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-14 12:40:04 +00:00
Christophe Monniez c435e307df [IMP] test_lint: add a lint test for manifest keys
closes odoo/odoo#79977

Related: odoo/enterprise#22846
Related: odoo/upgrade#3078
Signed-off-by: Raphael Collet <rco@odoo.com>
2021-12-14 12:39:54 +00:00
Julien Castiaux 8b6f438b7b [FIX] *mail_plugin: unused i18n path in manifest
*: mail_plugin, crm_mail_plugin, project_mail_plugin

The code that is discovering translatable strings is defined in
[translate.py]. It does lookup in all python files and in all javascript
files defined under 'static/src/'.

The top-level `web.assets_backend` directive in the manifest is useless
and have been removed.

[translate.py]: https://github.com/odoo/odoo/blob/8b468e1f7a3dfeb2bcfa83bff55c4b5adf6b2212/odoo/tools/translate.py#L1138-L1147

Part-of: odoo/odoo#79977
2021-12-14 12:39:54 +00:00
Julien Castiaux 2e29a93503 [REF] core: remove http.addons_manifest
The http.addons_manifest is a map {module: manifest_dict} that is
populated upon the first http request. This map is basically a module
manifest cache with an extra `addons_path` key, the path of the module
on the file-system. This cache is eagerly populated upon the first http
request, the map is empty in non-http contextes (e.g. cron) which have
been a source of bugs (e.g. 50c8eb1).

A manifest cache is necessary because reading and parsing python files
from the file-system is not that cheap but there is no reason that cache
is located in `odoo.http`. A thin cache layer now wraps
`load_information_from_description_file()`/`load_manifest()` and is
lazily populated.

The `http.addons_manifest` have been removed. The extra `addons_path`
key is now present in the "normal" manifest. The `read_manifest()` was
hardly used so it has been deprecated. The only way to retrieve a
manifest is now `load_information_from_description_file()` which was
renamed `load_manifest()` (no cache) and `get_manifest()` (cache).

Side note about performances, the cache is necessary. Addons manifest
are read-only and reading + parsing python files from the file system is
not a cheap operation. Running the e-commerce tour
`@website_sale.test_04_admin_website_sale_tour` without cache on
`load_manifest()` requires 68,29 secs to complete on my laptop,
exceeding the default 1-minute time frame allowed in tests. Using a
cache the time is down to 36,53 secs. The performance impact is huge.

Part-of: odoo/odoo#79977
2021-12-14 12:39:54 +00:00
Victor Feyens 75012e62e9 [FIX] sale_stock: query count checks
It seems the query count is not deterministic on runbot

closes odoo/odoo#81374

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-12-14 11:49:46 +00:00
Louis Wicket (wil) eb39fbb702 [IMP] mail: rename media preview model
Rename javascript model `mail.media_preview` to `MediaPreview` in order
to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81373

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 11:49:42 +00:00
Younn Olivier b82cc9df55 [FIX] web_editor, website: fix inconsistent edit menu test
Before this commit, the EditMenuDialog was closed before reloading the
page. [1] introduced a new test on this dialog using a workaround to go
to the next step when saving, after the page was reloaded. This
workaround used an unreliable event 'unload', which was inconsistent.

To avoid using that event, the edit menu dialog is not closed after
saving. A new parameter closeOnSave is added to the wysiwyg Dialog,
which allows to keep the dialog open until the reload is done.

task-2513588

[1]: 725cad3478e5ab12ad7f0cf5166a2b968a1373da

closes odoo/odoo#81351

X-original-commit: d35125cc0444679488fa1a020b6bd8a6c4409b6f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-14 10:55:11 +00:00
Younn Olivier 9f93fa8e77 [FIX] web_editor, website: fix menu edtion from the "edit menu" button
Before this commit, editing a menu item after clicking on the "edit
menu" button of the link popover, in edit mode, would not save the
change.

This was caused by the "Double-click to edit" tooltip that is shown over
media and links. Triggering the bootstrap tooltip on a target leads to
attribute mutations (data-original-title, title and aria-describedby),
that were processed by the EditPageMenu observer to set a view as
o_dirty.
The website.menu was therefore saved a first time by the edit menu
dialog with the correct value, and a second time with the outdated label
from the page.

To solve that, the observer is deactivated when showing the
"Double-click to edit" tooltip over a link or a media, so that the
website.menu is updated only once, when saving the edit menu dialog.

task-2513588

X-original-commit: 4244b60f36acbdbdc17c24d45144604d1276c15f
Part-of: odoo/odoo#81351
2021-12-14 10:55:10 +00:00
Younn OlivierandArthur Detroux d25033ff1c [FIX] web_editor, website: fix validation issue when saving LinkDialog
There was an issue when saving the LinkDialog with invalid data.
The _DialogLinkWidget.save methods return values were not consistent.

Also, tests are added for the regular menus edition.
The existing mega menu edition test was not played from the python test
suite.

task-2513588

X-original-commit: 725cad3478e5ab12ad7f0cf5166a2b968a1373da
Part-of: odoo/odoo#81351
Co-authored-by: Arthur Detroux (ard) <ard@odoo.com>
2021-12-14 10:55:10 +00:00
Younn Olivier 40a06bfafa [FIX] web_editor: do not toggle link tools/popover for extra menu items
[1] changed the event listener to toggle the link tools and the popover
on links from mousedown to click.

Before that, when clicking on the extra menu items toggle, the mousedown
target was most of the time the icon, so the link tools and the popover
were not initialized. Now, as we listen for the click event, the target
is the <a/> element, for which the tools and the popover are
initialized.
It should not be the case, as this is a technical element that the user
has no control over.

task-2513588

[1]: add3e05840869d4a885ca18a2bbabfcb61c7a83d

X-original-commit: f1f40517be9280c6f770a116e6909a6d147a3e43
Part-of: odoo/odoo#81351
2021-12-14 10:55:10 +00:00
Younn Olivier 1bbb7c920b [FIX] website: fix menu item edition from "edit link" button
When changing the label of a navbar menu via the link popover "edit
link" button and the menu edition dialog, the label would not be changed
after saving.
Reloading the page would display the updated label.

While the RPC was correctly made to update the website.menu, the editor
would apply a historyRevert after the DOM update to change the menu
label on the page. This change should not be recorded by the editor as a
RPC to update the website.menu is executed at the same time.

task-2513588

X-original-commit: 71ac6244037608cf529586b43946f992b723e7db
Part-of: odoo/odoo#81351
2021-12-14 10:55:06 +00:00
Louis Wicket (wil) ba097f69e1 [IMP] mail: rename discuss public view model
Rename javascript model `mail.discuss_public_view` to `DiscussPublicView` inorder to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81346

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 10:54:56 +00:00
Louis Wicket (wil) ba6dd459be [IMP] mail: rename dialog manager model
Rename javascript model `mail.dialog_manager` to `DialogManager` in
order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81334

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 10:54:52 +00:00
Louis Wicket (wil) 17bcfc3fda [IMP] mail: rename chat window manager model
Rename javascript model `mail.chat_window_manager` to `ChatWindowManager` in order to distinguish javascript models from python models.

Part of task-2701674.

closes odoo/odoo#81323

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-12-14 10:54:48 +00:00
xlu-odoo f5feb70ae4 [FIX] website: remove safari css workaround for configurator svgs
In Safari (14+) the CSS workaround to make block "readable" over any bg
is broken. By replacing the current CSS workaround by an appropriate
SVG filter in each themes svg, the problem will be fixed.
This commit will remove the CSS workaround.

task-2667028

closes odoo/odoo#81190

X-original-commit: 6b17497f4e29394a704646b287f0d9c8c9839768
Related: odoo/design-themes#538
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-12-14 10:54:42 +00:00
John Laterre (jol) 477365a608 [FIX] l10n_nl_edi: fix traceback when posting an invoice
With the previous fix, if the company created an invoice for a
non-EAS client in a journal used for EAS clients, it would raise a UserError.

That behavior was not intended, and is being fixed here.

Related PR odoo/odoo#80740

closes odoo/odoo#81360

X-original-commit: 81209239d1ef38ad6c53dd7706d57fb9312bda82
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: John Laterre <jol@odoo.com>
2021-12-14 10:00:41 +00:00
Florian Charlier dda6e65e15 [FIX] crm: fix priority stars alignment
Better aligns the stars with the label when no expected deadline is set,
by styling the parent div to space out non-empty children.

Task-2709761

closes odoo/odoo#81358

X-original-commit: 61925f488557181ae691d222a142a242c939d3e0
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-14 09:11:23 +00:00
Mitul Shah c7fd509f9c [IMP] web: improve tooltip for priority widget's star icons
Prior to this commit, when we hover on any star icon (from a priority
widget field), we only get the label of a selection value linked with
particular icon. For example, if a 'Priority field is having a selection
values 'Low' and 'High', on hover of the start, we see 'Low' and 'High'
(in the same sequence as selection values).

But sometimes (for example in kanban view, where we don't display the
field label), it is not very clear what they indicate.

This commit improves the behavior by adding a field label also in the
title attribute of the star icons so that users can get a better
understanding of what each selection means. In our example, it will
now display the tooltip as 'Priority: Low' and 'Priority: High'.

Task-2691338

closes odoo/odoo#80213

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-14 09:11:19 +00:00
Fabio Barbero a66cdf3f7f [IMP] link_tracker, http_routing: ignore requests from social bots for link tracker
Purpose
=======
Avoid counting requests from social bots (twitter, facebook, linkedin...)
when tracking a link.

Specifications
=============
Social media platforms have a specific user agent in the HTTP headers that
can be used to detect them and to not increment the click count in that case.

Task-2578902

closes odoo/odoo#78806

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-12-14 09:11:15 +00:00