Commit Graph
149266 Commits
Author SHA1 Message Date
Alexandre Kühn beda6fc72c [IMP] mail, *: guard PartnerImStatusIconComponent
*: hr_holidays

Task-2797754

closes odoo/odoo#86844

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 17:14:07 +01:00
Alexandre Kühn f6a0636733 [IMP] mail: guard ThreadViewTopbarComponent
Task-2797754

closes odoo/odoo#86952

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:13 +01:00
Alexandre Kühn d099d45f25 [IMP] mail: guard ThreadViewComponent
Task-2797754

closes odoo/odoo#86951

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:10 +01:00
Alexandre Kühn 146e11ecc8 [IMP] mail: guard ThreadTextualTypingStatusComponent
Task-2797754

closes odoo/odoo#86950

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:06 +01:00
Alexandre Kühn 90b3ea7cfe [IMP] mail: guard ThreadPreviewComponent
Task-2797754

closes odoo/odoo#86949

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:17:01 +01:00
Alexandre Kühn 55286327fa [IMP] mail: guard ThreadNeedactionPreviewComponent
Task-2797754

closes odoo/odoo#86948

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:57 +01:00
Alexandre Kühn 694fe89cfc [IMP] mail, *: guard ThreadIconComponent
*: im_livechat

Task-2797754

closes odoo/odoo#86947

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:54 +01:00
Alexandre Kühn 4b5d981b47 [IMP] mail: guard RtcVideoComponent
Task-2797754

closes odoo/odoo#86946

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:50 +01:00
Alexandre Kühn 38b6e2ade8 [IMP] mail: guard RtcOptionListComponent
Task-2797754

closes odoo/odoo#86945

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 16:16:46 +01:00
Alexandre Kühn 89e036f0cf [IMP] mail: guard NotificationRequestComponent
Task-2797754

closes odoo/odoo#86843

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:59 +01:00
Alexandre Kühn 5f6da59b02 [IMP] mail: guard NotificationPopoverComponent
Task-2797754

closes odoo/odoo#86839

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:55 +01:00
Alexandre Kühn 583dafa240 [IMP] mail: guard NotificationListComponent
Task-2797754

closes odoo/odoo#86838

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:50 +01:00
Alexandre Kühn 13caf09833 [IMP] mail: guard NotificationGroupComponent
Task-2797754

closes odoo/odoo#86837

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:46 +01:00
Alexandre Kühn e606de75af [IMP] mail: guard MobileMessagingNavbarComponent
Task-2797754

closes odoo/odoo#86836

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:41 +01:00
Alexandre Kühn 8830389c7d [IMP] mail: guard MessagingMenuComponent
Task-2797754

closes odoo/odoo#86835

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:36 +01:00
Alexandre Kühn ccd0806881 [IMP] mail: guard MessageSeenIndicatorComponent
Task-2797754

closes odoo/odoo#86834

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:32 +01:00
Alexandre Kühn dae7be97f4 [IMP] mail: guard MessageReactionGroupComponent
Task-2797754

closes odoo/odoo#86833

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:28 +01:00
Alexandre Kühn b901d037ac [IMP] mail: guard MessageListComponent
Task-2797754

closes odoo/odoo#86832

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:24 +01:00
Alexandre Kühn 37edb5b38c [IMP] mail: guard MessageInReplyToViewComponent
Task-2797754

closes odoo/odoo#86831

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:20 +01:00
Alexandre Kühn f5107aef05 [IMP] mail: guard MessageAuthorPrefixComponent
Task-2797754

closes odoo/odoo#86830

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:15 +01:00
Alexandre Kühn ad9bc3474c [IMP] mail: guard MessageActionListComponent
Task-2797754

closes odoo/odoo#86829

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:11 +01:00
Alexandre Kühn 16577265a8 [IMP] mail: guard MediaPreviewComponent
Task-2797754

closes odoo/odoo#86827

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:07 +01:00
Alexandre Kühn 1a7840fc46 [IMP] mail: guard MailTemplateComponent
Task-2797754

