Commit Graph
170215 Commits
Author SHA1 Message Date
Víctor Martínez 0b8010a4e6 [FIX] hr_expense: restrict account move domain for Expense Team Approver
There is a ir.model.access rule that allows `hr_expense_team_approver`
group members to read account moves and account move lines. Another
existing rule forces the domain to only read account move lines that
have an associated expense_id. This rule however is not repeated for
account moves, and thus an `hr_expense_team_approver` group user is able
to access unrelated Customer Invoices / Vendor Bills on the portal at
`/my`.

To fix this, this commit adds a rule to prevent the
hr_expense_team_approver from reading any move that does not have at
least one line with an associated expense_id.

TT48242

closes odoo/odoo#158323

X-original-commit: 869fb231deaa986e687749ba639123988ceebc66
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2024-03-21 23:02:54 +00:00
Dylan Kiss (dyki) 0c398c1142 [I18N] point_of_sale: make some terms translatable
In the Point of Sale app, some terms were not translatable by our
translators on Transifex. In this commit we make sure that the missing
terms are either made translatable or exported in the related .pot file.

closes odoo/odoo#156929

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2024-03-21 21:30:38 +00:00
Youssef Bashandy 0d169166ba [FIX] point_of_sale : printing expected shipping date on receipt
Steps to reproduce:
	1- Install Point of sale module
	2- Allow shipping later configuration
	3- Create a POS order with a shipping date

Current behavior before PR:
The expected shipping date was not printed in the pos receipt.
This was happening because it was getting called wrong in xml file
where it was called 'props.shippingDate'.
By checking the JS file we found that the props object structure
as follows https://github.com/odoo/odoo/blob/17.0/addons/point_of_sale/static/src/app/screens/receipt_screen/receipt/order_receipt.js#L16:L19

Desired behavior after PR is merged:
The expected shipping date is printed not if exists.
As we it is now getting called correctly 'props.data.shippingDate'

opw-3746053

closes odoo/odoo#155844

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2024-03-21 19:54:30 +00:00
Antoine (ande) 070761e31d [FIX] mail: wrong image in push notifications
Steps to reproduce:
1. Install hr_holidays
2. Connect as Admin
3. Go to the profile
4. Check Handle in Odoo in Notification
5. In a private browser, connect as Demo
6. Go to Time Off
7. Take a day off
8. A push notification for Admin pops-up
9. The profile picture is wrong

Cause of the issue:
author_id is linked to res.partner not res.users

Fix:
Backport of: https://github.com/odoo/odoo/commit/1244c9c02d6242d34a37aa27168229e9d3939cb4

opw-3684987

closes odoo/odoo#155107

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2024-03-21 19:54:30 +00:00
cmsi-odoo b6865e3ada [IMP] hr_holidays: make allocation duration editable
This commit introduces an improvement in the hr_holidays module by
making the duration field of leave allocations editable even after they
have been approved. This change addresses a limitation where previously,
allocations had to be refused and revalidated for any adjustments.

Task-3716272

closes odoo/odoo#154553

Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
2024-03-21 19:54:29 +00:00
Odoo's Mergebot 6777060461 [FIX] website_event, *: fine tune the design
Address several design and functional issues in prod. 

See sub commits, each of them addressing a different issue.

Task-3718417
part-of task-3698364

closes odoo/odoo#152434

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2024-03-21 19:54:28 +00:00
stefanorigano (SRI) af52d4a360 [FIX] website_event_exhibitor: container size
This commit sets the default container as `container-fluid` when 
`option_widescreen` is enabled. The goal is to ensure that, regardless
by the desired result, Bootstrap grid layouts behaves consistently
within the page.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:28 +00:00
stefanorigano (SRI) 2639b70cbe [FIX] website_event_booth: allow the user to drop snippets
This commit allows the user to drop snippets before and after the
booth's selection page content.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:28 +00:00
stefanorigano (SRI) 5490d1a291 [FIX] website_event: "introduction" page edition
This commit allows the user to remove the default "Introduction" title.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 878a635379 [FIX] website_event: fix nav dropdown menu design
Prior to this commit dropdown menus were badly affected by custom CSS
rules aiming to fine-tune the event submenu design.

This commit restricts the rule to the menu's direct descendant only.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 1049348d7d [FIX] website_event, website_event_*: adjust offcanvas size
This commit adjusts offcanvas size in order to make them less
"decontextualizing". 

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) b477768285 [FIX] website_event, website_event_*: fix readability
*: website_event_booth, website_event_exhibitor, website_event_meet,
   website_event_track, website_event_track_live

