Commit Graph
150134 Commits
Author SHA1 Message Date
std-odoo 9323cee2f2 [IMP] mail_plugin: improve error message when the email is not valid
Purpose
=======
Improve the error message when the email
of the contact / company is not valid.

Task-2601837

closes odoo/odoo#86080

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-04-27 11:06:14 +02:00
JF Aubert 24fa2495e5 [IMP] mrp_subcontracting: Mass Receipt
Adapt db775ffd308638a390be52eba3ca11c9c2d1602d to subcontracting flow,
to avoid performance issues when receiving a large amount of SNs

closes odoo/odoo#85603

Task: 2777451
Signed-off-by: Arnold Moyaux <arm@odoo.com>
2022-04-27 11:06:03 +02:00
Philippe Wauthy 9e14c112ee [IMP] hr_contract: add employee manager role
Currently, there are two security roles in Payroll: officer and administrator.
Both roles allow the user to have a full overview on all salaries of the company.

This commit adds an employee manager role allowing an employee manager to view
his reports' contracts.

task-2731933

closes odoo/odoo#83191

Related: odoo/enterprise#23669
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-04-27 11:05:59 +02:00
Xavier Morel 1e7051363d [REM] crm: ACL which hasn't been useful in a while
Only the group_salesman can see the opportunities statbuttons

Fix a few not-smart mass_mailing tests:

- running the mass mailing queue processes the messages as the user
  running the queue, and will try to send the demo messages, depending
  on demo data (when re-running the tests) the test user may not have
  the accesses required; sending just the one test email avoids that
  issue
- the leads kpi assumes the user has access to leads, that ain't
  necessarily the case

For the second issue, when sending statistics if the mailing has a
user `_prepare_statistics_email_values` should be called with that
user as "current" (cf `_action_send_statistics`), so we can just work
off of the current env, though it might be a good idea to eventually
check that.

closes odoo/odoo#89774

X-original-commit: 39af865800c6752b60171f16d6056ceb3c5a1636
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-04-27 10:04:37 +02:00
Touati Djamel (otd) 93c2348f0c [FIX] product: fix Dymo report label
Steps to reproduce the bug:
- Create a storable product:
    - Add a Barcode and an internal reference
- Click on Print Labels:
    - Select Dymo format
    - Add an Extra Content

Problem:
1:/ The extra content is not displayed because there is not enough space
2:/ The internal reference is displayed twice: in the display_name and in another line,
It's useless to display it twice, we should use name instead of display_name for the model `product_template`

opw-2791754

closes odoo/odoo#89771

X-original-commit: 3c4c27a266f954baa28bee3bf23cabc4928b99b8
Signed-off-by: Steve Van Essche <svs@odoo.com>
Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
2022-04-27 10:04:34 +02:00
Alexandre Kühn ae5f59775e [IMP] mail: introduce view models (step 1)
This commit introduces models that define records being 1:1 map with components,
as a step to move further to having essentially all business code in models.

Having code in models is desirable to have very maintainable code, thanks to
robust and declarative code with an ORM-like architecture.

Task-2831082

closes odoo/odoo#89735

Related: odoo/enterprise#26637
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-04-27 10:04:24 +02:00
tsm-odoo 96288beeb6 [IMP] mail, *: prepare mockServers for wowlEnv
*: calendar, hr_holidays, im_livechat, note, website_livechat.

This PR helps reducing the noise in the discuss new env PR. Indeed,
the new mockServer has the same method except that they are not prefixed
by any underscore. All calls have been changed, and the corresponding
methods created. They will be deleted later.

task-2582313

closes odoo/odoo#89659

Related: odoo/enterprise#26603
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-04-27 10:04:17 +02:00
tsm-odoo 2b2175e824 [IMP] mail, *: rename isMobile to isSmall
*: sms, snailmail.

In order to reduce the noise in the new discuss env PR, all the
messaging.device.isMobile occurences have been renamed to isSmall
in order to match the new env terminology.

task-2582313

closes odoo/odoo#89655

