Commit Graph
140385 Commits
Author SHA1 Message Date
Ipsita Borisagar 4299d2233c [IMP] bus,mail: improve discuss notification design
PURPOSE

Discuss notification needs to be changed for better UI.

SPECIFICATION

Improving design of discuss notification by using bg-info instead of bg-warning.

LINKS

PR https://github.com/odoo/odoo/pull/55542
Task-2308799

closes odoo/odoo#55542

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-10 15:20:45 +00:00
Florent de Labarre bed9b811dd [FIX] delivery : return value for unlink
Was not returning the result of super call (most likely "True")

closes odoo/odoo#62917

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-12-10 14:42:21 +00:00
Thanh Dodeur c53b798267 [FIX] mail: prevents traceback on attachment delete during upload
Before this commit, removing attachments that are being uploaded
could lead to a traceback if the removed attachment was still
awaiting for the upload of another attachment.

part of task-2363522

closes odoo/odoo#63164

X-original-commit: d345ab808d1261953ee9c588d1cb5fe2571d3e69
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-10 13:26:14 +00:00
Sébastien Theys fb7b32dbcb [FIX] mail: only highlight needaction on their origin thread
task-2391170

closes odoo/odoo#63163

X-original-commit: 2752d961922a3527f3c919d4578a33b8e87eeffb
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-10 13:14:22 +00:00
Yannick Tivisse 3daf67d902 [FIX] hr_holidays: Archive meeting on leave refusal
Unlinking it could be problematic if the synchronization is activated
with google or microsoft, as this action is prevented to avoid multiple
synchronization of the same event.

closes odoo/odoo#63157

X-original-commit: 09a404149d8c15c82d1268bde9c4a725c6babe32
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-10 12:34:22 +00:00
sofiagvaladze acf99ae77d [FIX] hr_expense: Fix traceback caused by empty currency_id
One can leave the currency_id empty and that causes Traceback error

Task - 2409942

closes odoo/odoo#63159

X-original-commit: 7473ad44f960aa3609faafe0cee8e12a392b43a9
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: sofiagvaladze <sofiagvaladze@users.noreply.github.com>
2020-12-10 12:36:09 +00:00
Juan Jose Scarafia d200931080 [FIX] l10n_ar: currency rate digits
AFIP currency rates goes up to 6 digits.
When invoicing exportation of services, AFIP requires to invoice on the exactly same rate. Without this change it was not possible for some currencies with 6 digits as CHF one.

The change takes effect without needing of updating module

closes odoo/odoo#63156

X-original-commit: 150493ca3fff8b44cf890205990dbd72cebdcb36
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-12-10 12:22:40 +00:00
Benjamin Vray ec8860448d [FIX] web_editor: fix color-customize dynamic svgs on snippet drop
Before this commit, the theme colors did not update dynamic svg images
due to an inversion between key and value in the code.

closes odoo/odoo#63154

X-original-commit: 9b1916c382f105d30e7d693c0b914c05db593da0
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-12-10 12:06:37 +00:00
Barad Mahendra de3bc12c00 [FIX] stock: Set default product on update qty wizard from variant
Currently, when we update the Quantity from the 'Update quantity'
button on a variant formview the product_id is not set due to
reset of the context for product template.

so in this commit, set the default product_id on update quantity
wizard when open through the product form view and also keep
default behaviour when called from product template.

closes odoo/odoo#63141

Taskid: 2387310
X-original-commit: 49b8f1bfde1792079c0fd9cdb218eab20f344be3
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-10 10:55:06 +00:00
Christophe Monniez 8fd7232a0e [IMP] core: bump master version to 14.2 alpha1
closes odoo/odoo#63132

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-12-10 09:23:55 +00:00
Didier (did) 626db2b2d3 [FIX] mail: disable multiline channel
This avoid text flickering when a multiline channel name is hovered in the
discuss sidebar.

task-2274991

closes odoo/odoo#63100

X-original-commit: 6a3d8982a657fc4e124f6bebe457289297efdabe
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-12-09 14:27:21 +00:00
Didier (did) 4a85802852 [FIX] mail: fix unfedined record when pressing "end" key in mentions
task-2411756

closes odoo/odoo#63099

