Commit Graph
142069 Commits
Author SHA1 Message Date
Julien Banken c2b099ef76 [IMP] event: remove the dates from the urls and the default name of the events
PURPOSE

Previously, the url of the events contained the start and end date of
the event. This link can be sent by email. If an administrator changes
the start or the end date of the event, the event will still be accessible
via the provided link. However, the user can be misled because the dates
of the url will no longer match with those set on the event. To avoid
confusion, the start and the end date will be removed from the url.

SPECS

- Remove the start date and the end date of the event from: (1) the urls
  and (2) the default name of the events.

NOTE

Note that URLs are backward compatible as only the ID is really used to
find a record through routes.

LINKS

Task-2347597
COM PR odoo/odoo#69102
ENT PR odoo/enterprise#17612

X-original-commit: 60be7bb337804f2fa59003d6e5dc70ecc9750427
2021-04-12 10:39:57 +00:00
Julien Banken 17edf6712d [IMP] website_event_track: ask for notifications when favoriting a track
PURPOSE

When a user adds a track to his/her favorites, we really want to make
sure that the notifications are activated so that he/she can be
notified when a track is about to start.

The "Set Favorite" button of the tracks will now propagate a new event
that will notify the notification manager that a new push notification
request should be issued immediately.

SPECS

- Trigger a new event when the user adds a tracks to his/her favorite.

LINKS

Task-2347597
COM PR odoo/odoo#69102
ENT PR odoo/enterprise#17612

X-original-commit: 0e28bfdea3938b1d76cb62223b84f155a6ce75d7
2021-04-12 10:39:57 +00:00
Aurélien Warnon b7b7ca38c4 [FIX] website_event_track: put partner_biography back on track proposal
Small oversight of #60847 where the "partner_biography" field was mistakenly
removed from the frontend track proposal form.

This commit simply re-introduces the field back into the form and saves it when
submitting the event.track proposal.

Task-2500455

closes odoo/odoo#69116

X-original-commit: cef6d91190de0c305c2f7a45b87717db28a9c7db
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
2021-04-12 10:39:39 +00:00
Benjamin Frantzen (bfr) 6af91e0f92 [FIX] account_edi_ubl: remove wrong move creation when importing xml
The move was created before its type was determined and the type was ignored. This could cause an issue when this method was called directly if 'default_move_type' was not set in the context (the move would therefore be an entry).
Thankfully, this shadowed another bug: when determining the type of the invoice, the context was ignored, and therefore if the file was imported as an invoice, the type determined was 'in_invoice' instead of 'out_invoice', this didn't cause any problem since the type was ignored. This commit fixes that also.

closes odoo/odoo#69110

X-original-commit: cba93b5b300ade03940c3737c5ad231f163c322c
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
2021-04-12 08:53:05 +00:00
Michael Mattiello (mcm) b73545ff2a [FIX] web: no bounce button form field/label click
Since commit [1], a delay was added to "debounce" the quick edit to
check if the user did a click or a select.
Because of this delay, the edit button now bounces when clicking on
a field or label.

In this commit, we check if the user clicks on a "quick editable"
field or a label to prevent bouncing.

[1] https://github.com/odoo/odoo/commit/2939ea4dd4736e659cc3e4df2226a3b08ac8ec48

closes odoo/odoo#68835

X-original-commit: 755a02135049f22e1e8db356169b5224f00c1f92
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-04-06 13:50:07 +00:00
Raf Geens 0a62fce86e [FIX] base: Report which PDFs can't be read
PyPDF2 can't read some PDFs due to bugs, lack of fault-tolerance and not
supporting some encryption schemes. When invoices are uploaded directly
through the Invoices / Accounting app, that will fail for those files
because it will try to read part of them. When invoices are uploaded
through the Documents app, they're not read, which means the customer
can end up in a situation where read and merge operations (like when
printing a selection of original vendor bills) will fail.

The structural solution for this is to replace PyPDF2 with a more capable
 library, like pikepdf: https://github.com/odoo/odoo/pull/64356 .

This change is too impactful for stable, and there are compatibility
concerns as well.

A possible workaround is merging the PDFs we can and bundling the rest
together in a zip file. This is possible on the level of just
_merge_pdfs, but the PDF extension and mimetype are pretty hard-coded
and the changes required to switch them to ZIP based on what happens in
_merge_pdfs seem too impactful.

Instead, this fix detects as early as possible if the PDFs can't be
read and reports it to the user. The excluded PDFs can still be
downloaded individually. In this way the user has a workaround
and does not need to resort to trial and error to figure out which PDFs
are causing the problem.

