Commit Graph
150932 Commits
Author SHA1 Message Date
Xavier BOL (xbo) 3f263f1eae [IMP] project: display milestone field in the tasks in Project Sharing
Before this commit, the external collaborator cannot see in which
milestone the tasks in the project are linked in the Project Sharing
feature.

This commit adds the milestone field in the Project Sharing to show the
milestone linked to a task in the project shared.

task-2829542
2022-05-31 10:29:09 +02:00
Xavier BOL (xbo) 50ffc33999 [IMP] sale_{project,timesheet}: remove 'delivered_milestone' in invoice_policy
Before this commit, when the `Milestones` feature is disable, the user
can always defined a service product with invoice policy equals to
'Based on Milestones' but since the feature is disabled he cannot add
this product on a milestone and so this configuratiom is useless without
the feature.

This commit removes the item into the invoice_policy field Selection
when the feature is disabled. Moreover, when the feature is disabled,
the existing products with this setting should be updated to be a
service product with `invoice_policy='delivered_manual'`. The quantity
delivered method of the existing SOLs containing those products should
also be updated to allow the user to manually edit the quantity
delivered of those SOLs when the `Milestones` feature is disabled.
However, when the `Milestones` feature is enabled again, only the
products contained in SOL linked to a milestone will be updated because
we cannot assume all service products with
`invoice_policy='delivered_manual'` were a service products with invoice
policy based on Milestones. Also the existing SOLs containing the
products updated will not be updated too to not impact the quantity
delivered.

task-2829542
2022-05-31 10:29:09 +02:00
Xavier BOL (xbo) d923f8ae4a [IMP] sale_timesheet: avoid calling filtering before for loop
Before this commit, 2 loops are made, one for the `filtered` method and
another for the for loop with the result of the `filtered`.

This commit avoid using the `filtered` method since all could be done in
the for loop directly.

task-2829542
2022-05-31 10:29:08 +02:00
Xavier BOL (xbo) e058472d21 [IMP] project: display wizard to reach milestone if all tasks linked are done
Before this commit, when the user changes the stage of a task linked to
a milestone, he cannot know if after that task, there is another one
before reaching the milestone related.

This commit displays a wizard to allow the current user to directly
mark as reached the milestone when the user changes the stage of a
task linked to a milestone to a closed stage and all tasks linked to
that milestone are done too. However, if the milestone is already
reached, no wizard will be displayed.

task-2829542
2022-05-31 10:29:08 +02:00
Xavier BOL (xbo) 41b72e0398 [IMP] project: display in green milestone if all tasks linked are done
Before this commit, when all tasks linked to the milestone are done, it
means all tasks are in a closed stage. Then, the user has no visual
feedback to know if all tasks linked to the milestone are done to be
sure he can mark the milestone has reached without missing a task to
complete.

This commit checks if all tasks of unreached milestones shown in the
project update are done or not. If it is the case the milestone is
greened to show to the user that milestone can be marked as reached.

task-2829542
2022-05-31 10:29:08 +02:00
Xavier BOL (xbo) c1feb0deaf [IMP] sale_project: get the SOL from the milestone to task if no SOL found
Before this commit, the compute of `sale_line_id` field searches a SOL
to set to each task containing in `self` as default value for
`sale_line_id`. If no SOL is found in the parent task or the project set
into the task then no SOL will set. Since a milestone can be set to a
task and a milestone can have a SOL set in its model, the task could
have the one of the milestone if no SOL is found.

This commit sets the SOL from the milestone to the task if no SOL is
found in the project or the parent task related to that task.

task-2829542
2022-05-31 10:29:08 +02:00
Xavier BOL (xbo) d128a7683b [IMP] project: add 'Late Milestone' filter in tasks
Before this commit, the milestone is displayed in red in project update
when its deadline is in the past. To display the tasks containing a late
milestone, a filter need to be added.