X-original-commit: 4b5cfee6726fed4918deecba2237d948f9e416f0
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-12-09 14:26:53 +00:00
Anh Thao Pham (pta) c2e55d8ac7 [FIX] point_of_sale: fix ignored products from POS order report
- Open a POS session
- In the same POS order, add the following order lines:

     Product   |   Quantity   |   Price
  ----------------------------------------
    Product A  |      1       |  $ 1.00
    Product A  |     -1       |  $ 2.00
    Product B  |      1       |  $ 5.00

- The order has a total of $ 4.00
- Pay and validate order
- Go to Point of Sale > Reporting > Orders and switch to pivot view
The order has a total of 5.00

This is due to the fact that products, for which the sum of quantities is equal
to 0, are not retrieved by the SQL request.
(i.e. Sum of quantities for Product A = 1 - 1 = 0)
This is caused by the HAVING section that is there to prevent a division by 0
when computing average_price, which depends on the sum of quantities of the product.

The solution is to remove the HAVING section and to set average_price to NULL
when the sum of quantities for a product is equal to 0.

opw-2369023

closes odoo/odoo#63130

X-original-commit: 80d44f1735a49acf3a43c5c4638523d4434ac537
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2020-12-10 09:15:16 +00:00
Christophe Monniez 44af06132e [FIX] uom: move product_uom_dozen back to data
In commit ab76c421c2 the Dozens unit of measure was moved to demo data.
Unfortunately, this data is used in enterprise module product_unspc in a
post init hook.

As a consequence, when installing this module without demo data, the
initialization crashes.

With this commit, the Dozens uom is moved back to regular data.

closes odoo/odoo#63120

X-original-commit: e194c39e044710cbf314427d77bd2b87795c34ff
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-12-10 06:53:31 +00:00
Odoo's Mergebot b3ff4c98dc [MERGE] google/microsoft_calendar: Allow a user to stop the synchro
Description of the issue/feature this PR addresses: Give more flexibility to the users by allowing them to stop
the synchronization with Google/Outlook calendar.

Current behavior before PR: Only way to stop the active synchronization with Google/Outlook calendar is
to uninstall both modules.

Desired behavior after PR is merged: Add a "toggle" button that allow to turn on/off the synchronization with Google/
Outlook calendar independently (i.e. possible to turn off Google sync. while leaving Outlook sync. active).

(PS for the review: the source codes for Outlook and Google are almost identical, except for the Calendar Popovers and
the tests for the new stop/restart feature).

Task ID: 2330246

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#60825

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-10 11:21:54 +01:00
Aurélien (avd) 005741e509 [IMP] microsoft_calendar: add stop synchronization button
Add the possibility to stop/restart the synchronization with
Outlook calendar.

Change the calendar event popover in the calendar view to
display an Archive button if event synced at least once.

Add some tests for the new stop/restart feature.

(PS: this is essentially the same commit as the one for the
google_calendar module except for the JS popover and python
tests).
2020-12-10 10:23:10 +01:00
Aurélien (avd) 6acdcb6fd8 [IMP] google_calendar: add stop synchronization button
Add the possibility to stop/restart the synchronization with
Google Calendar.

Change the calendar event popover of the calendar view to
display an 'Archive' button if the event was synced at least
one.

Add some tests for the new stop/restart features.
2020-12-10 10:23:10 +01:00
Xavier Morel ab475628a4 [FIX] core: don't require xlrd
Despite being part of the requirement.txt, xlrd apparently was still
optional-ish, and absent from some environments like the iotbox.

Restore this by only monkeypatching xlrd if it's actually present.

closes odoo/odoo#63045

X-original-commit: c36aa16c2cc431a1e3b3bb7047dbae4fcac13946
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-12-08 15:42:16 +00:00
Laurent Smet 79f98810b1 [IMP] account: Allow locking the period with cancelled statement lines
This case shouldn't appear in a normal usage of the statement lines because there is no way to cancel them.
However, this case should be supported in 14.0 due to a choice we made for the migration.
Indeed, we don't want to create draft journal entries in a locked period during the migration but the statement lines that are not reconciled in a locked period shouldn't be deleted in order to keep the statement starting/ending balance consistency.
So, the journal entries created in a locked period for not reconciled statement lines are cancelled and then, we don't want to block the locking of any period because of that.

closes odoo/odoo#63104

