Commit Graph
147686 Commits
Author SHA1 Message Date
Adrien Widart 83def413b8 [FIX] purchase_stock: include qty in lead days computation
The combination of a RR and a supplier that has a minimum quantity and a
lead time leads to incorrect results

To reproduce the issue:
1. Create a product P:
    - Type: Storable
2. Add a reordering rule for P (min: 10, max: 50)
3. Add a vendor to P
    - Quantity: 1
    - Price: 1
    - Delivery Lead Time: 7
4. Run the scheduler
5. Open the generated PO

Error: The order deadline is <today minus 7 days> instead of today. The
receipt date is today instead of <today plus 7 days>

When computing the quantity to order, the method needs the value of
`qty_forecast` (L254 in [1]) The computation of `qty_forecast` leads to
the computation of `lead_days_date`. To do so, it gets the lead days of
the associated stock rule `_get_lead_days`. In this method, a seller is
selected: [2] However, none of the parameter is defined: [3]

In the above case, the seller has a minimum quantity of 1. Therefore,
since this information is not given in [2], the vendor is not selected
and his lead time is therefore not taken into account. So,
`lead_days_date` will be equal to 0 and won't be recomputed. As a
result, the planned delivery date is today. Then, the quantity to order
is computed (L260 in [1]), so later, the module is able to select the
correct seller. However, this one has a lead time of 7 days -> the
generated PO will have the planned date to today and the order deadline
to <today minus 7 days>

Once an orderpoint has its quantity to order defined, its lead time
should be recomputed because it may be different depending to the
selected seller (and thus we should take this quantity into account when
searching for a seller)

[1]
https://github.com/odoo/odoo/blob/59ac8d891de6e20604494d6cfc6fc357a88d226c/addons/stock/models/stock_orderpoint.py#L254-L260
[2]
https://github.com/odoo/odoo/blob/1b03087524080f1a9751b1561cd8891466e72367/addons/purchase_stock/models/stock_rule.py#L153
[3]
https://github.com/odoo/odoo/blob/045c6ad3353bb0849d3f93d3488d8dcd8b8975b0/addons/product/models/product.py#L602

OPW-2614798

closes odoo/odoo#77110

X-original-commit: f2eb1dca99d16d70613c2f724d4b73f273a49ae7
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-09-24 11:09:00 +00:00
Jeremy Kersten 20d6c0c7e2 [FIX] website: dynamic snippet, use lxml.html to process rendered view
t-field of a Text field, will use nl2br function that replace \n to <br>.
So it is html that we need to parse.

Add one return line in your sale description, and the rendering will fail
with an error opening and ending missmatch for br...

closes odoo/odoo#77108

X-original-commit: 3b3f9b24362e57b4c1538d8377ef4de5f3d65058
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-09-24 11:08:56 +00:00
Swapnesh Shah 3c2bd3994a [FIX] stock: use context_today instead of today
`fields.Date.today` doesn't give date based on TZ which might be wrong
in some cases as it doesn't respect TZ.

With this commit, we are using `fields.Date.context_today` as default date.

closes odoo/odoo#77104

X-original-commit: 24b91073a67b97af1ef3d61aee02a4ddd7053cd5
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2021-09-24 11:08:52 +00:00
jbw 631440e567 [FIX] account: fix 'upload bill tour' bill layout
- add outer shadow to bill in wizard preview
- move address block to right in generated pdf, same as in wizard preview
- set invoice date & due date on one line in pdf, same as in wizard preview

closes odoo/odoo#77093

Task: 2581377
X-original-commit: ecf2bba66782cd8b2455bf656cdf2a41fafecf89
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: jbw-odoo <jbw-odoo@users.noreply.github.com>
2021-09-24 11:08:44 +00:00
Priyanka Kakadiya 6a6f2f83d1 [FIX] project: show current project stages for burndown chart
Currently when move the task from one project(A) to another project(B)
and open the burndown chart of second project(B) it shows the stages
of first project(A). which is wrong.

so in this commit, include the tracking values of the current project
only, do not include the tracking value of the older projects.

Task-2616736

closes odoo/odoo#76964

X-original-commit: 9a6624f5f743677a233489932840e3a739330452
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-09-24 11:08:40 +00:00
Nikunj Ladava 480f2aa1e1 [IMP] website: improve wording for 'Contact us' form
Purpose is to have a more direct and engaging wording.

Task-2581308

closes odoo/odoo#75066