Related tickets: 2359929, 2389679

closes odoo/odoo#69082

X-original-commit: e935cf55975e4bbffcfe29dcfe51b3a91dd0aeab
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-04-09 18:55:54 +00:00
Odoo's Mergebot 43ff49dc19 [FW][MERGE] (test_/mass_)mail: improve composer and mailing tests
Purpose of this merge is to

  * merge and clean mail.compose.message related tests currently located
    in two files;
  * improve those tests and add more detailed checks about generated
    mail.mail and sent emails;
  * add some docstrings and parameter explanation in mail helpers, tools
    and asserts;
  * test sent emails in mass mailing and marketing automation tests in
    addition to traces and mail.mail;

This merge targets 14 to have a coherent test suite for mail_* features
through 14+ versions.

Task ID-2500615
Prepares Task ID-2484296 (improve markers use in Jinja)
Prepares Task ID-27033 (support QWeb in templates)
Prepares Task ID-2377974 (clean trace and status management in mass mailing)

closes odoo/odoo#69052

Forward-port-of: odoo/odoo#69004
Forward-port-of: odoo/odoo#68874
Related: odoo/enterprise#17593
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-04-12 10:55:18 +02:00
Nicolas LempereurandKamen Zhekov 38464f5aaf [FIX] web_editor: have transcoder apply text-decoration
The transcoder (transforming CSS rules into inline CSS for mail clients)
was not working for text-decoration property because it would transform
text-decoration values in:

{'text-decoration-thickness': 'normal', 'text-decoration': none}

And the regex that ensures we don't add duplicates check if there is:

"(^|;)\s*text-decoration"

so if there is text-decoration-thickness, text-decoration is not added.

The regexp could be changed to:

"(^|;)\s*text-decoration[^\w-]"

but we already have special case for other text-decoration-* properties.

With this change we should get text-decoration applied in:

- edit mode (was already the case)
- readonly mode (new)
- mail client (only if mail client does not override it)

As a side note: text-decoration-thickness seems to be rather new[^1] so
at one point in time there was probably no issue.

[^1]: https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness

opw-2496490

closes odoo/odoo#69078

X-original-commit: f4f1b890e15e98d9a7e72586faf73327d3f7b716
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Co-authored-by: Kamen Zhekov <kzh@odoo.com>
2021-04-09 18:24:21 +00:00
Thibault Delavallée a4a5bb45b5 [IMP] mail, (test_)mass_mailing: also check sent emails if possible
When using assertMailMailWEmails custom assert we now check that a sent
mail.mail matches a sent email. It allows to have a complete check from
mailing traces to sent emails.

Task ID-2500615
COM PR odoo/odoo#68874
ENT PR odoo/enterprise#17558

X-original-commit: 59da8627e0d732b12fb98faa6e66e43b8c75dc9c
2021-04-09 14:39:14 +00:00
Thibault Delavallée 344c5ef072 [IMP] mail: add tests and docstrings for rendering mixin tools (jinja / qweb)
PURPOSE

Add some tests for ``mail.render.mixin`` in order to assert its base behavior.

SPECIFICATIONS

Add tests for

  * jinja rendering tools;
  * QWeb rendering tools;
  * translation support;

Also add tests for jinja markers: block, variable and line statement markers
should be tested.

Also improve docstrings of tool methods. Add notably explanation of parameters
and better explain methods purpose.

LINKS

Task ID-2500615
Prepares Task ID-2484296 (improve markers use in Jinja)
Prepares Task ID-27033 (support QWeb in templates)
COM PR odoo/odoo#68874

X-original-commit: f3dba8e020a0be72321427ed839b80ad77386946
2021-04-09 14:39:14 +00:00
Thibault Delavallée 4c2ad37709 [IMP] event, mail, mass_mailing, sms, test_mail: clean some mail tests tools helpers and parameters
In this commit we backport some of 14.1+ improvements done in mail tools
in order to keep a coherent definition through sub versions. We also
improve docstring and add some explanations on available toold and asserts.

Task ID-2500615
COM PR odoo/odoo#68874

X-original-commit: d44c47697389866603f28ff2d5da60a97574ec5f
2021-04-09 14:39:13 +00:00
Thibault Delavallée 80224b7c57 [MOV] mail, test_mail: merge and improve composer tests
This commits is a bit a followup of odoo/odoo#62061 where new composer tests
were added. This commit finalize this work by merging all composer related
tests within the same file. It also backports some of tooling update done
in odoo/odoo#64459 or odoo/odoo#63677 in order to have coherent naming
through 14+ versions.