This commit adds this filter to display the tasks containing a milestone
with a deadline in the past. This filter is also added in the `Tasks
Analysis` and the `Burndown Chart` reports.

task-2829542
2022-05-31 10:29:08 +02:00
Xavier BOL (xbo) a118555a40 [IMP] project: link milestone to task
Before this commit, the milestones are only linked to a project without
any link to the tasks of the same project. However, the tasks could be
considered as steps to reach a project milestone.

This commit adds a link between the `project.task` and
`project.milestone` models. This link is added in the `project.task`
model with the Many2One field called `milestone_id`. With this field,
the user will be able to link a milestone to a task.

task-2829542
2022-05-31 10:29:08 +02:00
Audric Onockx (auon) fd521e8d39 [FIX] project : allow to continue recurrence
This fix corrects the error committed in a previous fix :
https://github.com/odoo/odoo/pull/85209

closes odoo/odoo#92381

X-original-commit: d6bff1a9ccfc52adf98dbbf5c9c56c4a1a4fb3e8
Signed-off-by: Xavier <xbo@odoo.com>
2022-05-31 09:06:18 +02:00
Florian Damhaut 073540c132 [FIX] project: use website lang for portal sharing view
Step to reproduce:
- Have a least 2 lang with portal lang set to langA
- Log in as portal user
- In portal change lang to langB
- Go to portal sharing view

Current behaviour:
- Iframe does not get info from the request and use the user's
 lang

Behaviour after PR:
- If there is a lang set on the website (in url) we use this one
instead.

closes odoo/odoo#92459

X-original-commit: 8c8cc52479132a91a2abd7592d589835798c3a49
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-05-30 22:49:32 +02:00
Carlos Valverde 37af093d2a [REF] o-autogrow scss refactoring
This commit deletes the class `o-autogrow` and replaces each instance of
it with a global Bootstrap class.

Task-2833725

closes odoo/odoo#89714

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 21:45:13 +02:00
Alexandre Kühn 71d56c9ffe [MOV] mail: rename RTC models (step 1)
- rename 'RtcController' to 'CallActionListView'
- rename 'RtcOptionList' to 'CallOptionMenu'
- rename 'RtcInvitationCard' to 'CallInviteRequestPopup'
- rename 'RtcInvitations' to 'CallInviteRequestPopupList'
- rename 'RtcVideo' to 'CallParticipantVideo'

Task-2867786

closes odoo/odoo#92463

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 20:43:48 +02:00
Alexandre Kühn cb53260afb [IMP] mail: rename RTC models (step 1)
- rename 'RtcController' to 'CallActionListView'
- rename 'RtcOptionList' to 'CallOptionMenu'
- rename 'RtcInvitationCard' to 'CallInviteRequestPopup'
- rename 'RtcInvitations' to 'CallInviteRequestPopupList'
- rename 'RtcVideo' to 'CallParticipantVideo'

Task-2867786

Part-of: odoo/odoo#92463
2022-05-30 20:43:48 +02:00
Nasreddin Boulif (bon) d8760bf21f Cherry pick of dc8dac3e0f004f2d2569fb2bcf780a4b0669d23f failed
stdout:

stderr:
15:07:24.803999 git.c:344               trace: built-in: git cherry-pick dc8dac3e0f004f2d2569fb2bcf780a4b0669d23f
error: could not apply dc8dac3e0f0... [FIX] website_sale_stock: use website warehouse on sale order
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
----------
status:

closes odoo/odoo#92461

X-original-commit: d47b845faeda716a3a943fc4aff6c90a86d26b70
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-05-30 20:43:42 +02:00
Trinh Duc Do 945e409bf4 [FIX] sale: remove duplicate product records
closes odoo/odoo#92384

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-05-30 19:41:00 +02:00
tsm-odoo 3573a7fef4 [IMP] mail, *: use wowlEnv instead of the legacy one
*: bus, calendar, hr, hr_holidays, im_livechat, mail, mail_bot, note, project,
sms, snailmail, test_mail, web, website_livechat, website_slides.