Related: odoo/enterprise#20209
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-24 11:08:36 +00:00
Nikunj Ladava 4430b1d958 [IMP] website_event: add 'All events' topbar filter
We don't have any option to see to see all the events currently. However
this option can be useful sometimes. For example you are looking for an
event but don't know whether it's already finished or upcoming. Or if you
are looking if some event "types" are available (e.g.: Do they sometimes
organize Tennis competitions ?).

In this commit a new filter is added in the last 'All events' which allows
users to see all the events.

Task-2581308

Part-of: odoo/odoo#75066
2021-09-24 11:08:35 +00:00
Aaron Bohy 800297064c [FIX] web: useTooltip: clearInterval on willUnmount
Before this commit, the useTooltip hooks didn't call clearInterval
when the component using it was unmounted/destroyed. In practice,
it wasn't an issue because the only component using it was the
webclient, and it is never destroyed. However, for this hook to be
usable in other contexts, it is important to remove this leak.

closes odoo/odoo#77113

X-original-commit: d076afd035ad8fadc5a0774c6c0eec15acb15026
Related: odoo/enterprise#21147
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-09-24 09:45:44 +00:00
Aaron Bohy 9d98d1e870 [REF] web: useTooltip: use template instead of component
Allowing to specify components inside tooltips to obtain dynamic
and/or html content was a bit overkill and unnecessary: a template
can do the trick and it is easier to define.

This commit thus renames attribute "data-tooltip-component" into
"data-tooltip-template" (the name of the qweb template) and
introduces the "data-tooltip-info" attribute (its value is then
available in the template under the "info" variable).

X-original-commit: 8683a8d762339451e3d9f8706aac86da80510b37
Part-of: odoo/odoo#77113
2021-09-24 09:45:43 +00:00
Rémy Voet (ryv) 37086aa554 [FIX] sale_purchase: fix purchase count MTO
closes odoo/odoo#74141

closes odoo/odoo#77105

X-original-commit: 8fec359b11a7bd57ecd3a6fd43dc429057091de7
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-09-24 08:24:28 +00:00
Kevin Baptiste 2012a9d205 [FIX] hr: bring back "My Profile"
Since the merge of 0573aca the override was no longer working.

closes odoo/odoo#77097

Taskid: 2651838
X-original-commit: 947194644a09f186899f2b2526cf0b0675af7304
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-09-24 05:50:48 +00:00
Cocographique af666dff20 [IMP] web_editor: add new "Zigs" background shape
Related to task-2545200

closes odoo/odoo#77119

X-original-commit: 1624b1659d15df731a954912b88908a24aeddb5d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-24 01:50:16 +00:00
qsm-odoo ff1f5e6c8c [REF] web_editor: simplify shape scss definition
Don't set 'repeat-y' to false explicitely as it is the default value.

X-original-commit: 26612818d71f072eaf291df6d4ee839301f36dc7
Part-of: odoo/odoo#77119
2021-09-24 01:50:15 +00:00
Aaron Bohy 35ac826f94 [FIX] web: effect: display rainbowman by default
In [1], we rewrote the effect feature in the wowl infrastructure.
However, we lost something in the process: the "type" of effect
(basically "rainbow_man" as it is the only implemented effect)
became a mandatory param, whereas before it simply defaulted to
"rainbow_man" when not set. As a consequence, previously defined
effects in views could crash.

This commit fixes that issue, and reworks a bit the feature by
introducing a registry of effects, which easily allows to add new
effects from the outside. An effect is a function that may return
a Component (and its props) to display.

Most of the diff in the tests is about moving files where they
should be (the effect feature being in core/, the tests must be
in core/ as well, and not depend on the webclient).

[1] 0573acae23

Task 2652927

closes odoo/odoo#77109

X-original-commit: 74dc3f654ee5849982b494e46eefb1fc2b4e0c74
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-09-23 20:18:47 +00:00
Alexandre Kühn cb69d7a93e [FIX] mail: enforce boolean value on computed fields of webRTC
closes odoo/odoo#77107