Some additional or deeper tests are added. Notably it now more cleanly
uses asserts for created mail.mail and sent emails.

Task ID-2500615
COM PR odoo/odoo#68874

X-Original-Commit odoo/odoo@67f31cbfcd

X-original-commit: e147ca2eb51a7008251f20f134bd021a1ae3705c
2021-04-09 14:39:11 +00:00
Thibault Libioulle b1f0e1a42a [REV] project: following a private project no longer required
This reverts commit odoo/odoo@7059b17.

This commit translates tests introduced in this reverted commit to be
aligned with the current workflow.

This commit reverts functionality or business logic linked to the
reverted commit :
- odoo/odoo#47248 : You no longer have to be an allowed user to see the
timesheets but only a message partner.
- odoo/odoo#49021 : We no longer deal with allowed_user_ids or
allowed_portal_user_ids
- odoo/odoo@f2a1a00 : We no longer deal with the allowed users lists.

This commit removes the button project_privacy_visibility for functional
reasons.

Closes: #65367
task-2439329

Related: odoo/upgrade#2128
Related: odoo/enterprise#16067
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-04-09 12:12:54 +00:00
Bonis Modi d00a381ece [FIX] hr_expense: create expense report without creating record
Currently, When we create expense report from expense it will
directly create a expense report record so discard button on
top is misleading.

So in this commit, when creating the expense report from the expense
it will not create an record but set the default value in editable
form view with auto computed name based on expense.

Also create report action coming to the two places
1) in top action menu
2) on tree header

So in this commit, removed 'create report' menu from top
action bar.

Added the depends on can_reset and can_approve to compute
the value for displaying the button when record is not saved
from the 'create Expense report' button and default in submit state.
also fix the attachment_number field because expense.id is
NewId_X while passing in default_get of expense_line_ids so count was
0 without saving the expense sheet.

closes odoo/odoo#65104

Taskid: 2359834
Related: odoo/upgrade#1875
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-04-06 09:19:44 +00:00
Achraf (abz) 7c9afd09b8 [FIX] base: Traceback with address layout in reports
What are the steps to reproduce your issue ?

    1. Go to Contacts > Configuration > Localization > Countries > Select a country
    2. Edit the 'Layout in reports' (enable debug mode) and add an invalid field
    3. Create a Quotation and search for a customer from the country you edited.

What is currently happening ?

    Traceback is raised and you can't select the customer anymore

Why is this happening ?

    Because the key is not defined.

How to fix the bug ?

    Handle KeyError to detect if the user put an undefined key
    Handle ValueError to detect if the user put an invalid format key

opw-2447078

closes odoo/odoo#69014

X-original-commit: 675feb254ed3448571818a77c920012cbd066c8b
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2021-04-09 07:19:15 +00:00
emilkholod 207c4dda5c [FIX] account : Fix error on search_read for account.move.line
* If `where_clause` is empty, then there will be an error. This commit fixes that.

closes odoo/odoo#69100

X-original-commit: f0a1bb3692e17334850fed4f22444f47992adb78
Signed-off-by: William André (wan) <wan@odoo.com>
2021-04-11 11:56:15 +00:00
emilkholod 3d5101fa18 [CLA] Signature for emilkholod
X-original-commit: 58649ef6ab7476b90c7deb5a9a2acc2553e1bb62
2021-04-11 11:56:14 +00:00
Romain Derie 60d6498d7c [FIX] website: better helper for domain in settings
If the user type his website URL as suggested by the helper, and he redirects
his `http` to `https` (nginx, cloudflare..), then his canonical url won't ever
be reachable.
Most critical issue will be that we won't display the `alternate/hreflang` tag,
which basically tells the search engines what and where is our translated
content.

opw-2486918

closes odoo/odoo#69093

X-original-commit: 15bf30b7b5312a943772ece20303e215b1ed6f6c
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-04-10 19:17:46 +00:00
qsm-odoo 6a5a47ee82 [FIX] website: restore scroll effects in custom code
The website scroll effects using the `AnimationEffect` Odoo API were not
working anymore if custom code enforces the html element as the
scrolling element. Indeed in that case the scroll event handlers were
now attached to the html element itself while it needs to be the window
in that case.

This may be something to fix at the source (the `getScrollingElement`
method). This will be checked later.

closes odoo/odoo#69087