closes odoo/odoo#86826

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:37:03 +01:00
Alexandre Kühn 0be13d7fe8 [IMP] mail: guard FollowerSubtypeListComponent
Task-2797754

closes odoo/odoo#86824

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:36:59 +01:00
Alexandre Kühn f89aa1e548 [IMP] mail: turn 'ComposerView/hasThreadName' into field
Task-2793280

closes odoo/odoo#86470

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 14:36:54 +01:00
Alexandre Kühn 1aa07b0f94 [IMP] mail: guard FollowerSubtypeComponent
Task-2797754

closes odoo/odoo#86823

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:46 +01:00
Alexandre Kühn b28d151b1e [IMP] mail: guard FollowerListMenuComponent
Task-2797754

closes odoo/odoo#86822

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:42 +01:00
Alexandre Kühn ca604a31b2 [IMP] mail: guard FollowerComponent
Task-2797754

closes odoo/odoo#86820

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:38 +01:00
Alexandre Kühn 08562f9e7f [IMP] mail: guard FollowButtonComponent
Task-2797754

closes odoo/odoo#86819

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:34 +01:00
Alexandre Kühn a34fa43b18 [IMP] mail: guard EmojiListComponent
Task-2797754

closes odoo/odoo#86818

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:30 +01:00
Alexandre Kühn bd9f3344ee [IMP] mail: guard DiscussSidebarCategoryItemComponent
Task-2797754

closes odoo/odoo#86814

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:27 +01:00
Alexandre Kühn 5aed3d08ca [IMP] mail: guard DiscussSidebarCategoryComponent
Task-2797754

closes odoo/odoo#86813

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:22 +01:00
Alexandre Kühn 28f4ca1418 [IMP] mail: guard DiscussSidebarComponent
Task-2797754

closes odoo/odoo#86811

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:18 +01:00
Alexandre Kühn 2616fa4e39 [IMP] mail: guard DiscussPublicViewComponent
Task-2797754

closes odoo/odoo#86810

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:15 +01:00
Alexandre Kühn 412f64f17d [IMP] mail: guard DiscussComponent
Task-2797754

closes odoo/odoo#86809

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:11 +01:00
Alexandre Kühn 08610e1d87 [IMP] mail: guard DialogComponent
Task-2797754

closes odoo/odoo#86800

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:07 +01:00
Alexandre Kühn bc9599a955 [IMP] mail: guard DeleteMessageConfirmComponent
Task-2797754

closes odoo/odoo#86799

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:40:03 +01:00
Louis Wicket (wil) ee9759a144 [MOV] mail, *: move utils files up
* = calendar, hr, hr_holidays, im_livechat, note, sms, snailmail,
test_mail, website_livechat, website_slides
Task-2759586

closes odoo/odoo#86791

Related: odoo/enterprise#25491
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 13:39:56 +01:00
Jinjiu Liu 609195b025 [FIX] website_sale: changed domain for Online Sales Analysis
Reproduction:
1. Install eCommerce, and complete a checkout using the Wire Transfer
   payment, but don’t confirm the order at the website backend
2. Go to Orders > Unpaid Orders, the new created order should be there
3. Go to Reporting > Online Sales, select the "Unpaid Orders" filter
4. No pivot table shown for the unpaid orders

Reason: the pivot table is restricted for confirmed orders only (‘sale’
or ‘done’), the unpaid orders filter in Reporting has a different domain
from Orders

Fix: Remove the domain constraint for pivot table. Set the "Confirmed
Orders" filter to default

opw-2754932

closes odoo/odoo#86933

X-original-commit: 09b91b4bdf73004b70ff65f8f88ba034978af56b
Related: odoo/enterprise#25473
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-03-23 12:10:57 +01:00
Florian Damhaut e20c70977c [FIX] website_sale: searchbar also search product code
Step to reproduce:
- Search code of product in website_sale search bar

Current Bheaviour:
- No result

Behaviour after PR:
- Search also try to match , similar behaviour to V14 and before

opw-2737648

closes odoo/odoo#86921