X-original-commit: ad9d6fd0f14a4d954940cf4cd5f4a2bcf91b81b5
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-09-23 20:18:43 +00:00
Alexandre Kühn 57bf42603c [FIX] mail: no crash on save volume settings by guests
X-original-commit: a91322154b607e40b4a007e743e9d9975aa1f256
Part-of: odoo/odoo#77107
2021-09-23 20:18:42 +00:00
Alexandre Kühn 527c4202d6 [FIX] mail: make keyframes naming more appropriately specific
X-original-commit: 07ec5766dd33fae2a128fa62e3ac5e6aec8ea4bc
Part-of: odoo/odoo#77107
2021-09-23 20:18:42 +00:00
Alexandre Kühn b6d9bea33a [FIX] mail: fix typos (likely to fix webRTC recovery every 30sec in case of failure)
X-original-commit: 60eccab558d7a40cb4a27c7042f62f547e581ee6
Part-of: odoo/odoo#77107
2021-09-23 20:18:42 +00:00
Alexandre Kühn 07053cbfaa [IMP] mail: rename "mailRtc" fields to "rtc"
X-original-commit: 8db877c99f3b3c405e7a51920a574edfeb7a18d5
Part-of: odoo/odoo#77107
2021-09-23 20:18:42 +00:00
Alexandre Kühn d5d93bdf05 [FIX] mail: remove webRTC component excessive getters
X-original-commit: 9bf4b6c29207b97368f27098df3cfbe79e2b5f0f
Part-of: odoo/odoo#77107
2021-09-23 20:18:41 +00:00
Alexandre Kühn 099bde0b75 [FIX] mail: make webRTC component classname follow BEM convention
X-original-commit: c8296c4ed6c3f0c95852bc5b3466f6fea34368a3
Part-of: odoo/odoo#77107
2021-09-23 20:18:41 +00:00
William Braeckman 88f18b1ce9 [FIX] hr_work_entry_contract: fix traceback
Fixes a traceback when generating work entries.
How to reproduce:
- Create a contract with a working schedule with 0 attendances
- Set the contract as running
- Make sure you have another contract for another employee running on
  the same period, this one must have attendances
- Go to the work entries views, this should generate working entries for
  the viewable dates
- If the work entries were already generated, go to a month where they
  are not generated yet, you should have the traceback

Task ID: 2654797

closes odoo/odoo#77085

X-original-commit: 13f7f8c4e066b0a2fadef95cdff4a24a4f67f95c
Signed-off-by: Kevin Baptiste <kba@odoo.com>
Signed-off-by: William Braeckman (wbr) <Williambraecky@users.noreply.github.com>
2021-09-23 19:04:45 +00:00
David Tran f167d47b48 [FIX] mail: remove emojis 3:
There was 3 keys for the same icon 😠 while one of them is usually used
in normal text. For example:

- Item 1:
- Item 2:
- Item 3:

The last one would convert to `- Item 😠`

This PR removes one of the above to keep the other two

closes odoo/odoo#77075

X-original-commit: 45e9636c2e0457d3bc4ea1d346ff71ed6824bbe1
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-23 17:27:53 +00:00
Mitul Shah 4de6618cdf [FIX] website_event: correctly display 'Event Sub-menu' customize menu
Right now, when we only have the website_event installed and ther are no
other regular(view based) customize menus available, we won't have a
divider div tag. And the current code tries to push our menu after
the first divider and thus fails due to no divider available.

With this commit, we simply check that if there's no existing divider
div, we simply add one and then push the menu after divider.

Task-2616588

closes odoo/odoo#77083

X-original-commit: 11a54d5fed9e21469363dabc4e973662418b9920
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-23 16:05:59 +00:00
William Henrotin 9b43d7ec5a [FIX] purchase_stock: relax constrains on orderpoint location
The check added in 643e093a4bc9d46973705831697036b56a89b143 was too
strict in case a purchase order was created from an orderpoint
triggering multiple rules. The orderpoint's location could be below
another warehouse that the first rule's location and thus raising the
error.

closes odoo/odoo#77079

X-original-commit: df1f90673fc06f3d535833229d8af3ef6a51dd61
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-09-23 16:05:55 +00:00
Raf Geens 60864de16b [FIX] hw_drivers: Block when getting network interface
get_ip and get_mac_address respectively try to get the IP and MAC from
the IoT box's active network interface. If the interface isn't fully up
yet (due to waiting on a slow DHCP server response for example), both
functions can end up raising a KeyError exception since neither
interface has a value.

This can be bad if it's uncaught and happens in something like the
Manager thread, potentially killing it as a result. This can then
disrupt the rest of the application. The network being gone for a bit or
slow is something that can happen during everyday use, so we should be
robust against it.

Since the box can't do any useful work without an active network
connection, this fix keeps retrying until one of the interfaces comes
back up.