X-original-commit: 21650ce342d0329c5385acf1181be154abbec550
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-04-10 16:54:12 +00:00
Andrea Grazioso (agr-odoo) 82e4c19947 [FIX] l10n_it_edi: only send e-invoice in IT companies
Have 2 companies, one in FR (with l10n_fr), one in IT (with l10n_it_edi)
From the French company create an invoice for a french customer.
Confirm.

The message ' E-Invoice check failed. You can modify the
invoice, and resend it.' related to italian e-invoicing will appear

opw-2481035

closes odoo/odoo#69050

X-original-commit: d5075308131f82020702c6650a1869ffd93fb85e
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-04-09 14:34:15 +00:00
Djamel (otd) 40e03c8f12 [FIX] l10n_id_efaktur: fix the “_onchange_l10n_id_tax_number” method
Steps to follow to reproduce the bug:
- Create an Indonesian company
- Go to Invoicing settings / in “Fiscal Localization” / install Indonesian-Accounting “ l10n_id”
- Go to Invoicing / Vendors / bills
- Create a new bill / add a vendor / go to “other info” / add a valid Indonesian Tax Number, for example :  “0112345678912345”
- An error is triggered

Problem:
In the “_onchange_l10n_id_tax_number” method, we try to access “record.type”, but in v14 the field "type" was replaced by "move_type” in the "account.move" model.

opw-2492530

closes odoo/odoo#69064

X-original-commit: 7cac0104625ea2bedf02a6c47801ccdb930ab939
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-04-09 15:33:27 +00:00
Mathias Markl 543f0a26d3 [FIX] base: force_storage on every attachment
When searching on attachment a (res_field, =, False) domain is
automatically added in the domain in the _search override.
The force_storage method was skipping the attachments linked to a
field and was also applying on fields of type url

closes odoo/odoo#58086

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-04-09 13:27:10 +00:00
Romain Derie c33766ded0 [FIX] website: show domain in settings even if no multi-website
Without this commit, a database with only one website would not see the domain
field in the res settings.
But the domain field is useful to set even if there is only one website.

For instance, if no domain is specified, the web.base.url ICP will be used
instead to generate links, but it might be the wrong url as it is the last
domain used to login as the admin (unless web.base.url.freeze is set).

Also, one might want to unset the `localhost` domain that was set by default
in xml data (now removed with 1f0edacdf)

closes odoo/odoo#69038

X-original-commit: 0650862c7adcbe4113e071778a66053b88e004ef
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-04-09 12:23:16 +00:00
Bruno Zanotti (ADHOC) 9cb959e952 [FIX] l10n_ar: partner with not handled responsibility type
If a partner has a not handled responsibility type return an empty list
as possibles document types instead of raising an error.

closes odoo/odoo#69010

X-original-commit: abcba544043b08de4cffcf5affd12b08afec188f
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-04-08 19:24:09 +00:00
Bruno Zanotti (ADHOC) 2d8fb8991c [FIX] l10n_ar: Responsibility type "IVA No Alcanzado"
- Add a new responsibility type "IVA No Alcanzado"
 - Update the partner "AFIP" with that responsibility

X-original-commit: e3e20fdccc2ad7bf0015d4c0a67c7ab803a97bd8
2021-04-08 19:24:09 +00:00
Sébastien Geelen (sge) ef83c6af8f [FIX] web_editor: re-implement focus method
Focus is sometimes called on the Wysiwyg class in Note.
When the user use TAB to select the next field.

Implementation was missing.

closes odoo/odoo#69033

X-original-commit: 720c1f38a17ef54cf30e0a52bab5bceed70c2144
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-04-09 10:48:31 +00:00
Sébastien Geelen (sge) d7c4362319 [FIX] web_editor: update odoo-editor lib to commit 68108b2a
X-original-commit: d3c17baf260d962eb620c77e03afccea8c16c1d1
2021-04-09 10:48:30 +00:00
Meet Patel c0ca736193 [FIX] hr: correctly link work address to admin employee
Currently, when we install Employee App, the Administrator work address
is linked to a new res.partner (Administrator).

So after this commit, Administrator work address will be linked to
the res.partner of company when Employee App is installed.

closes odoo/odoo#67910

Taskid: 2479958
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-03-16 07:13:53 +00:00
lejeune quentin 6a2b568d63 [FIX] point_of_sale: Fix wifi firmware for IoT
With the new OS RaspiOS the firmware for the wifi card are unstable.
We need to keep a specific version of firmware-brcm80211 to keep
a stable and usable wifi connection.