X-original-commit: b5e186124de69061e91f657e1a330ba019614256
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-12-09 15:13:24 +00:00
Ivan Yelizariev 4938c84739 [FIX] pos_cache: make it compatible with onboarding tool
STEPS:
* install pos_cache in clean database without demo
* open pos
* click OK on popup "Would you like to load demo data"

closes odoo/odoo#63103

Before: error, products are not loaded even after refreshing
After: no errors, products are loaded
X-original-commit: e669ea8a6a79fdf7e309b3191c9648c60179d195
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-12-09 15:12:53 +00:00
Odoo's Mergebot 80e0a2181d [IMP] mrp: install quality_worksheet in setting
Add a checkbox to install quality_worksheet in mrp setting, it will be
shown when quality_control is installed.

Task 2281266

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#60991

Related: odoo/enterprise#14479
Related: odoo/upgrade#1980
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-12-09 16:57:05 +01:00
Odoo's Mergebot b5c69c31a6 [IMP] Time Off: Year Calendar ajustments
A new calendar view has been added, the "year" view.
Some modifications should be done on this view, more specially in "Time Off" application.
Problems were the fact that it was hard to see if a time off has been approved or not or week-ends & public holidays that are not grey.

Another goal with Year view is to display it in a single page without scroll bar.
Before this commit, a scrollbar was displayed on the right of the screen.
This results in some data wasn't displayed on the screen.
Now, the year view is scalled to the browser.
That means that all informations are now on the screen (without scrollbar).