opw-2357144

closes odoo/odoo#77052

X-original-commit: d0359858b17fb84c04c267bdf5cc1626569f5cce
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2021-09-23 14:24:58 +00:00
Hed Shefer dbdac91c4b [IMP] l10n_il: improve CoA, fiscal positions, and taxes.
Added Vat 0, vat self invoice and vat import line which needed in the israely market. Then, we have added the related fiscal positions.
In addition, we have modified the chart of accounts with the up to date accounts and orgenized them with the correct account groups.

closes odoo/odoo#77000

X-original-commit: 8b38350cea310930de226a879fdc1fd93de01adf
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-23 14:24:51 +00:00
Mathieu Duckerts-Antoine 99e77f708e [FIX] web: py.js evaluation of current_date
current_date was absent from py_builtin. For that reason, it was
impossible for the search model to evaluate a dynamic domains like
"[('date_deadline', '&lt;', current_date)]"

We add current_date to py_builtin.

closes odoo/odoo#77035

X-original-commit: ade082c5ad9221c82de90ddbe68b814b1487753d
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-09-23 11:26:10 +00:00
Mathieu Duckerts-Antoine 31c9bcaaca [FIX] web: py.js evaluation of to_utc
The class PyDateTime did not have a method to_utc. For that reason, it was
impossible for the search model to evaluate a dynamic domains like
"[('date', '&gt;=', (datetime.datetime.combine(context_today(), datetime.time(0,0,0)).to_utc()))]"

We implement that method.

X-original-commit: 3ad9a3be64da78d596ee3dc435d4b224728a9e76
Part-of: odoo/odoo#77035
2021-09-23 11:26:09 +00:00
Mathieu Duckerts-Antoine dfa90a7ffc [REF] web: patchDate function
In order to be able to easily patch Date in py_date_tests and elsewhere,
we refactor the code of the legacy and new patchDate functions.

X-original-commit: 0e697c82be80cae9cc993b4be179fec42b8dae83
Part-of: odoo/odoo#77035
2021-09-23 11:26:09 +00:00
William Henrotin b857478460 [FIX] mrp: confirm production order at the end
This commit removes the action_confirm from the run_manufacture to do it
only after all the orderpoints have been processed.

In case a production, created in run_manufacture, triggers procurements
for one of its component. And those procurements have the same
parameters than another one still not run because after the manufacture
one in the queue. This new procurement will replenish its quantity plus
the other procurement's one.

That means too much quantity will be replenished.

closes odoo/odoo#77026

X-original-commit: a7bb9f1ac392c00be5bdd133fc5c73b9803c8b4b
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-09-23 11:26:01 +00:00
Achraf (abz) fff6ffc5a1 [FIX] sale_stock: Don't compute UoM twice
The amount on generated COGS lines can have the UoM factor applied two times. For example, if we have a product costing 1$ per item and we sell it by pack of 12 ("Pack" UoM) we will have 1$*12*12=144$ instead of 1$*12=12$

0/ Go to a V14 runbot
1/ Create a company which use COGS (eg. Mexican accounting)
2/ Have a storable product priced at 1.5$ from a product category with Costing Method as "First In First Out (FIFO)" and Inventory Valuation as "Automated"
3/ Create a UoM 12 times bigger than the default Unit (eg. 12 Pack)
4/ Create a purchase order costing 50$ for 50 Unit of the product => cost of the product should be 1$
5/ Create a new purchase order for 50 Unit but costing 0$ (like if got free products from supplier)
6/ Create sale order for 50 units of the product, validate the transfert and create/confirm the invoice => computed COGS amount is 50$ on the invoice => ok
7/ Create a sale order using the "12 Pack" UoM, validate transfert and create/confirm invoice => computed COGS is 144$ => nok

opw-2503368

closes odoo/odoo#77007

X-original-commit: d0d9c0a8f8e35fbd9624d934a8ca6152677fbd3e
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2021-09-23 11:25:57 +00:00
dbkosky 516c414683 [FIX] account: typo, change active to activate
closes odoo/odoo#76904

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-09-23 11:25:53 +00:00
Louis Wicket (wil) 4e45ce9d06 [IMP] mail: automatically ask for media access when relevant
Ask for camera/microphone access when landing on the WelcomeView of a
channel created via the "Start a meeting" feature.

Part of task 2651831.

closes odoo/odoo#77011