Related: odoo/enterprise#26597
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-04-27 10:04:07 +02:00
MAHAMADASIF ANSARI f00c443350 [IMP] base: update industry list
In the current version, some industries are named things like `Administrative`,
`Food`, and `Transportation`, and do not have the proper space and dash after
the first alphabet in full name.

This commit renames the above industries to `Administrative/Utilities`,
`Food/Hospitality`, and `Transportation/Logistics` respectively, and also adds
 space after comma and semicolon according to 'NACE' rules, and also adds a dash
 after the first alphabet in the full name.

task-2674365

closes odoo/odoo#88555

Related: odoo/upgrade#3442
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-04-27 10:03:57 +02:00
clesgow a179006c11 [FIX] stock: fix negative move merging process
When trying to absorb quantity from a negative move, the product_uom_qty
of the negative move is updated several times (n-1 times if n positives
moves are required to fully absorb the quantity).

All these updates trigger the write() method, which would then log a
message in the picking because the move quantity is updated. This is
valid for positive moves as their quantity is truly updated, but for the
negatives during merge it is a temporary state, before either being
fully absorbed or create a backorder.

Also, in the case of multiple negative moves processed in a single
_merge_moves() call, merged moves would get all move_dest_ids &
move_orig_ids instead of only the ones of the merged move.

closes odoo/odoo#88047

X-original-commit: cc03ec1dea2cf5d3aab9ccfe92fd3e09a4c16044
Signed-off-by: Arnold Moyaux <arm@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-04-27 10:03:51 +02:00
Josse Colpaert c5781ffa29 [FIX] account_edi: avoid accidental deactivation of the EDI cron on update
The problem is that when we update the account_edi, e.g. by updating the
base module, the cron gets deactivated because initially the ir.cron
record is set to active False and we activate it when we have an
edi format that requires web services.

By setting the record to noupdate, it will not execute setting it to
False again when updating the module.  (It will however not update
the record to noupdate)

closes odoo/odoo#89794

X-original-commit: 69ba48ea8cca151cb242118305dd8c152da266d1
Signed-off-by: William André (wan) <wan@odoo.com>
2022-04-27 09:00:44 +02:00
imanie383 096c207241 [FIX] website_sale: address edit error
The value of _checkout_form_save was validated because
 in some cases the method returns Forbidden()
 and this value is set directly to the order

closes odoo/odoo#89786

X-original-commit: 860370f5ed03e2fdc801ddbe02115818bb251655
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-04-27 09:00:39 +02:00
Guillaume (gdi) 73a6cbfa68 [FIX] website_hr_recruitment: test application form
This commit adds a test that verifies that the application forms work
correctly even after being edited. Ideally this test should have been
added with [1]. Since we want to make sure that the problem that [1]
solves does not happen again, it is really necessary to have this test.

Details:
The test verifies that the hidden data (the job_id) does not become a
default value after the edition of the form.

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

task-2715201

closes odoo/odoo#89680

X-original-commit: be5a501e12d900adabfd0e843f55eafcd2a0fa6e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-04-27 09:00:36 +02:00
tsm-odoo 653b030553 [MOV] mail: move advanceTime function
This PR prepares the ground for the new env in discuss. The addTimeControlToEnv
function has been move in its own file, it will not rely on env anymore.

task-2582313

closes odoo/odoo#89673

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-04-27 09:00:24 +02:00
tsm-odoo c484ff74fc [IMP] test_mail: adapt activity test to use startServer
This PR helps reducing the noise in the one adapting discuss
to use wowlEnv. Indeed, the start method will now only rely
on the createWebClient method. This means we'll need to adapt
those tests to use real models. To do so, we need to move
those tests in the test_mail module.

task-2582313

closes odoo/odoo#89666

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-04-27 09:00:21 +02:00
tsm-odoo e58ef79c74 [MOV] mail, test_mail: move activity tests into test_mail
Move the activity_tests to test_mail module in ordre to rely on
one of its test model.

task-2582313