This commit adjust classes to address readability across text and
decorative elements taking in account eventual customization applied by
the user through the editor.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) ba7d1930bc [FIX] website_event_meet, website_event_track: badges issues
Address several design/ux issue related to badges.
In some cases badges are too small, in others the badge should be
clickable while in others should not.
In some circumstances informative components like small alerts should be
used instead.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 46420d25d1 [FIX] website_event_track: fix track page design
task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 7a4e389138 [FIX] website_event_track: talk proposal page "submit" button
Align the page's cta to the left and avoid misalignment with the
validation message box.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 4f387454b1 [FIX] website_event_track: talk proposal page edition
This commit simplifies the editing process of the "Talk Proposal" page
by applying `row` and `col` classes.
This enables users to adjust vertical spacing conveniently using the
editor.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 9e98d50e3c [FIX] website_event_booth: form layout
Address a minor layout issue on desktop devices.

Note: "Stable friendly" fix. The 'booth_category.description' field
output, for example, should be moved outside the `card-body` element.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) bba71b091e [FIX] website_event_track: increase textarea fields min. height
task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 6407c4c4da [FIX] website_event, *: enable clicking/tapping the entire collapse
*: website_event_exhibitor, website_event_meet, website_event_track

Previously, to expand a collapsed track, users needed to click the icon.
This commit introduces a CSS workaround that allows clicking or tapping
on the entire track header instead.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) c040a3784c [FIX] website_event: modal_ticket_registration overflow
This commit handle an issue causing the registration inner elements to
don't overflow as expected when multiple tickets are rendered on screen.

Note: This could probably be improved by review the overall modal layout
in order to make a different use of Bootstrap default classes.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 3ae39a1f2a [FIX] website_event: modal_ticket_registration adjustments
This commit addresses various minor responsiveness and design issues in
the "event registration modal." Additionally, it modifies the condition
for rendering prices range and to display it if more than two
tickets exist only.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) f2231d780d [FIX] website_event, website_event_*: headings adjustments
*: website_event_booth, website_event_exhibitor, website_event_meet,
   website_event_meet_quiz, website_event_track

This commit refines headings throughout the entire `website_event`
platform by optimizing font-size hierarchy, spacing, and white-space
management for improved consistency and readability.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 3fcdcb8c9f [FIX] website_event: allow lower-case sidebar titles
This commit addresses a scenario where users may prefer lowercase titles
over the default uppercase ones.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) c28062c37b [FIX] website_event: avoid truncating events' titles
task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 43b48ffcec [FIX] website_event, website_event_*: fix layout
*: website_event_booth, website_event_exhibitor, website_event_meet,
   website_event_track

This commits address several minor layout issues across the entire
`website_event` platform.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) d7fff1167f [FIX] website_event_track: fix offcanva's wrong html
Prior to this commit, the position of the `<li>` was not correct.
We had single `<li>` with multiples `<a>` inside, instead of multiples
`<li>` with a single `<a>`.

See relative commit[1] in another PR [2].

[1] https://github.com/odoo/odoo/commit/2d348d58cfa227fa84dc1581d80e81ec58e4cd23
[2] https://github.com/odoo/odoo/pull/145064

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) ccf0a12034 [FIX] website_event: remove "fold ticket details" editor option
This commit removes the "Fold Tickets Details" editor option that's
non-functional because the corresponding template no longer exists.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) a142acc397 [FIX] website_event: move modal buttons to left
Ensure consistency in the positioning of the website_event's modal
buttons to align with odoo's standards.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) 3962ef8486 [FIX] website_event: address misleading editor options
This commit enhances the user experience by rewording editor options to
ensure predictability. Specifically:

- The use of the `o_we_sublevel_1` class was misleading as these options
  are not tied to the main layout type.

- The term "Templates" was ambiguous, as the option actually renders
  event's template badges.

task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
stefanorigano (SRI) ad7ece2231 [FIX] website_event: o_wevent_sidebar_social, adjust design
task-3718417
part of task-3698364