X-original-commit: ef92577ae2ef602c279b47c5c0b1235334d5984c
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-09-23 10:00:16 +00:00
Samuel Degueldre 9efd9463eb [IMP] mail: allow creating channels on first visit from token
This commit allows anyone to create a new mail.channel by visiting the
URL /chat/<token>[/<channel_name>], providing that the
mail.chat_from_token system parameter is set. This is useful in some
situations where new channels need to be created quickly as needed by
anyone without special permissions (eg, during the Odoo experience)

task-2648580

closes odoo/odoo#77010

X-original-commit: 56ddc073213a148579dd72f4a9336bc4d6a11f22
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Samuel Degueldre <sdegueldre@users.noreply.github.com>
2021-09-23 10:00:11 +00:00
Benjamin Vray 8221664804 [FIX] website: fix main menu navbar disappearing
Before this commit, the "purple" main menu navbar disappeared before
the editor was loaded (after clicking on the "Edit" button).

task-2652381

closes odoo/odoo#76920

X-original-commit: 63aebbfb0749c59bd336e3431aed12a902d3bf13
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-23 10:00:03 +00:00
qsm-odoo 98afa97297 [FIX] website: properly handle "100% height" snippet when in popups
Before this commit, when a "100% height" snippet was set in a popup
snippet, it was still computed to take full-screen height minus the size
of the navbar.

Now, it will properly be full-height.

closes odoo/odoo#76913

X-original-commit: 008d776e2f35916c00e0c80daa51a0526de44a21
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-23 09:59:58 +00:00
Audric Onockx (auon) 700a50223e [FIX] calendar : Server error when mark a scheduled activity as done
Reproduce :

CRM.
Go to a task and schedule next activity.
Then mark this activity as done.
Write a feedback.
Result :

Server error traceback
Solution :

The written feedback is given as a kwarg to translate.
opw-2641747

closes odoo/odoo#76985

X-original-commit: 222bda82e034869590530fc634428dca596be198
Signed-off-by: Arnaud Joset <arj-odoo@users.noreply.github.com>
Signed-off-by: Audric Onockx <auon-odoo@users.noreply.github.com>
2021-09-23 08:36:57 +00:00
Didier (did) 2750c09548 [FIX] mail: show group chat in messaging menu
part of task-2634175

closes odoo/odoo#77014

X-original-commit: f37de5ce6fb0e9e7adf50b409c7a5416467396fd
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Phenix <phenix-factory@users.noreply.github.com>
2021-09-23 07:17:56 +00:00
Samuel Degueldre 5c78793a75 [FIX] hr_holidays: fix crash in mail_partner_format
We were trying to sort a list of date with potentially falsy elements in
the list, causing a crash while trying to compare a date object with a
bool. This commit just makes the check that all dates are not falsy
before attempting to sort.

closes odoo/odoo#77012

X-original-commit: 6bd2a86e37809b4d77aad4597e926e99f9d2b2ce
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Samuel Degueldre <sdegueldre@users.noreply.github.com>
2021-09-23 07:17:52 +00:00
Prakash Prajapati a61c2ec715 [FIX] web: prevent translation alert from flickering
Before this commit, the translation alert might briefly appear in
form views displayed in dialogs (on new records), just before the
dialog closes.

Task 2639227

closes odoo/odoo#77002