Part-of: odoo/odoo#89666
2022-04-27 09:00:20 +02:00
qsm-odoo be2114de01 [FIX] website: restore video loading on page load
Commit [1] broke the building of iframes in existing databases.

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

opw-2832238

closes odoo/odoo#89778

X-original-commit: fd2aade90123af1bac02d8ab3fcca9741b0aaf33
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-04-27 07:52:29 +02:00
Patrick Hoste 5cd1179329 [IMP] portal: add informative button to internal notes on portal chatter
PURPOSE

Before this commit, when the chatter was displayed on a portal page (with
the customer preview button) one could see the internal notes with a button
for toggling his visibility... which was ineffective because a portal user
could never see internal notes and on the opposite internal users could
always see them. This commit adds another informative (disabled) button for
internal notes.

SPECIFICATION

Adds a 'is_message_subtype_note' param on the message in the
_portal_message_format method.

LINKS

Task-2817892

closes odoo/odoo#89775

X-original-commit: 705af2c24e99b8f24482722cb4795c141330b1c6
Signed-off-by: Hoste Patrick (pko) <pko@odoo.com>
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-04-27 07:52:25 +02:00
abderraouf e9f21c9583 [FIX] project : average rating is wrong in tasks analysis
Before this commit:
- Join between task and rating is made on parent_res_id
- Displayed value is the sum of tasks average_rating
- No Unit test to cover this case
- Measure displayed when customer rating setting is not active
- [Demo data] Each task is rated one time so average_rating and last_rating are the same

After this commit:
- Join is made on res_id which is the task_id
- Displayed value is the avg of tasks average_rating
- Unit test added to cover mesaures calculation
- Measure dusplayed only when setting active
- New demo record added to let average_rating be different from last_rating

closes odoo/odoo#89764

X-original-commit: 3a5d816ef26a164fc38965154e38b45e33f9a81e
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
Signed-off-by: Xavier <xbo@odoo.com>
2022-04-27 07:52:21 +02:00
Aurélien Warnon d7c6a5a3ca [IMP] [im|website]_livechat: make operators avatars publicly available
This commit improves the livechat to always allow website visitors to be able
to see the operator avatar, regardless of ACLs.

Indeed, we currently depend on ACLs and when website is installed, the
visibility of the operator avatar depends on his website_published status.
Which does not make much sense as it requires extra configuration to make it
work.

Instead, we now consider that all livechat operators and all chatbot operators
have their avatar publicly available, using a custom livechat route.

Task-2813529

closes odoo/odoo#89756

X-original-commit: 127bf62a5d701f8d2f1d4b246f55cc8ca8630dcf
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-04-27 07:52:18 +02:00
Patrick Hoste 6787adae29 [FW][FIX] (website_)event_booth_sale: correctly display tax included price
PURPOSE

Display the correct price when the tax included option is set in
the website settings.

LINKS

Task-2657480

closes odoo/odoo#89744

Closes: odoo/odoo#89618
X-original-commit: bf5fc98333beae99b94f0b55f0780d6fd18889cb
Forward-port-of: #89277
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
Signed-off-by: Hoste Patrick (pko) <pko@odoo.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-04-27 07:52:14 +02:00
Patrick Hoste ddcdcaba75 [FW][FIX] (website_)event_booth_sale: add tests and test tour
PURPOSE

Forward-port changed since this has been fixed properly in v15.0+
This commit adds the tests only and doesn't contain the fix as previously

LINKS

Task-2657480

Closes: odoo/odoo#89618
X-original-commit: 02932cb2e6ae43c414f222f27080ee7d265c5b39
Forward-port-of: #89277
Part-of: odoo/odoo#89744
2022-04-27 07:52:14 +02:00
Laurent Desausoi (lade) c8eb6615d4 [FIX] portal: allow portal user to change their contact details
A Portal User (PU) cannot edit his contact details once they are logged
in.

Step to reproduce the issue:
- Go to the Contact module
- Create a new contact (as an individual) and link him with a company
- From the newly created contact, click on Action > Grant Portal Access
- Retrieve the registration link of the newly created user by going to
  Settings > Users & Companies > Users. You will find the new user when
  removing the default Internal Users filter.