task-2582313

closes odoo/odoo#83774

Related: odoo/enterprise#26493
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-30 19:40:53 +02:00
Yannick Tivisse 2f20ec501a [FIX] resource: Allow excluding leaves on list_work_time_per_day
closes odoo/odoo#92368

Taskid: 2862737
X-original-commit: 6fbbc0b6e090ea7209d9ecf37d21f3314b06c833
Related: odoo/enterprise#27809
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-05-30 18:43:47 +02:00
Trinh Duc Do 76d0de3563 [CLA] signature for haumenphai
closes odoo/odoo#92450

X-original-commit: 1563fb8019cbe57e5c6fd1fb2d2a7a821142207f
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-05-30 16:46:04 +02:00
Guillaume (guva) 8b743ba30a [FIX] account: reconciliation on reversed move
With this commit, we make sure that all lines are fully reconciled when
reversing a move.

Steps to reproduce:

- Create a Journal Entry, with eg a line with 300$ debit/credit and two others
lines to make the journal entry fully balanced

|   Account   |   Partner   |   Debit   |   Credit   |
|-------------|-------------|-----------|------------|
|  Account X  |             |   300.0   |     0.0    |
|  Account Y  |  partner A  |     0.0   |   100.0    |
|  Account Y  |  partner B  |     0.0   |   200.0    |

- Then reverse the move
-> Only one line is marked as fully reconciled, the other one is marked
as partially reconciled.

This is because each line was passed in the reconcile method with
all the counterpart lines, even those which didn't belong to it.
Therefore, all the firsts lines was marked as partially reconciled
until the last one, which passed with the only counterpart line
left.

With this commit, we group the lines and counterpart lines by account,
and reconcile them.

This is a correction of this commit 6481eb720f36f3e81c2ec8371cccdd893a5e8ddf
which introduced a bug in l10n_mx, when unreconciling moves with tax 0%,
here are the steps to reproduce this bug:

- With l10n_mx installed
- Create an invoice with tax 0%
- Confirm and register payment
- Try to unreconcile the payment
-> We get an UserError : "You are trying to reconcile some entries that
  are already reconciled"

This happened because in the first fix, we didn't filtered the already
reconciled moves. Also, it's reproductible in 15 but change is made here
in order to keep consistency between versions.

opw-2810392
opw-2851999

closes odoo/odoo#92446

X-original-commit: 869ed09c23c0ab64b6c030a673d5f549b9b095f9
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Guillaume Vanleynseele <guva@odoo.com>
2022-05-30 16:46:00 +02:00
Louis Wicket (wil) da11c4cdf4 [IMP] base: make sure binary_field_real_user is a record
Ensure that the value of binary_field_real_user is a record before using
it.

closes odoo/odoo#92441

X-original-commit: 4ccf918c1596ac0ee104774d98d014708f03e901
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-30 15:32:13 +02:00
qsm-odoo 309be771a5 [FIX] website: properly initialize carousels of dynamic snippets
Before this commit, the carousels of dynamic snippets were only
initiliazed once the controls were interacted with, making the "speed"
option useless. Now, they are initialized just like any other carousels
via the related public widget. That public widget actually does more,
like ensuring all carousel slides have the same height. That last part
was actually fixed for the 15.0 version but by duplicating the public
widget code at [1], that duplicated code is removed here too.

Note: the carousels do not start on page load but still need to be
hovered first just like normal carousels.

[1]: https://github.com/odoo/odoo/commit/c2e3fdccd84a9077b50d2fcf0dd147026cbc613a

opw-2767903

closes odoo/odoo#92148

X-original-commit: aa8a45001eb60ed5816271b6a3b008e4df19c016
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-05-30 15:32:09 +02:00
Brieuc-brd 6c654f774b [IMP] mail: RtcLayoutMenu, adjust indentation
The commit related to the scss revamp
(356c51876e7ad649e0ea89920000e695fe58a2a5) added new elements to the DOM
but without the correct indentation.