So we fallback on a previous version of Buster and hold the
version of the package firmware-brcm80211 before the upgrade when
we build the box.

closes odoo/odoo#69022

Id: 2499855
X-original-commit: 04c58aa229781ad165492765414483ae8e8d6693
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2021-04-09 08:56:07 +00:00
Odoo's Mergebot 82913f2193 [MERGE] web,project: add burndown chart in reporting menu
Purpose
-----------

Currently, we have reports that depict the status of a
project at a certain point in time, but we don't have any reports
representing the actual progress of the project in time.

## Details

### Burndown Chart

A burndown chart is added in the reporting menu, this chart would help users see
the evolution of the project and determine whether it is on the
right track or not.

### Stacked in line chart

Currently, we can stacked in bar chart but not in line and pie charts. Here, the stacked will be also available in the line chart for the burndown chart.
Some unit tests in JS are added to keep the stacked in line chart of the burndown chart.

### Disable the pie chart in this reporting

This chart is not useful for this reporting, thus, the button has been hidden.

### Move constants and functions in own JS file

In web module, the GraphRenderer file contains some constants and functions used in the renderer of the graph view, these constants and functions are moved in new file called graph_utils.js to easily export these.

task-2458017

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

closes odoo/odoo#68343

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-04-09 11:39:03 +02:00
Tymoteusz Motylewski 31369ff4d3 [IMP] tools: display full path in error message
Show full path to not found addons folder to ease debugging.

Before:
error: option --addons-path: no such directory: '../non-existing'

After:
error: option --addons-path: no such directory: '/home/user/Odoo/non-existing'

This message is local to developer and never displayed to the enduser

closes odoo/odoo#68959

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-04-09 07:36:48 +00:00
Andrea Grazioso (agr-odoo) b98b1c0227 [FIX] point_of_sale: correctly assign product in move
1. Have a [DEMO] product in stock with an owner
2. Make a PoS order with [DEMO]

The system will use the stock without owner.

opw-2480341

closes odoo/odoo#68951

X-original-commit: eaa9c6cc9481fb97d8c44aa057fc97accfc4d649
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-04-08 13:25:34 +00:00
oco-odoo ed1205ae55 [FIX] base: form view emulator: bidirectional definition of 'in' and 'not in'
Doing domains like [('something_ids', 'in', 4)] crashed the emulator because it was trying to check something was 'in 4', instead of reversing the check (as real form views do).

closes odoo/odoo#68988

X-original-commit: eb14583442f2729182ffb8ec7b069e2505df3577
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2021-04-08 14:57:28 +00:00
root 905d2963ff [CLA] add CLA for Mainframe Monkey
closes odoo/odoo#68995

X-original-commit: d81973ab79dec066b3b6f98b473e73c6d41f0d34
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-04-08 15:44:41 +00:00
fja-odoo 04138cc3ad [FIX] website_form: remove dynamic values on save
This fix was not forward ported when introduced: #50745

closes odoo/odoo#68980

X-original-commit: 3e5130d90127d9634c48e5301e96ddcad9b66e17
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-04-08 14:38:25 +00:00
Rémy Voet (ryv) a31f57a002 [IMP] codeowners: add codeowners for logistics team
closes odoo/odoo#68954

X-original-commit: 2d114f8722ca4be1d81ac2f221ee45aa927c76dd
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2021-04-08 11:14:19 +00:00
Xavier BOL (xbo) dd2aa12c2c [IMP] project: filter burndown chart by project
Before this commit, burndown chart displayed all changes of stage for
all active tasks in all projects. The problem is when the database
contains many projects and tasks over many years, the user can have a
timeout page rather than the burndown chart view, because we take all
active tasks in all projects, if the user doesn't archive his projects
and tasks, the data retrieved for the burndown chart is too huge to
quickly have a visual result.

This commit filters the burndown chart by the active project to retrieve
only the active tasks in a project and not all projects in the database.

task-2458017

closes #68343
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) 642fb2e6dd [IMP] project,{hr,sale}_timesheet: review dropdown in project kanban card
Before this commit, we add various buttons in the bottom of each card with a
certain condition, the problem is the lack of place to display more and
more information in each project kanban card.

This commit reviews the dropdown menus in each project kanban card.
Two sections is added one for another 'Views' to redirect to documents,
timesheets, sales order and planning, for instance. And the last section
for 'Reporting' like burndown chart.

task-2458017