- From the Portal main page, go to the contact details and update some
  field (e.g. the phone number).
  Upon submission, you will get an error related to the edition of the
  company_name while no change was done.

Solution: In a previous commit [1], a change was done on the
`company_name` input. This modification changed the JSON that was sent
upon form submission.
Indeed, previously the `company_name` field was not sent (thanks to a
<p>) but now this field is sent, causing an error.
To mimic the <p> behavior and keeping the idea of the first change, the
attribute "disabled" was used in the input, allowing to not send this
field upon form submission.

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

opw-2754584

closes odoo/odoo#89740

X-original-commit: d3912aad67e5a519df3b355e962ce9d2e7894133
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Desausoi Laurent (lade) <lade@odoo.com>
2022-04-27 07:52:09 +02:00
Habib (ayh) 948ce9a1f5 [FIX] core, base_address_extended: manage special characters in street_split
A traceback is caused when migrating/upgrading certain databases. It seems to be caused by special characters in the `street` field.
When there are `newline` characters the regex match function returns None.
This fix improves the REGEX with DOTALL mode (view newline characters with `.` expression) and also checks if the Regular Expression match function succeeds OR provides a fallback otherwise.

Add tests to base_address_extended - tests for `street_split` are enhanced to include problem case

closes odoo/odoo#89727

X-original-commit: 6f72b8f8c2a0080a67c62b40aa4f6d8f3427b16c
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Ayob Habib (ayh) <ayh@odoo.com>
2022-04-27 07:52:06 +02:00
Jairo Llopis abb1a69ad4 [FIX] mail: Properly set socket timeout
The connection socket is initialized before actually creating the connection object. This means that setting the socket timeout after connecting to server could still lead to an endless connection if a timeout is produced while connecting.

To fix this problem, I opened https://bugs.python.org/issue38615 (which explains the problem in `imaplib` itself) and I publish here the workaround.

`poplib` supports setting the timeout before initializing the connection, so it's used instead of the workaround.

@Tecnativa TT20364

closes odoo/odoo#89717

X-original-commit: e0d7dffe167b642f14fdc207ebd80fafb1d82e3d
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-04-27 07:52:02 +02:00
Laurent Desausoi (lade) 67aa501a0d [FIX] sale: Missing numbers on SO reports
When inputting long numbers in a SO report, some numbers are cutoff.

Step to reproduce the issue:
1) Set paper format to A4
2) Make a SO for at least 100,000,000.00 with TVA
3) Print
The total print cut off on the edge, does not happen on invoices.

Solution: The div was not spanning on enough columns resulting on a overflow.
The solution is similar to what was done on invoices, just increase the col-X.
The same change was done on the portal as the issue would be similar.

opw-2817634

closes odoo/odoo#89705

X-original-commit: 48bea617dbf2ee6352a39a1735ff05d0d08f3bb4
Signed-off-by: Desausoi Laurent (lade) <lade@odoo.com>
2022-04-27 07:51:58 +02:00
Jérémy Hennecart (jeh) f2efa28e66 [FIX] website_slides: avoid useless "List" placeholders in website editor mode
Ensure that we don't have empty `<li>` tags which create a "List" placeholders
when the website editor is enabled on the course side menu.

Indeed, the website editor adds a placeholder and the class "oe-hint" when the
content of specific blocks is void (li, h1, h2, ...).

(See the OdooEditor.js file and the _handleCommandHint() and _makeHint()
methods for more information)

Task-2813583

closes odoo/odoo#89694

X-original-commit: d4a54fc6534788bc5276f5ea01ae5c05b527a3a7
Signed-off-by: Hennecart Jérémy (jeh) <jeh@odoo.com>
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-04-27 07:51:54 +02:00
William Braeckman ad48cd1de8 [FIX] sale_loyalty: fix pricing on free products
Previously free products from loyalty programs were given as the product
with a price_unit of 0, it will now have the complete price but with a
100% discount instead.