This commit adjusts the indentation of the file.

task-2855553

closes odoo/odoo#91551

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 15:32:05 +02:00
Brieuc-brd ca4d72bf14 [REF] mail: RtcLayoutMenu, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2855553

Part-of: odoo/odoo#91551
2022-05-30 15:32:04 +02:00
Brieuc-brd db716a54eb [REF] mail: WelcomeView, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2852562

closes odoo/odoo#91285

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 14:28:00 +02:00
Paul Morelle f7494a914d [IMP] web: add stacklevel to DeprecationWarning
bcf665a291 introduced this deprecation warning without a stacklevel
argument. Adding it makes the error highlighted precisely where the
deprecated import occurred.

closes odoo/odoo#92420

X-original-commit: 9c01ab0deec4b82c60d8f942c39f2ca33aa42afd
Signed-off-by: Julien Castiaux <juc@odoo.com>
Signed-off-by: Paul Morelle <pmo@odoo.com>
2022-05-30 13:24:23 +02:00
Benoit Socias 7cf1a95a85 [IMP] website: make configurator industry search case-insensitive
Since [1] synonyms entered on IAP had to be lower-case to be matched by
the industry auto-complete.

After this commit the client-side of the configurator makes sure labels
and synonyms are matched without case sensitivity.

Steps to reproduce:
- Add an upper-case synonym on IAP
- Create a new website
- Search for added synonym
=> Industry associated with synonym did not show up.

[1]: https://github.com/odoo/odoo/commit/5d5d5d75d52a2a9e0d12bdb6442e006327ba9b0c

task-2835608

closes odoo/odoo#92419

X-original-commit: 1385a20c7ce22d2a68fa5d76ca8e34e4c679d402
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-05-30 13:24:19 +02:00
Raphael Collet cea235118b [IMP] core: warn every call site of deprecated methods
Having the parameter stacklevel=2 in warnings.warn() logs the warning
once per location that calls the method with the given warning.  This is
what makes sense for warning calls to deprecated methods.

closes odoo/odoo#92411

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2022-05-30 13:24:15 +02:00
Raphael Collet f3ec4b634a [IMP] tests: enable warnings even when retrying tests
When retrying a test, if a deprecation warning has been emitted the
first time, it will not be re-emitted the second time, and will
therefore not be shown in logs.  Use warnings.catch_warnings() to reset
the "emission counter" of the warnings.

Part-of: odoo/odoo#92411
2022-05-30 13:24:15 +02:00
Thanh Dodeur 15696599a8 [IMP] mail: hide the overlay of the call viewer on mouse leave
part of task-2692836

closes odoo/odoo#92343

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 13:24:10 +02:00
Brieuc-brd 6a9b896219 [REF] mail: Emoji, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

This commit also uses padding instead of margin to select emojis more
easily.

task-2856230

closes odoo/odoo#91618

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 13:24:06 +02:00
Brieuc-brd 5b80114b63 [IMP] mail: RtcConfigurationMenu, css cross-browser compatibility
This commit improves cross-browser compatibility for the `user-select`
property by adapting the css statement to Safari's Webkit syntax.

task-2853292

closes odoo/odoo#91483

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 13:24:02 +02:00
Brieuc-brd b8a888c6b5 [REF] mail: RtcConfigurationMenu, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2853292

Part-of: odoo/odoo#91483
2022-05-30 13:24:02 +02:00
Brieuc-brd 9cf57935e4 [REF] mail: ThreadPreview, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2843449

closes odoo/odoo#90529

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 13:23:56 +02:00
Brieuc-brd f6afa8d336 [REF] mail: MobileMessagingNavbar, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2837311

closes odoo/odoo#90162

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-30 13:23:53 +02:00
Alexandre Kühn 4c95e5f753 [FIX] mail: no traceback on change checkbox of suggested recipient
Follow-up of #91671 (Task-2817547)