Part-of: odoo/odoo#152434
2024-03-21 19:54:27 +00:00
Robin Lejeune (role) c4b990dbdf [FIX] website: fix traceback on refresh
Commit [1] made it possible to stay in the backend while refreshing the
page with F5 or CTRL+R when viewing a Website Preview. Pressing it too
fast when the page is still loading and the iframe isn't loaded yet
triggers a traceback.
This commit falls back to the default refresh in such cases.

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

task-3795143

closes odoo/odoo#158314

X-original-commit: c81dfa7dda95a8d63b4abba9ce67d7f3e48af935
Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-03-21 18:35:52 +00:00
Adnan Saiyed cccc9c47dc [FIX] web_editor: table cells not getting deselected
Current behaviour before commit:

After selecting cells in table, moving cursor through
arrowkeys doesn't deselect cells.

Desired behaviour after commit:

Now cells are getting deselected.

task-3718716

closes odoo/odoo#158265

X-original-commit: 0e8865e06b3cb7e8ee1a2c4983d06baef5b30933
Signed-off-by: Antoine Guenet (age) <age@odoo.com>
Signed-off-by: Adnan Saiyed (adsa) <adsa@odoo.com>
2024-03-21 18:35:50 +00:00
Wolfgang Taferner 801ce62150 [FIX] hr_holidays: correct unclear time off approval email flow
- Remove context which came from the calendar action to only show short name in activity message
- Replace date connector with - as a / does not help to better understand the data given

closes odoo/odoo#158220

X-original-commit: 125793980e10f0c7d186f5662e4abbb3de3e212a
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Wolfgang Taferner <w.taferner@wtioit.at>
2024-03-21 18:35:48 +00:00
lase@odoo.com 7fa4f71b63 [FIX] mrp: Generate MOs for BOM with product repetition
Steps to reproduce:

- Create 4 products: Final product (FP), Product 1,2,3 (P1,P2 and P3)
- Set routes to manifacture on each product
- For P1, P2, P3 add a 0:0 reordering rule.
- Add a BOM for P2 with 1 unit of P1 as components
- Add a BOM for P3 with 1 unit of P2 as components
- Add a BOM for FP with 1 unit of P3 and of P2 as components

The MO overview of a FP shoud look like this :

                     FP
                     /\
                    /  \
                   P3   P2
                   |    |
                   P2   P1
                   |
                   P1

- Create and confirm a manufacturing order for a FP

Current behavior:

As the quantity on hand is not sufficient to manufacture a FP,
manufacturing orders are automatically created for P3, P2 and P1.
However, the quantity on each of these MOs is of 1 unit.

Expected behavior:

Since 2 units of P2 and of P1 will be required to manufacture the FP the
quantity of their respective MOs should be at 2.

Cause of the issue:

Confirming the MO for FP will  call the trigger_scheduler() on its raw
stock move:
https://github.com/odoo/odoo/blob/79813f08e5a2f0188ac7d184d000486f25319503/addons/mrp/models/mrp_production.py#L1291
https://github.com/odoo/odoo/blob/f3ef40da0406bb0fd683dce3a08739e247fd6dfc/addons/stock/models/stock_orderpoint.py#L495
In this method, we compute the qty to order for the orderpoints of P2
and P3. Since these ones are positive, procurement will be run for both
of these leading to the creation of 2 new MO's via the manufacture
route. The post process of the scheduler is then run
https://github.com/odoo/odoo/blob/f3ef40da0406bb0fd683dce3a08739e247fd6dfc/addons/stock/models/stock_orderpoint.py#L550
An override of this method in mrp will then find the created MO and
confirm these,  triggering the above process once more but now for the
MO's of P3 and P2 rather than FP: we start by computing the qty to order
for the orderpoints of P2 and P1 to manufacture P3 and P2. However, to
compute this quantity, we look at the forecast of these quantities and
this is where the problem comes in:
https://github.com/odoo/odoo/blob/f3ef40da0406bb0fd683dce3a08739e247fd6dfc/addons/stock/models/stock_orderpoint.py#L284
With the orderpoint of P2:
- `virtual_available` is at a value of -1 since there is currently 2
   stock moves taking this product (one to manufacture FP and one to
   manufacture P3) and one stock move bringing one unit of this product
   (the one coming from the MO of P2 we are currently trying to confirm)
- `orderpoint._quantity_in_progress()` has a value of 1 due to the MO
   of P2 that we are currently confirming.
Adding these quantities to one an other, the forecasted qty of P2 is at
0. This is a mistake since the incoming stock move for P2 is counted
twice in the forecast qty: once in each term. As a result no new
procurement will be generated for P2 hence the issue.