closes odoo/odoo#89691

X-original-commit: 39202e71b0df2f5f6d8bfec54e21b4ae4d899b7f
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-04-27 07:51:51 +02:00
Antoine Guenet e9237ae800 [FIX] mass_mailing: add background image options for masonry
The masonry snippet was recently imported from website into mass_mailing
but its background image options were omitted, making it impossible to
changes these images.

task-2824014

closes odoo/odoo#89690

X-original-commit: a226c26255dfabff2ac10ca3ec9b56d01feb0d7e
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-04-27 07:51:47 +02:00
Rahul Prajapati 588cffa967 [IMP] im_livechat, mail: replace _.str.sprintf to web sprintf
Before this commit:

_.str.sprintf was being used

After this commit:

replaced _.str.sprintf with sprintf

Task-2810721

closes odoo/odoo#89217

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-04-27 07:51:43 +02:00
Victor Feyens f6f4ed7bc9 [FIX] survey: using a f-string without interpolated variables (W1309)
closes odoo/odoo#86332

Related: odoo/enterprise#25232
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-04-27 07:51:25 +02:00
Victor Feyens d6d3493c13 [FIX] crm_iap_enrich: Duplicate key 'version' in dictionary (W0109)
Part-of: odoo/odoo#86332
2022-04-27 07:51:24 +02:00
Victor Feyens 7828fab39c [REM] core: unused import
Part-of: odoo/odoo#86332
2022-04-27 07:51:24 +02:00
Victor Feyens 6fea44277e [FIX] portal: Bad except clauses order (E0701)
UserError is an ancestor class of AccessDenied

Part-of: odoo/odoo#86332
2022-04-27 07:51:24 +02:00
Victor Feyens 835f07c7d4 [FIX] mass_mailing(_*): Using an f-string that does not have any interpolated variables (W1309)
Part-of: odoo/odoo#86332
2022-04-27 07:51:24 +02:00
Victor Feyens 862ad88bc4 [FIX] test_inherit: Bad first argument given to super() (E1003)
Part-of: odoo/odoo#86332
2022-04-27 07:51:23 +02:00
Victor Feyens 24f9af3fd0 [IMP] *: remove Trailing newlines (C0305)
Part-of: odoo/odoo#86332
2022-04-27 07:51:23 +02:00
Victor Feyens 3a43ba3ee0 [FIX] core: Method should have "self" as first argument (E0213)
Part-of: odoo/odoo#86332
2022-04-27 07:51:23 +02:00
Victor Feyens 7d422a2cd4 [FIX] *: unnecessary semicolon (W0301)
+ empty spaces removal
+ added space after comma (C0326 - bad-whitespace)

Part-of: odoo/odoo#86332
2022-04-27 07:51:23 +02:00
Victor Feyens dcc71b984e [FIX] test_converter: unused format argument (W1304)
Part-of: odoo/odoo#86332
2022-04-27 07:51:22 +02:00
Victor Feyens eaa091e540 [FIX] *: cls as first arg of class methods (C0202)
Part-of: odoo/odoo#86332
2022-04-27 07:51:22 +02:00
Victor Feyens 43ddbec741 [FIX] core: Too many arguments for logging format string (E1205)
Part-of: odoo/odoo#86332
2022-04-27 07:51:22 +02:00
Victor Feyens 55c8bcba68 [FIX] account_edi: Too many arguments for logging format string (E1205)
Part-of: odoo/odoo#86332
2022-04-27 07:51:22 +02:00
Laurent Desausoi (lade) 37bff17181 [FIX] website_sale: Ribbon Tree View by Default
When clicking on "Search More" on the Ribbon field on a Product,
we find a list of all the ribbons but only their ID are displayed.

Step to reproduce the issue:
1. Activate developer mode
2. Create enough Ribbons to have the "Search" option displayed (10 should do the trick)
3. Click on the "Search More", the list of all ribbons appears but we only see their IDs