Changes above fixed an issue with composer suggested recipient
feature not properly prompting a dialog to create new partners.

The fix was correct before #90678 (Task-2831082/Task-2849934), but
it needs to be slightly adapted for this small technical changes.
By omiting them, any change of checkbox state results in a crash.

This commit properly adapt code in `_onChangeCheckbox` to take
into account both changes.

closes odoo/odoo#92408

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-30 12:11:44 +02:00
tsm-odoo a4dc7a3d8e [IMP] mail: wrap top level components into containers
Top level components should always be wrapped in containers since they have to receive
a record comming from messaging. To do that, we need to wait for messaging to be initialized.
In the PR introducing the new environment in the discuss app, some of those components will
be passed to the main_component registry, messaging won't be ready yet. In order to ease the
transition, the last components missing a wrapper have been wrapped.

task-2582313

closes odoo/odoo#92402

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-30 12:11:40 +02:00
Victor Feyens c5939b6662 [FIX] sale: log notes in salesman/company language
The note "Quotation viewed by customer" posted when a public user
accesses an order on the portal (with a token) was translated in
the "automatic" language, i.e. the website or user (or browser language).

This doesn't make much sense since log notes are not meant to be shown to
the user, only to the internal user(s) (/salesman).

This commit makes sure that the message is not translated in the website/customer lang,
but in the salesman or company language instead.

Task - 2836421

closes odoo/odoo#90318

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-05-30 12:11:28 +02:00
MAHAMADASIF ANSARI c297dc8604 [IMP] mass_mailing: improve UX of favorite filter
If you do not have favorite filters available in the mass mailing for
selected model, we display empty drop down, which is not ideal.

This commit improves the behavior with following changes:
- If there is no filter available (for this target) and no condition
  set in the mailing domain, do not display anything
- If mailing domain is set but there is not filter available, show a
  custom label "Save Filter as Favorite" save icon next to it

Ent PR: https://github.com/odoo/enterprise/pull/26308
task-2711258

closes odoo/odoo#87673

Related: odoo/enterprise#26308
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-05-30 12:11:24 +02:00
stefanorigano (SRI) c4a7cf7732 [IMP] hr_expense: review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984.

task-2859751

closes odoo/odoo#92132

Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-05-30 10:34:49 +02:00
xlu-odoo bf57a5ae35 [REF] web: ExportDialog revamp
This commit simplifies the SCSS of the export dialog.

task-2816763

closes odoo/odoo#88008

Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-05-30 10:34:45 +02:00
Xavier Morel 319f9bf5ea [IMP] mail: allow admins to remove channels they're not members of
The only mail.channel rule was that a user only had access to channels
they're members of, or can subscribe to (public, or group based).

This rule applied to admins as well, forcing them to switch to
super-admin mode in order to manage mail channels.

This is undesirable on lots of axis:

- superadmin mode is a bit of a last-ditch feature, as a result it's
  somewhat hidden
- there is a much higher risk of screwing up as superadmin mode
  basically lifts all the access rules, which can have correctness
  implications
- auditing completely breaks down when using superadmin mode, as the
  real identity of the user is lost

OPW-2857136

closes odoo/odoo#92299

X-original-commit: 1a77ab5726bbcc477d12f40f67433d474ea85316
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-05-30 09:28:49 +02:00
Florian Damhaut d0c4866f3d [FIX] hr_holidays: Timeoff domain in view
Timeoff is apply in the view to take effect on every view type
instead of only the calendar.

closes odoo/odoo#92027

X-original-commit: 3b89abcc3def129b91221eb983a5a936670d7b9c
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-05-30 09:28:42 +02:00
Karan Bosamia d9cbb91ef3 [FIX][gamification]: Validate mail template
'name' field not present in 'gamification.goal' model
which causes error while rendering mail template such that
object 'gamification.goal' has no attribute 'name'
opw-2844136

closes odoo/odoo#92300