FIX:

Since this `_quantity_in_progress()` seems to have been introduced to
improve purchase flows rather than to interact with manufacturing flows:
https://github.com/odoo/odoo/commit/943da6df0f1d39e8e10869b25c5ba8cc13a2aa54
We decided to ignore its contribution during our manufacturing flow for
the forecast qty to be correctly computed. This requires to ignore the
contribution of each mo triggering the scheduler and those that already
triggered the scheduler since the confirmation of the MO of FP.

Notes: The test sets a little more complex MO overview than the
above use case to be sure to catch corner cases situations.

opw-3689920

closes odoo/odoo#158217

X-original-commit: 4c0b9ef2ad75d3f831fce0abaa62a1d660ba5ca6
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2024-03-21 18:35:48 +00:00
Maruan Aguerdouh (magm) 2afcba1748 [FIX] purchase: tax inactives not shown on search
Issue: Currently if we have taxes for our Purchase no matter if we set
the tax to inactive or we archive it, we will have access to it on the
purchase_order_line.

Steps to reproduce:

- Install Purchase
- Create a new Tax and set it to inactive.
- Now create a new RfQ and in the lines add any product.
- Try to change the tax for this product.

Solution: since we need this weird behavior for the cases where the tax
was applied to a RfQ and afterwards this tax was archived for example,
we should implement the needed domain to the view so we cannot access
to apply it anymore after inactive but it will still be visible where it
was applied beforehand.

opw-3776871

closes odoo/odoo#158077

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2024-03-21 18:35:46 +00:00
Ethan Vincent 849edf60df [FIX] account_edi_ubl_cii: ensure key existence
**Current behavior:**
Creating a fixed tax with the edi formats ubl_bis3 and nlcius_1
then creating an invoice with this tax tied to a product will
cause a traceback when a user tries to confirm the invoice.

**Expected behavior:**
The invoice will post as any other might.

**Steps to reproduce:**
1. Create a NL company with l10n_nl_edi accounting

2. Create a tax with the following field values:
     *tax computation: fixed*
     *affect base of subsequent taxes: True*
     *base affected by previous taxes: True*

3. In the customer invoices journal for the created company,
     go to the 'Advanced Settings' notebook tab and enable the
     NLCIUS and Peppol options under 'Electronic Invoicing'

4. Create a new invoice with some product and attach the newly
     created tax to it, then try to confirm the invoice to see
     the traceback

**Cause of the issue:**
The edi format tags invoke different instances of the
get_invoice_line_allowance_vals_list() method. This method
returns a dict list where the dicts only sometimes contain the
key 'allowance_charge_reason_code'. A subsequent expression
expects this key in the dict which can cause a KeyError.

**Fix:**
Check instead for a 'charge_indicator' key, which is present in
both the ubl_bis3 and nlcius_1 val dicts, allowing the correct
total to be summed and reflected in the EDI document output.

opw-3680527

closes odoo/odoo#157495

X-original-commit: 06a3027ca9f421ccc0081e2c8a5ff538175ef334
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Vincent Ethan <etvi@odoo.com>
2024-03-21 18:35:46 +00:00
Levi Siuzdak (sile) 056e5b3c1c [FIX] hr_holidays: keep duration display updated
Versions
--------
- 16.0+

Steps
-----
1. Create a leave spanning multiple days;
2. create a public holiday that falls inside that leave;
3. check leave in list view & form view.

Issue
-----
The leave's duration no longer matches between the two views. In form
view, the duration was updated, in list view, it remained unchanged.

Cause
-----
There's nothing to trigger a recomputation of duration_display when
adding/removing leaves.

Solution
--------
The `number_of_days` field is kept up to date by the usage of
`add_to_compute` when modifying leaves. The same can be done for the
`duration_display` field.

opw-3642500

closes odoo/odoo#158296

X-original-commit: 1327b8014df79a488b1f7c1b909944ac8faff426
Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
Signed-off-by: Levi Siuzdak <sile@odoo.com>
2024-03-21 15:29:44 +00:00
Thomas Lefebvre (thle) 31cb1a5260 [FIX] project: remove partner_autocomplete assets
Issue:
------
The `partner_autocomplete` module is an automatically installed module.
This module is not included in the dependencies
and can therefore be uninstalled.