closes #68343
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) 41a81aef24 [IMP] project: move the burndown chart button in the project form view
Before this commit, the burndown chart button is displayed in the
reporting menu, the problem is when the database contains many projects
and many tasks over many years, the user has a timeout page rather than
view the burndown chart, because we take all active tasks in all
projects, if the user doesn't archive his projects and tasks, the data
retrieved for the burndown chart is too huge to have a visual result.

This commit moves the burndown chart button in the project form view, in
this position, the data will be for only one project and not all active
projects.

task-2458017

closes #68343
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) a8e92d73e9 [IMP] sale_timesheet: remove deprecated code in kanban view
Before this commit, the code removed has a `t-if="1 == 0"`, it means
the content is never visible in the kanban view.

This commit removes this deprecated code.

task-2458017

closes #68343
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) b450a93441 [IMP] project: add unit test in js for burndown chart
This commit adds some unit tests in JS to check to check the line chart
for the burndown chart. If this view can be stacked as bar chart and the
stacked button is hidden only when the mode is pie chart in the graph
view.

task-2458017
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) 6ca9baf278 [IMP] project: add staked in line chart to create burndown chart
Before this commit, the stacked is not available in the line chart but
only in the bar chart.

This commit adds the "Stacked" button in the line chart and add the
possibility to stack in this line graph.

Additional features:

 - add same color for the background color when stacked

when we want to stacked in the line chart, the
background color is grey or black by default and we play with the
opacity of this color.

This commit takes the borderColor of each dataset and gives the same
color with opacity set to 0.4 for the background color when we want to
stack the line chart.

 - hide the pie chart button

task-2458017
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) 5072b68f95 [MOV] web: move the utils function in own JS module
Before this commit, we must to copy paste the functions useful for the
GraphRenderer when we override this model.

This commit moves the functions and the global variables in a new module
called graph_utils.

task-2458017
2021-04-08 08:27:49 +02:00
Xavier BOL (xbo) c94c08a941 [IMP] project: add burndown chart in reporting menu
Before this commit we have reports that depict the status of a
project at a certain point in time, but we don't have any reports
representing the actual progress of the project in time.

This commit adds a burndown chart, this chart would help users see
the evolution of the project and determine whether it is on the
right track or not.

task-2458017
2021-04-08 08:27:49 +02:00
Nicolas Lempereur 50b8333d05 [FIX] project: kanban select in selectionMode
The custom code for project.project kanban view prevented the kanban to
works in selectionMode (eg. kanban view to select a many2one record in
mobile).

opw-2490912

closes odoo/odoo#68918

X-original-commit: f03a690f09b07755cf4172524cf99f7ded5e7681
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-04-07 17:32:20 +00:00
Pedro M. Baeza 6b142e3142 [IMP] l10n_es: Add taxes for 'Retención 24%'
In https://www.agenciatributaria.es/AEAT.internet/Inicio/La_Agencia_Tributaria/Campanas/Retenciones/Cuadro_informativo_tipos_de_retencion_aplicables__2020_.shtml
we can check that this retention fee is applied for
'Rendimientos del art. 75.2.b): cesión derecho de imagen   (art. 101.1 RIRPF)'

It's not the regular retention, but there are cases where it can be
used, so we need to support it the same as others.

closes odoo/odoo#68953

X-original-commit: 192654675f4a87a62c17b501d7da0c0ee57f61cf
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-04-08 11:08:07 +00:00
Leonardo Gavidia fab70f4a09 [CLA] signature for leogavidia
closes odoo/odoo#68948

X-original-commit: 73430f2cf2dd9ffa128ad192dc586cc6e647bccc
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-04-08 10:35:16 +00:00
Hardik Prajapati 05c1104991 [FIX] sale_stock: fix incoterm column width in sales order report
Before this commit, the class col-auto was missing from the element
representing the incoterm code on sales orders' reports.
When more than four fields were shown at once in the containing table,
the columns' width was no longer equal.

closes odoo/odoo#68694

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-04-08 10:24:12 +00:00
ren-odoo 9131a40de5 [IMP] l10n_cl: Update website reference
The website is now referenced to Odoo's website, with the most updated documentation.

closes odoo/odoo#68936

X-original-commit: ad692a438acbe4054c91626a0088220611bd8f2a
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-04-08 09:33:10 +00:00
Sébastien Geelen (sge) 92d0713478 [IMP] web_editor, mass_mailing: activate undo/redo button in mail edition
closes odoo/odoo#68912

X-original-commit: 2b12674fcfdebf362e5bd806bc8374d82c30de82
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-04-07 15:44:43 +00:00