X-original-commit: c9aa20160cd8b1bc9c9bdcd34bb996b8dfefc291
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-09-23 07:17:47 +00:00
36988d0edc [IMP] *: use new dropdown in legacy too
This commit replaces the control panel dropdowns with the new <Dropdown/> component, in order to get consistent through the new/legacy views (because the current Odoo version is in a state where some views uses the new infrastructure and some others are still not converted - see odoo/odoo#73311).

The diff seems massive, but it is mostly due to tests adaptations.

closes odoo/odoo#77001

X-original-commit: d679cd0d8ba9a2420e81a42a698763e9be2327e1
Related: odoo/enterprise#21077
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2021-09-23 07:17:43 +00:00
Mathieu Duckerts-AntoineandAaron Bohy ee2ae9a75b [IMP] web: deploy ui and hotkey as legacy services
This commit deploys some of the new OWL infrastructure services to the
legacy OWL environment.

The deployed services are the UI and hotkey ones.

These are needed because they are the only prerequisites for the new <Dropdown/>
component to get instanciated with the legacy OWL environment.

As the new reporting views infrastructure has been merged (see odoo/odoo#73311),
the current Odoo version is in a state where some views uses the new
infrastructure and some others are still not converted.

So instanciating the new <Dropdown/> component in the legacy OWL env is
something we chose to do in order to get consistent within the control
panel dropdowns behaviors.

X-original-commit: 6f1ab1cd861549484f94a8d40a16ccf338d7dffe
Part-of: odoo/odoo#77001
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2021-09-23 07:17:43 +00:00
Thibault Libioulle 1455e34cd5 [FIX] project: remove default group by user
This commit removes the default group by User for the Tasks Analysis
report, which was active once one clicked on "Open Tasks" in the Project
Update Kanban view.

This commit also removes the default group by user in the graph view
(which is induced by the field in the graph arch, through graph view
init function).

Issue :
The graph view of report.project.task.user is not able to render the
project_id>user_id groupby since the number of rows to display is to
high.

After considering improvements client-side (e.g. drop last groupby
when there are too many datasets to render), we concluded that the case
of report.project.task.user is rather isolated. The real issue is that
this 'complex' two-level groupby is forced in the view itself, making
it unusable on larger databases (e.g. next.odoo.com).

On top of that, project_id and user_id are usually dependent dimensions
(users are usually working in the same few projects).

PR: #73299

task-2588087

closes odoo/odoo#77013

X-original-commit: 605b4e109afabaff0876ca92cecfce9a6c615977
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-09-23 06:03:06 +00:00
Kartik Chavda e1d18e7f55 [FIX] project_account, *: fix module category from project to services
Purpose of this commit to remove project category and move
project category's module to services categoty.

So, In this commit change project category modules category
to services category

closes odoo/odoo#77006

Taskid: 2645909
Closes: odoo#76555
X-original-commit: b2b8594a5eec531e778c1182a47d98b5ab013d0b
Related: odoo/enterprise#21080
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-09-22 20:39:13 +00:00
Bonis Modi cb0b0a006c [FIX] project: fix the project_id field invisible on sub-task form view
Purpose of this commit is to hide the project_id field on
form view of sub_task

Taskid: 2645909
Closes: odoo#76555
X-original-commit: 403fbccfffcebb77b4c8bfdfcc48c4e08efe1da3
Part-of: odoo/odoo#77006
2021-09-22 20:39:13 +00:00
Kartik Chavda 7b698934e1 [FIX] payment_mollie: fix the module sequence
Purpose of this commit to move payment_mollie module after
payment_buckaroo module.

So, In this commit add higher sequence number to payment_mollie
module then payment_buckaroo module's sequence number.

Taskid: 2645909
Closes: odoo#76555
X-original-commit: d0c7a4e39bd07da717f50af18713585391dadd76
Part-of: odoo/odoo#77006
2021-09-22 20:39:12 +00:00
Mitali Patel b55f81aa30 [FIX] project: fix seprators in Task analysis report's filter
Purpose of this commit is to add the separators before and
after the 'unassigned tasks' filter on Task analysis report.

Taskid: 2645909
Closes: odoo#76555
X-original-commit: 388b58cd86d3fdc71c1d5e27a471febae9bd8dd5
Part-of: odoo/odoo#77006
2021-09-22 20:39:12 +00:00
Habib (ayh) 45ee18ce5b [IMP] mail: enable inheritance in the next activity values computation
values for next activities are currently prepared inside the `mail_activity._action_done()` method which makes inheritance very difficult. This commit delegates the value computation to a sub-method and thereby improves the extensibility of the module.

required to support changes to enterprise documents odoo/enterprise#20769
Task-2627837

closes odoo/odoo#77004

X-original-commit: a26e6e954c5e6c773f37e9239138a7b94ded821f
Related: odoo/enterprise#21079
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-22 20:38:59 +00:00
Odoo's Mergebot ef6d967907 [FW][MERGE] mail: provide fixes for gateway, composer and partner merge
Merge fixes coming notably from community reporting.

Containing
    [FIX] mail: handle wrong Final-Recipient header in incoming emails
    [FIX] mail: handle parsing of void body in incoming emails
    [FIX] mail: fix ACLs issue with mail composer in new mode
    [FW][IMP] test_mail: test models with type do not mess with attachmen…
    [FIX] mail: prevent useless write when pinning a channel
    [IMP] base: merge activities of merged partners

See sub commits for more details

Task-2641572

closes odoo/odoo#77005

Forward-port-of: odoo/odoo#76506
Forward-port-of: odoo/odoo#76159
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-09-22 21:25:57 +02:00