If `partner_autocomplete` is uninstalled and we go to a shared project
with a portal user for example, we get an internal server error,
as we don't have access to the `partner_autocomplete` files.

Solution:
---------
Remove the `partner_autocomplete` files from the manifest file
of the `project` module.

Note:
If the widget is not found (in the very rare case of uninstalling
the `partner_autocomplete` module), we will use the
default widget (and create a log).

opw-3774575

closes odoo/odoo#157965

X-original-commit: 65331aee3b7c74752aed23e136f08ff1fb5d282d
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
2024-03-21 13:10:29 +00:00
Benoit Socias 0db3290b7f [FIX] website: not fail when sharing page with an SEO title
Since [1] when the social share widget was introduced, a hashtag is
generated from the name of the website that is found inside the page
title.
This fails when the page title is replaced through the SEO feature.

This commit prevents the failure but not extracting the website name if
it is missing from the title.

Note that the `registry.socialShare` fixed here is only used by the
forum post page in the whole codebase. It is different from the social
snippet. The social snippet is doing the same code (kind of duplicate),
but it does not care about removing the | right part. It means that if
you drag & drop the "Share" snippet in a forum post page (like in the
footer) and click on it, it will work since it does not try to split on
the title's pipe.
In master, we will evaluate if we should remove this
`registry.socialShare` and use the `Share` snippet instead.

Steps to reproduce:
- Install website_forum.
- Go to a forum post.
- Set SEO title to a value without `|` (pipe).
- Share to X.

=> An error popup was shown.

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

opw-3799914

closes odoo/odoo#158478

X-original-commit: f89f4a8f1ad0ee3fb62ba246ea17988955dbdc4b
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-03-21 11:11:42 +00:00
Claire Bretton (clbr) 7d9051c1ce [FIX] l10n_ch: tax report box 200 computation fix
With this PR https://github.com/odoo/odoo/pull/129717 we fixed
multiple problems of the Swiss tax report but the 200 box is still
not correct.

Fix the computation of the box 200 of the Swiss tax report.
We remove 382 and 383 boxes that are for purchases and shouldn't be
included.
We add box 205 and 289 so that the box 200 somehow represent the "gross"
taxed amount, and 299 is therefore the "net" amount.

200 = 302 to 343 + 205 + 289

opw-3766215

closes odoo/odoo#158477

X-original-commit: b252f0fc87c5fa15d1abbe0686d4018085e5d8b8
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: Claire Bretton (clbr) <clbr@odoo.com>
2024-03-21 11:11:41 +00:00
Joris Makauskis de2eb24163 [FIX] crm_iap_enrich: remove background color of mail messages
Removed background color of crm enrich mail messages, so that they look
good on both light and dark mode

Related task: 3541419

closes odoo/odoo#158475

X-original-commit: 26c7b2408c248b9e81ee3c383c8cf076bbc9c552
Signed-off-by: Louis Baudoux (lba) <lba@odoo.com>
Signed-off-by: Joris Makauskis (jmak) <jmak@odoo.com>
2024-03-21 11:11:40 +00:00
Antoine (anso) 3a910816ed [FIX] website_(crm_partner_assign, customer): radio filters
Before this commit, radio buttons in the offcanvas filters (displayed
on mobile) were not working as they should: clicking on the label
worked fine but the click on the radio itself did not trigger anything.

We impeach input's `pointer-event` so, the `<a>` becomes main and only
interaction

This commit also fixes an contrast issue in the tag filter in the
offcanvas

task-3649662

closes odoo/odoo#158350

X-original-commit: f1808866aaddf82452536edfa46c6906368bd0cd
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Antoine Sougné (anso) <anso@odoo.com>
2024-03-21 11:11:37 +00:00
kcv-odoo 91b43f3999 [FIX] sale: display reversed badge for reversed invoice in portal
Steps:
- Install sales app.
- Create SO and add a product.
- Confirm that SO and create invoice and post it.
- Reverse that invoice via adding credit note.
- Go to portal view of that SO.

Issue:
- `Waiting Payment` badge is displaying instead of
`Paid` as invoice is reversed

Cause:
- Only to payment status added to display `Paid` badge.

Fix:
- Add `Reversed` bagde in portal and display reversed badge
when  payment_state is in reversed state.

opw-3677622

closes odoo/odoo#158418