X-original-commit: 395643d1377750577f3588506035623f9d0489c9
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-03-23 12:10:53 +01:00
Randall Castro 8930aa08ab [FIX] base: state codes for Costa Rica fixed
According to Costa Rica INEC (Instituto
Nacional de Estadística y Censo) governmental
institution entrusted with the running of
censuses and official surveys in the country
and Ministerio de Hacienda (Government Ministry
of Costa Rica in charge of governing the fiscal
policy on public resources, according to the
principles of economy, efficiency and
effectiveness).

INEC reference:
Topic 3. Codificación detallada de la DTA,
calificación de grado de urbanización y
región de planificación.
[Codificacion y Clasificacion](https://www.inec.cr/sites/default/files/documetos-biblioteca-virtual/meinstitucionalmcgfecr.pdf)

Ministerio de Hacienda reference:
[Codificacion](https://www.hacienda.go.cr/ATV/ComprobanteElectronico/docs/esquemas/2016/v4.1/Codificacion,canton,provincia,distritoybarrio.pdf)

closes odoo/odoo#87034

Signed-off-by: Josse Colpaert <jco@odoo.com>
2022-03-23 11:00:07 +01:00
Benjamin Vray 29eda89bc7 [FIX] web_editor: fix scrolling the page while dragging a snippet
Since the commit [1], it's no longer possible to scroll the page while
dragging a snippet thanks to its thumbnail.

This is because for mass mailing the scroll element is not the same and
to check it we were looking for a class in the DOM. For that we did a
jQuery 'find' but without a 'length', the jQuery 'find' is always
truthy.

[1]: https://github.com/odoo/odoo/commit/29c6c80ac7009aa5068c763778342f7c6b115fad

task-2798872

closes odoo/odoo#87021

X-original-commit: d4b231222c5baf726332deddfe6d4c5e3e7865db
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-03-23 10:59:55 +01:00
anhe-odoo bc27fffb27 [FIX] delivery: use pricelist to compute shipping cost
Expected Behaviour

When adding a shipping cost in a SO, with the shipping method being
associated to a product, the price should be calculated according to
the price of the product in the order's pricelist if available

Observed Behaviour

When adding a shipping cost related to a product, with a fixed price,
the public price of the product is used instead of the price defined
in the SO pricelist

Reproducibility

1. Create a product "Test Shipping" with a public price of 10
2. Create a shipping method "Test Shipping" associated with the
"Test Shipping" product
3. Create a pricelist "Test Pricelist", where the product "Test
Product" has a cost of 15
4. Create a contact "Test Contact" associated with "Test Pricelist"
5. Create a So for the "Test Contact" with "Test Shipping" as shipping
method -> Shipping cost will be 10 instead of 15.

Fix Description

The issue here was that the price computed by the delivery carrier didn't
took into account the selected pricelist. We tried to then change it in
the delivery chooser wizard, but some issue with particular case (i.e.
when the shipping cost should be 0 if the SO total is bigger than X)
appeared, leading us to add the fix directly in the delivery_carrier
classe.

Related Issues/PR

- opw-2754482

closes odoo/odoo#87028

X-original-commit: bb778cd7be835706f54e9e0f342eecf3e5e4e904
Signed-off-by: Adrien Widart <awt@odoo.com>
Signed-off-by: Hendrickx Anthony (anhe) <anhe@odoo.com>
2022-03-23 07:06:06 +01:00
Denis Ledoux 3625b1d761 [FIX] auth_totp_portal: revoke trusted device selector and model
The selector `.fa.fa-trash.text-danger` is not enough precise,
it could select another element using the same classes,
as it's the case in #85682,
and at the binding the event `RevokeTrustedDeviceButton` `_onClick`
event on that other element.
I would have used a dedicated class directly on the element,
such as `o_auth_totp_remove_trusted_device`,
but since we are in stable and cannot rely on the template
being updated, there is no other choice than using what we
currently have without the update.

In addition, the `remove` method must be called on the model
`auth_totp.device`, as since the revision
https://github.com/odoo/odoo/commit/2dee29a7dc6db5cd1f9cc62989b905cff5466f3b#diff-6ea780b2956bc89552a57dd3e711fdd7191d1599c246cc9c887bcc38fa7eabacR11-R12
`auth_totp.device` has been added,
inheriting from `res.users.apikeys` but with a different `_name`
and they therefore do not share the same IDs.
Meaning you would end asking the deletion of the `res.users.apikeys`
record using the same ID than trusted device record.

closes odoo/odoo#87033

X-original-commit: 0aeb0030752e3634218ce7dd3d394447715d403b
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-03-23 01:26:13 +01:00
Akim Juillerat 7de9403a9e [FIX] hr_recruitment : send interview to duplicated applicant
Steps :
Install Recruitment and Surveys.
Recruitment > Settings > Enable Send Interview Survey.
Recruitment > Any Position > Create an Application,
click on Send Interview and then on Send.
Duplicate it, click on Send Interview end then on Send.

Issue :
ValueError: Wrong value for survey.user_input.applicant_id.

Fix :
This is initially caused by the fact that the applicant's response
is also duplicated. As it shouldn't be, copy=False.

opw-2751975

closes odoo/odoo#87023

X-original-commit: bc9dc1d710cee2808e0823bb96064c0f87beee78
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-03-23 00:29:36 +01:00
Goffin Simon bc40f57fec [FIX] website_slides: Missing translation
opw:2765730

closes odoo/odoo#87012

X-original-commit: 5982d2e9d31bd56c517bd11ff9d3ebdf5a430f70
Signed-off-by: Simon Goffin <sig@odoo.com>
2022-03-23 00:29:30 +01:00
Sébastien Theys 57ac4a4dca [IMP] mail: prevent useless render of message view
Avoid observing the last message view just for checking the state of self.

task-2800990

closes odoo/odoo#87003

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-03-23 00:29:26 +01:00
Ipsita Borisagar 1043c6c65c [FIX] mail: do not allow guests for group restricted channels
Before this commit:

When user shares the invitation link of the channel(groups restricted), guests
are allowed to access it.

After this commit:

Guests will not be allowed to access channels that are restricted to groups.

Task-2679184

closes odoo/odoo#87004

X-original-commit: ea3232c111546ec636f543db912bf0e2a7ed345b
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-03-23 00:29:22 +01:00
roen-odoo 741d2fe9ef [FIX] mrp, sale_mrp: Avoid merging stock move different bom_line_id
Current behavior:
When using a product kit that have a product kit in his BoM some move line where merging when they shouldn't.
Because of this the delivered count wasn't correctly updated in any sale order using this product

Steps to reproduce:
- Create product B to manufacture with a BoM (type Kit) using component A and component B
- Create product A to manufacture with a BoM (type Kit) using product B and component A
- Create a sale order with product A
- Confirm the sale order and validate the delivery
- The delivered count of product A on the sale order stays at 0

opw-2777810

closes odoo/odoo#87000

X-original-commit: 0e6480811e2144a1034f1347a816a0bd052c4516
Signed-off-by: Tiffany Chang <tic@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
2022-03-22 23:31:03 +01:00
Abdelouahab (abla) 7b366a8895 [FIX] auth_ldap : add system parameter to disable referral chasing
To reproduce
============

- Using ldap server with Microsoft Active Directory
- Set up ldap authentication on Odoo
- Trying to log with a username/password from ldap on Odoo doesn't work

Purpose
=======

Because referral chasing is enabled by default, python-ldap ends up requesting
a completely different unrelated server.

Specification
=============

To solve the issue, a system parameter `disable_ldap_chase_ref` must be created
to have the possibility to disable referral chasing by setting its value to `True`.

opw-2724800

closes odoo/odoo#86993

X-original-commit: f40a98ee9b020782d0097372066c555909253768
Signed-off-by: Olivier Dony <odo@odoo.com>
Signed-off-by: abla001 <abla@odoo.com>
2022-03-22 23:30:59 +01:00