Closes: https://github.com/odoo/odoo/pull/91439
X-original-commit: 0a1970e218527440debb8c75fff2fa47de5e2677
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-05-30 08:28:56 +02:00
Denis Ledoux 23c24843cc [FIX] mail: template _is_dynamic with a field having groups=
Using customization, if you add a field on `mail.template`
with a `groups=` attribute with a group your regular users do not belong to,
e.g. `groups="base.group_system"`,
the users will have an access error when attempting to read the given
field when checking if the template is dynamic,
with the `_is_dynamic` method.

We could restrict the list of fields to read/check to the fields
the user has access, but that means a user could
duplicate a template with code in the fields he cannot see.

So, read the field has sudo to make sure they do not contain code
is the way to go.

closes odoo/odoo#92371

X-original-commit: 41cbd3fdfec8e2b7a8b22360c5bb7f7b9bab4b1e
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-05-27 17:45:59 +02:00
Raphael Collet 3ae2c7db72 [FIX] base: avoid invalidation that slows down updating module dependencies
closes odoo/odoo#92356

Signed-off-by: Rémy Voet <ryv@odoo.com>
2022-05-27 16:42:55 +02:00
Agustín Castro Bugallo 208c714b40 [FIX] hr_work_entry_contract: Fix is_unforeseen_is_leave constraint violation
The constraint is added in `hr_payroll`, checking that if `is_unforeseen`
is True, then so must be `is_leave`. To reproduce the error simply install
`hr_payroll`, edit Work Entry Type Attendance to set as unforeseen absence
and upgrade the module `hr_work_entry_contract`.

closes odoo/odoo#92358

X-original-commit: 5448ddcbec8a1058aa271206d5a8999b3e67dda5
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-05-27 15:42:46 +02:00
Arnold Moyaux 86878dd13e [FIX] mrp,purchase_stock,stock: avoid new param
following commit 55398263f9297ab2709e4c4c2a9c6c3ee7f59c8a
Introduce a new param to fix a notification issue. However
we could use the context instead of a new parameter in order
to avoid breaking the customisation.

Linked to PR #88303 discussion

closes odoo/odoo#92353

X-original-commit: 69dcdd410adcefe29bfa4fecd2e7c50fe3465b19
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-05-27 15:42:40 +02:00
Jeremy Kersten 7d73a48367 [IMP] website: push 404 event to plausible
This Goal will help end user to find most 404 hits and fix the
legits one...
Fixing typo, creating missing redirect, or fixing code.

We need to cast the event-name since plausible only accept 'string'
as custom event name, so if we push 404 instead of '404' the event
crash.

closes odoo/odoo#92243

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-05-27 14:43:00 +02:00
qsm-odoo 8a01b40d29 [FIX] web_editor, website: review widgets stop on editor save
Original 14.0 commit title:
Prevent deadlock on editor save when an option is focused
See [1].

In 15.0, the code worsened... but, by chance, fixed the deadlock bug.
See adapted version via the X-original-commit.

With this master version of the original commit, it is tried to clean
the code a bit... at least around the code that was originally touched,
without starting a big refactoring that is again needed. The deprecated
(and added by mistake) 'edition_will_stopped' and 'edition_was_stopped'
events are now gone.
Hopefully, we will continue to improve that editor hierarchy (and
ultimately converting to OWL?) in future updates.

[1]: https://github.com/odoo/odoo/commit/53a08b3470d7d18488abf93b7ea6551700650460

Related to opw-2767903

closes odoo/odoo#92321

X-original-commit: 483a2d6cac1be3b40a4d1878536baea9e6098ec1
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-05-27 12:47:45 +02:00
Yannick Tivisse 95ed4ce98a [FIX] hr_contract: Allow retrieving first contract date at given time
closes odoo/odoo#92310

X-original-commit: f78aad96bcf1d499e4da4b634d56efdd2342ccdf
Related: odoo/enterprise#27780
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-05-27 11:45:51 +02:00