X-original-commit: a4ae44c81f2a6ccb57844415012a8818a08daa2c
Signed-off-by: Kartik Chavda (kcv) <kcv@odoo.com>
2024-03-21 05:56:29 +00:00
duongnguyen-viindoo fc34baedfa [FIX] project: project update description should be collaborative
we forgot to enable the feature in the description of project.update
model.

closes odoo/odoo#158257

X-original-commit: fedb0c6f4f79e762602185dee86ce8a558000783
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2024-03-20 23:15:37 +00:00
Xavier Bol (xbo) 0b6e8e3b00 [FIX] hr_timesheet: get company of the employee without potential issue
Before this commit, when the current user did not have
`hr.group_hr_user` group and creates a timesheet for an employee in his
team, he could get a traceback before one field defined only
`hr.employee` model cannot be fetched in `hr.employee.public` by the
ORM. The reason is because when the user creates a timesheet in a task
without any company set, we will take the company of the employee set
on the timesheet to set it in the new timesheet, by doing that, the ORM
will prefetch the fields of `hr.employee` and returned the company from
its cache.

This commit makes sure we will not have any issue when we try to get the
company of the employee to set in the new timesheet if one field defined
in `hr.employee` is not defined in `hr.employee.public` and has to be
prefetched by the ORM.

Steps to reproduce (in 17+)
==================
0. install `hr_timesheet` and `pos_blackbox_be` modules.
1. create a user A with `hr_timesheet.group_hr_timesheet_approver`,
   without any access to Employee app
2. create a project and a task without any company set (default value)
3. log in as user A
4. go to the form view of task created in step 2
5. add a timesheet and save the form view

Expected Behavior
=================
The timesheet should be added in the task and the form view should be
saved without any issue.

Actual Behavior
===============
A traceback is occured saying "The fields 'insz_or_bis_number' you try
to read is not available on the public employee profile"

opw-3769277

closes odoo/odoo#158111

X-original-commit: 6022e9fc7b8d58d88994c89cee1471475da4f011
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2024-03-20 21:44:01 +00:00
Odoo's Mergebot ad79c34ba6 [FW][IMP] digest: milkify the digest email template
This PR contains a revamp of the digest email in the new "Milk" style replacing
the old purple with the new one. This has been adapted in all digest data too.

The images of the digest email's tips have been replaced by "milkified"
versions of them, already available on odoo cdn by the way.

Task-3338467

closes odoo/odoo#158351

Forward-port-of: odoo/odoo#157896
Forward-port-of: odoo/odoo#125432
Related: odoo/enterprise#58992
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2024-03-20 19:56:42 +00:00
Elisabeth Dickinson 60bc3d50f6 [IMP] *: milkify digest tips GIFs and PNGs
*: crm, digest, hr_expense, im_livechat, mrp, purchase, sale_management,
website

The images in the digest email are updated to have the look of the new
"Milk" Ui. We want to keep names unique, as they target different
versions. That way we can keep a v15 oriented gif for people using tips
in v15 for example.

The mobile phone image is hosted on odoo.com.

task-3338467

X-original-commit: odoo/odoo@3711d2b61b
Part-of: odoo/odoo#158351
2024-03-20 19:56:42 +00:00
Elisabeth Dickinson 42563aecea [IMP] digest, *: milkify the digest email template
A revamp of the digest email in the new "Milk" style.

task-3338467

X-original-commit: odoo/odoo@33c5a6c4ae
Part-of: odoo/odoo#158351
2024-03-20 19:56:42 +00:00
William Henrotin 8b3812eb38 [FIX] stock_account: reinforce search domain in test
The account move search was not enough specific to retreive only one
account move. The following `assert` sometimes failed because of this.

This commit reinforce to search to get only one account move

closes odoo/odoo#158327

Opw: runbot error 60338
X-original-commit: 78518f5dbf26680f678c6bbd950d60bb96eeedfe
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2024-03-20 19:56:41 +00:00
Raphael Collet 268d8b830e [FIX] base: don't check access rules on new records
This fixes an issue where access rules are checked on a new record: the
rule domains are evaluated with method filtered_domain(), and one rule
uses the operator 'child_of', which is implemented with a call to
search().  When used with a new record, filtered_domain() returns an
empty recordset instead of the record itself.

By design, the ORM doesn't check security on new records.  A base
automation of type 'onchange' will run some server action on a new
record.  The server action may still check access rights on the model,
but should not check access rules.

closes odoo/odoo#158309

Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
2024-03-20 19:56:40 +00:00