This commit changes year calendar in Time Off module.
More specially, this commit:
- Changes default calendar in personal dashboard to "year"
- Gray week-ends & public holiday (based on the worker's calendar)
- Hatches non-approved time off
- Removed a calendar view from My Time Off Requests
- Fix a "cancel" button that doesn't work
- Add a new view that is displayed when there is no filter to show on the filter view for calendars

"is_hatched" is used to hatch date under specific conditions
The goal was that it was not possible to display some information differently depending on a variable.
Now, if a variable named "is_hatched" is set to true and passed to the calendar view, the specific date is hatched.

This PR also fixes a bug in calendar view: If a filter has a space in his title, we were not able to collapse it.

Task id #[2318645](https://www.odoo.com/web#action=333&active_id=1251&cids=1&id=2318645&menu_id=4720&model=project.task&view_type=form)
Task id #[2317525](https://www.odoo.com/web#action=333&active_id=1251&cids=1&id=2317525&menu_id=4720&model=project.task&view_type=form)

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#56183

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-09 16:56:55 +01:00
Giacomello Nathan ec25487cfb [IMP] Time Off: Year Calendar ajustments
A new calendar view has been added, the "year" view.
Some modifications should be done on this view, more specialy in "Time Off" application.
Problems were the fact that it was hard to see if a time off has been approved or not.
Another was the fact that week-ends & public holidays were not grey.

This commit change year calendar in Time Off module.
More specially, this commit:
- Change default calendar in personal dashboard to "year"
- Gray week-ends & public holiday (based on the worker's calendar)
- Hatch non-approved time off
- Removed a calendar view from My Time Off Requests
- Fix a "cancel" button that doesn't work
- Add a new view that is displayed when there is no filter to show on the filter view for calendars

Task id #2318645
Task id #2317525
2020-12-09 16:06:30 +01:00
Giacomello Nathan 6cfec48ba4 [FIX] Web: Cannot collapse calendar sidebar
A calendar filter's id is the concatenation of "o_cw_filter_collapse_" and the title of the filter.
When title has space (like "Time Off Type"), the id become "o_cw_filter_collapse_Time Off Type", which is invalid.
So, we can't collapse the filter.
With this fix, it replace space by nothing so if there is space in title (like "Time Off Type"), the id is "o_cw_filter_collapse_TimeOffType".

Task id: 2318645
2020-12-09 15:53:09 +01:00
Giacomello Nathan 2af0a86db8 [IMP] Web: Add field to calendar & resize Year view
- Resize Year view
- Add "is_hatched" field
- Scroll to current month in Year view
- Hide the sidebar if no filter is present

The goal with Year view is to display it in a single page without scroll bar.
Before this commit, a scrollbar was displayed on the right of the screen.
This results in some data wasn't displayed on the screen.
Now, the year view is scaled to the browser.
That means that all information are now on the screen (without scrollbar).

"is_hatched" is used to hatch date under specific conditions
The goal was that it was not possible to display some information differently depending on a variable.
Now, if a variable named "is_hatched" is set to true and passed to the calendar view, the specific date is hatched.

Task id #2318645
2020-12-09 15:53:09 +01:00
std-odoo 29f4bfd188 [FIX] (website_)event: constrain event tour steps to the event module
Bug
===
When we start the Event tour, if we go outside of Event during the tour
we might see the tour bubble in the other application.

It should be visible only in Event.

Task 2381898

closes odoo/odoo#63098

X-original-commit: 3209e775fe89132914cad9bc7ab40fa1a7811229
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-12-09 14:26:22 +00:00
Laurent Stukkens (LTU) 1b9c02b052 [FIX] sale_timesheet: allow project timesheets to be updated
Before this commit:

    - If the user did not have sufficient rights (only group_hr_timesheet_user),
      then the update of the SOL on the task did not trigger an update on all
      not invoiced timesheets but only on the one of the user.
    - An exception was raised when updating the sale_line_id of the
      sale_line_employee_ids of a project as it tries to update
      the related employees project timesheets (which can be different
      from the current user).

After this commit:

    - All the not invoiced timesheets of the task are updated when changing
      the task SOL.
    - The exception will not be thrown as the write opperation is made
      with sudo rights.

closes odoo/odoo#63080

X-original-commit: 2db68c37ef32d9006301152c4595d2032948e933
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-09 11:32:26 +00:00
Jorge Pinna Puissant e66168d084 [FIX] sale_quotation_builder: change website_description when the template id changes
Fine-tuning of 0106fcd59c

Have a SO with a partner in another language
Apply a quote template to a SO
Customize the portal view to show website_description of a product on the template
Translate it
Show the SO on the portal

Before this commit, the description of the product was not translated
This was because the field was not included in the onchange of template_id
causing that field to never have changed, that is, it kept the description
done injected with the first write

After this commit, the description is changed according to the partner's lang

opw-2366738

closes odoo/odoo#63094

X-original-commit: b2b6fbef3a48249fef541e71c7f5b4745ef23d02
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2020-12-09 13:04:08 +00:00
Andrea Grazioso (agr-odoo) f345458d75 [FIX] sale_coupon: avoid double consuming of coupon
Create a coupon code
use it in a quote A
cancel the quote A
use it in a quote B
confirm B
go back to quote A
set to quotation
confirm

Result: you used the coupon code twice

opw-2410684

closes odoo/odoo#63067

X-original-commit: 58d82943c58ed50e2cae27b8eb085fc4e54eebaf
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2020-12-09 09:08:41 +00:00
Sébastien Geelen (sge) fd5fc76677 [FIX] web_editor: Qunit test properly wait for editor stop
closes odoo/odoo#63073

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2020-12-09 10:24:14 +00:00
svs-odoo 186a8b962b mrp,stock: rename quality_control_worksheet
Add option to install Quality Control / QC Worksheets from stock
settings.

task-2281266
2020-12-09 08:30:28 +00:00
yhu-odoo f1933add37 [IMP] mrp: install quality_worksheet in setting
Add a checkbox to install quality_worksheet in mrp setting, it will be
shown when quality_control is installed.

Task 2281266
2020-12-09 08:30:28 +00:00
Goffin Simon 30e5e58f3c [FIX] account: Register payment
Steps to reproduce:

- Create a customer invoice I for a total of 1000€
- Confirm I
- Register a payment

Bug:

The default amout in the wizard was 0€ instead of 1000€

The default amount is computed by _get_wizard_values_from_batch with the sum of
amount_residual of all the lines. But in function _compute_amount_residual, it
checked line.id and this case, all the lines were in cache with NewId

opw:2413064

closes odoo/odoo#63050

X-original-commit: f734b1cdc2780107ce690306aa1bc0acb9f13161
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-12-08 16:28:42 +00:00
Odoo's Mergebot 4c5c3e41c0 [MERGE] calendar: add link to join video call
This commit adds a link to each calendar.event to join a video call
hosted on Jitsi.

TaskID: 2367543

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#61280

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-09 12:05:28 +01:00
Kevin Baptiste 61e9b6ac4e [IMP] calendar: add link to join video call
This commit adds a link to each calendar.event to join a video call
hosted on Jitsi.

The domain of the Jitsi instance can be configured using the
configuration parameter `website_jitsi.jitsi_server_domain` (defaults to
meet.jit.si).

TaskID: 2367543
2020-12-09 10:16:44 +01:00
Patrick Hoste 317025d3fb [IMP] web: support disable_multiple_selection parameter when opening the o2m dialog
PURPOSE

Sometimes we want to limit selection of 2many fields to a single record at
a time. For example when creating marketing automation activities we want
users to create them one at a time to ease linking between them (parent /
children relationships). Indeed 2many subrecords have to be created before being
selected in other 2many subrecords (i.e. create an activity to set it as
parent of another activity).

SPECIFICATIONS

The open_one2many_record trigger method now accets disable_multiple_selection
option in parameter to pass it to the FormViewDialog constructor.

LINKS

Task ID-2087993
COM PR odoo/odoo#40177
ENT PR odoo/enterprise#6675

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-12-09 08:27:46 +00:00
Kevin Baptiste e562a22ad2 [IMP] base: add CopyClipboardURL
This commit adds a CopyClipboardURL widget which can be clicked on to open
the link.

TaskID: 2367543
2020-12-09 08:20:22 +01:00
Kevin Baptiste c90bf3f703 [FIX] web: do not overlap calendar popover
The content of the popover was overflowing on the button if they were
too many elements. It will now display a scrollbar when needed.

TaskID: 2367543
2020-12-09 08:20:22 +01:00
svs-odoo c71b4e13a9 [FIX] sale_stock: fix exceeding SO line
Fix a bug introduced by #62032 and which causing the creation of
unwanted additional SO line with multistep delivery.

closes odoo/odoo#63057

X-original-commit: 076966fda2edcf1e5225c09b03c6700aa1b1f6e9
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Steve Van Essche <svs-odoo@users.noreply.github.com>
2020-12-08 17:58:34 +00:00
Ivan Yelizariev 1b502a4ec7 [FIX] mail: turn tagged name with special characters into links
STEPS:
* Created partner with following name: Putin's spokesman
* Tag the partner in a message: @Putin's spokesman

BEFORE: tag is not converted into a link
AFTER: the link is created

WHY: _generateMentionsLinks uses ``owl.utils.escape`` which is different from ``_.escape``

https://github.com/odoo/odoo/blob/880555b38dee0c3e3b364c19bb6b0db983bf8aa0/addons/mail/static/src/models/composer/composer.js#L659

So following replace didn't work:

https://github.com/odoo/odoo/blob/880555b38dee0c3e3b364c19bb6b0db983bf8aa0/addons/mail/static/src/models/composer/composer.js#L667

---

opw-2408863

closes odoo/odoo#63056

X-original-commit: 5b62b40713d28cc905fd4c54de13cf2de39d988d
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-12-08 17:58:09 +00:00
Kamesh Patel 9a18bb89fe [FIX] project: Fix wrong recipient display based on email_from
Currently, The customer that is not selected anymore is suggested
as a recipient

steps to reproduce:
1. create a project task without a customer set
2. select a customer, then remove it, then save
3. send a message in the chatter
--> the customer that is not selected anymore is still suggested as
a recipient.
The issue is due to invalid value of partner's email in the field
email_from on task.

So in this commit, when the customer is not defined or is not a child
task then keep the email_From of the task.
(Here we are checking the task.parent_id because when someone update
the email_from on parent it should be updated in child task's
email_from and when we remove the email_From in parent it should not
be removed from child task)

closes odoo/odoo#63055

Taskid: 2339894
X-original-commit: 46fd7d7979f25c5fe8fe36999186a10ffb6376dc
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 17:13:53 +00:00
Nasreddin (bon) ec65813040 [FIX] account_payment: Online invoice button has "Pending" instead of "Pay Now"
Issue

	- Create SO
	- Send quote to customer
	- Customer pays via CC (payment should be in "done" stage and SO is confirmed)
	- Add shipping to the SO
	- Create invoice and send invoice via email

	Customer does not see a pay button in the preview, instead they see "pending".

Cause

	Does not check if still residual amount in the invoice.

Solution

	If still residual amount, show 'Pay button' and allow to pay.

opw-2392401

closes odoo/odoo#63054

X-original-commit: 7fbea075e5803360a798455dee16a9cdaf0bf271
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-12-08 17:13:24 +00:00
Kevin Baptiste cc654dab9b [FIX] hr_expense: fix form view not editable on new record
Since commit 80c1dad, the form view of a new record was no longer
editable.

The "editability" of the expense sheet is computed based on the status
but no default value was available.

closes odoo/odoo#63049

Taskid: 2413154
X-original-commit: d0ad00fddf5c3eb05381769a4e75c93e4dcfc388
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-12-08 16:28:18 +00:00
bat-odoo f8ed130425 [FIX] pad: FIX error on pad when switching projects.
Currently, when we have pad issue when we switch the pad to html
editor.
for Ex: In the Project app with the Collaborative Pad activated, if we
create a task and change the Project name multiple times (one having
the Collaborative Pad activated while the other not activated), then
at one point the Collaborative Pad doesn't show up and it will display
object object.
issue is due to object value of the url and it was not going to check for
the startwith 'http'.

So in this commit, When value is json method convert it to the json object
so the value must check proper condition for the startsWith(this.value, 'http').

closes odoo/odoo#63047

Taskid: 2336325
X-original-commit: 73bfe794351b2881fed041983b90f3d90025d23e
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 16:18:53 +00:00
Yannick Tivisse 516b537b93 [FIX] rating: Fix typo
closes odoo/odoo#63044

X-original-commit: 28c3d671fe2d140ff4d412d4010537e94eb39b91
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 15:41:52 +00:00
Kevin Baptiste fce463ca5b [FIX] hr_timesheet: trigger compute on project_id / task_id
Before this commit the fields project_id and task_id on
account.analytic.line were sharing the same compute method which was not
triggered when one of those fields were changed.

Here the fields get their very own compute method.

closes odoo/odoo#63043

Taskid: 2389727
X-original-commit: bb1611fef1d1e78b3c38e92d40c31fa915128295
Related: odoo/enterprise#15192
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 15:40:49 +00:00
Thibault Francois 9e487dc20e [FIX] hr: search on employee_id field raise bad query
Problem
-------
A user with no read access on private employee (hr.employee) model
will get a bad query error if he search on employee_id on res.users

The new domain evaluation system generate query like this
SELECT "hr_employee"."user_id" FROM "hr_employee_public"
because the _search of hr.employee was not returning the search result
from the right table

Solution
--------
Return a search result from the right table

closes odoo/odoo#63036

X-original-commit: e542c4121af098372c250a081635a44829e50406
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 14:52:50 +00:00
Krina Oza de2edd2bb5 [FIX] sale_timesheet,project: Removed links to the documents
In this commit the links to Time Billing and Customer Rating's documents
in timesheet and project respectively are removed.

TaskID:2411098

closes odoo/odoo#63035

X-original-commit: 158e94692c1d2d5a533180238273060343263e95
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 14:52:25 +00:00
Prakash Prajapati 10b57a0606 [FIX] mail: Fix traceback on immediate onchage after mark activity done
Currently, there is traceback when we make the activity as done and
directly fire the onchange.
Reproduce step:
1) Create an appraisal
2) Create an activity
3) Refresh the Page
4) Done the activity
5) Unpublished the Manager Feedback

The 'onchange' action receives the ID of the activity that was marked as done
and thus the 'Missing record' error.

So in this commit, on done of the activity trigger refesh to reload the
activity ID.

closes odoo/odoo#63034

Task-id: 2357760
X-original-commit: 23d9bd0b7e43dcb431450664172fbcd409c9d62c
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-08 14:51:48 +00:00
root 91f57b09dc [FIX] website_sale: compare id with id instead of record
Before this commit Odoo tries to compare an 'account.fiscal.position' id with an 'account.fiscal.position' record.
This causes a 'Comparing apples and oranges' warning in the logs and is not the right way to do this.
This is a fix for d89fa970e8e5b07f1b9a396e6ee02db7fdd136e4 where this issue was introduced

closes odoo/odoo#63029

X-original-commit: d9a1b28144523ece2c6fa4329f3ae4b7ff4a38ec
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-12-08 14:03:53 +00:00