Solution: There were no tree_view for the product.ribbon model. The default view was
thus rendered (default view with only the ID present). Jumped on the occasion to disable
the "Quick Create" button of the Ribbon as we cannot directly create a Ribbon from a bare field,
we need a form. Indeed, the `html_class` and `html` fields are both required.

opw-2820247

closes odoo/odoo#89686

X-original-commit: c0746a4fe21406ac5bd3441e25fd6383ebb7ad3f
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Desausoi Laurent (lade) <lade@odoo.com>
2022-04-26 14:28:59 +02:00
Rohitkumar (roku) b2eed699f1 [FIX] project_timesheet_holidays: don't show private task in timesheet task
Before this commit, in time off form view, task field contains the private task.

So this commit fixes the issue by not displaying the private task in task field
of time off form view.

task-2733415

closes odoo/odoo#89674

X-original-commit: 76fcd0cfe5fc157f22825544e239f283831b49fd
Related: odoo/enterprise#26611
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-04-26 14:28:55 +02:00
pedrambiria f43995eab8 [FIX] google_calendar: Prevent resyncing of synced recurrence events
Before this commit: When you sync the Odoo calendar with Google for the
first time, it will resync all of the created recurrence events with
Google after fetching all of the Google events. The problem is that it
chooses the 'accepted' state by default for the current user's state.
If you were invited to events and you hadn't accepted that, it would
update your status and send an email per event for all attendees.

Steps to reproduce the issue:
 1. Create two new google accounts ( you'll bombard with emails)
 2. Create a recurrent event without ending with the first account and
choose the second account as a guest.(don't accept)
 3. Sync second account with Odoo
  => It'll send about 700 emails

The solution is to prevent synced recurrence events from syncing and.

opw-2691146

closes odoo/odoo#89633

X-original-commit: 084aeb239e85a4e3abb3e233af68c6838dfbb3d7
Signed-off-by: Arnaud Joset <arj@odoo.com>
2022-04-26 14:28:49 +02:00
Adesh Jolhe (adjo) 92de5d9502 [IMP] project: fix the rating visibility on kanban,list,form views
Before this commit, the rating feature is visible in some
`project.task` views even if the customer rating field is
disabled on the project related.

Unexpected behavior when the feature is disabled on the project:

  - the rating column field is visible in project.task list view
  - the rating icon is visible in project.task kanban and form view

This commit fixes the rating icon and rating field visibility by adding
a condition to check if the feature is enabled on the project.

task-2762166

closes odoo/odoo#86103

Related: odoo/enterprise#25129
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-04-26 13:25:06 +02:00
Audric Onockx (auon) c3c5c5ae72 [FIX] sale_project : set project's aa on sol
Steps :
Create a Project (P) :
	> Analytic Account : AA
Create a Product (A) :
	> Product Type : Service
	> Create on Order : Task
	> Project : P
Create a Product (B) :
	> Product Type : Consumable
Create and confirm a Quotation :
	> SOL > Product : A
Go to the Task consequently created.
Add B to the products.
Go back to the Quotation and create invoice.

Issue :
See Invoice Lines:
	> INVL(A)'s analytic account is AA.
	> INVL(B)'s is not set.

Cause :
To set the aa on the SOL, we use
SOL.task_id._get_task_analytic_account_id(),
which returns the task's aa or its project's.
Yet we do that only if the task has an aa.

Fix :
Call the method. If it returns something, set it on SOL.

opw-2817811

closes odoo/odoo#89660

X-original-commit: 9e7bf074c346c35325e14e14422f2d860d0db74e
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
Signed-off-by: Xavier <xbo@odoo.com>
2022-04-26 12:22:08 +02:00
Brieuc-brd 1d21c78946 [FIX] mail: Message, MessageActionList in front of Composer
Prior this commit, the MessageActionList was behind and partly hidden by
the Composer when we edit small messages.

After this commit, the MessageActionList is in front of the Composer.

task-2819763

closes odoo/odoo#89610

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

task-2819763

closes odoo/odoo#88535

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-04-26 12:21:56 +02:00