Commit Graph
165944 Commits
Author SHA1 Message Date
Louis Wicket (wil) 4adaeabc22 [I18N] fleet: replace “immatriculation” with “registration”
The word “immatriculation” doesn't exist in English.
This commit replaces its occurrences with “registration”.

closes odoo/odoo#137755

X-original-commit: 740979ef152f5cc89682004f9453a03e565bf6ec
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-10-09 13:25:38 +00:00
Joseph Caburnay 1569d59c9d [FIX] pos_self_order: correct fiscal position in self order
**Steps to reproduce:**

- Create a fiscal position that maps to a different tax.
- Use that fiscal position as alternative fiscal position for the "Eat in / Take
  away" setting.
- Create a "Take Away" order from the self-ordering app (kiosk or mobile).
- ISSUE: Send the order to the database (by "Pay at Cashier" or "Pay").
  - Check the order and it doesn't have correct fiscal position resulting to
    wrong amounts in the lines.

**FIX:** When creating the order, we make sure the correct fiscal position is
set. Also, we precompute `is_take_away` variable which is used in many places of
processing the order.

closes odoo/odoo#137669

Signed-off-by: Robin Heinz (rhe) <rhe@odoo.com>
2023-10-09 13:25:36 +00:00
Loukas Wets (lowe) abae176131 [FIX] point_of_sale: bad reference in search of paid orders ids domain
This commit fix the reference to an incorrect state of the pos order. It
should be "cancel" not "cancelled".

closes odoo/odoo#137620

X-original-commit: 0182fe024f01f2ef320ae4a290cd1a823f5353c0
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: Loukas Wets (lowe) <lowe@odoo.com>
2023-10-09 13:25:35 +00:00
Claire Bretton (clbr) 72d83abb93 [FIX] {l10n_}account_edi_ubl_cii{_tests},account_peppol: change label of checkbox and fix dependency
1. Rename checkbox "Peppol BIS Billing 3.0" to "BIS Billing 3.0" to avoid confusion
with the incoming one we will add with the full support of Peppol.
2. There was a buggy interaction between mail checkbox and BIS Billing checkbox in the Send & Print:
If the Peppol BIS Billing was checked, then uncheck/check the Email box, the Peppol BIS Billing
unchecks automatically. They should be independent.

Task-id:3525932

closes odoo/odoo#137382

Related: odoo/enterprise#48318
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2023-10-09 13:25:32 +00:00
Claire Bretton (clbr) 38fd690434 [IMP] account{_edi}{_ubl_cii},l10n_es_edi_facturae: Send and Print mass download
1. Add the "Download" option back into the Send & Print in list view
2. If the "Download" option is ticked, the Send & Print is run synchronously.
3. "Download" returns a zip containing all documents that are generated (or previously generated)
4. Remove completely "Download Electronic Invoice"
5. When downloading a single invoice that has multiple attachments (pdf, xml, ...)
we now download a zip with all files instead of only the pdf.

Task-id: 3525932
Part-of: odoo/odoo#137382
2023-10-09 13:25:32 +00:00
Didier (did) fa64a23f1c [FIX] mail: load gif category properly
Before this PR the showFavorite status was not properly updated after clicking
on "back".
This cause the categories to use the favorite route when scrolling instead of
the category route.

Task-3504566

closes odoo/odoo#136932

Signed-off-by: Didier Debondt (did) <did@odoo.com>
2023-10-09 13:25:29 +00:00
amdi-odoo 2ca91ca461 [IMP] mass_mailing_sms: improve test modal
Improve test modal:
- change the title
- change the dialog size
- shorten the wording
- rename action buttons

Task-3500568

closes odoo/odoo#136905

Signed-off-by: Jérémy Hennecart (jeh) <jeh@odoo.com>
2023-10-09 13:25:28 +00:00
moerradi 4ede16f157 [IMP] hr_expense: Filter Payment Methods by Company + UI/UX Improvements
- Applies a domain filter to limit payment methods to those of the
running company in multi-company settings.
- Some wording adjustments for better clarity.
- UI tweak: Directly open the expense detail view when only one expense
is linked to an expense report, bypassing list view for better usability

Task-3500674

closes odoo/odoo#136503

Signed-off-by: William André (wan) <wan@odoo.com>
2023-10-09 13:25:27 +00:00
shsa-odoo f5fe01a60f [FIX] web_editor: banner drag issue
Before this commit:

-Banner on drag and drop only drops content.
-Content inside banner were draggable.

After this commit:

-Now we can drop banner as well.
-Prevented content inside banner to be draggable.

task-3512199

closes odoo/odoo#136003

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-10-09 13:25:26 +00:00
Dhrumil Shah f840cd9778 [IMP] sale_project: hide button on SO
Before this commit when we confirm SO then create project button appears
In this commit we have made that if product is based on timesheets or
based on milestones then only create project button will appear when we confirm SO

task-3468706

closes odoo/odoo#133410

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-10-09 13:25:24 +00:00
Lucas Lefèvre 25eec6820b [IMP] spreadsheet: export views with contextual domain
Purpose
-------
Currently, views with a contextual filter/domain are not well managed: e.g.

Today Activities
=> domain=[('my_activity_date_deadline', '=', context_today().strftime('%Y-%m-%d'))]

My pipeline
=> domain=[('user_id', '=', uid)]

Currently, 'context_today().strftime('%Y-%m-%d')' or 'uid' would be replaced by
their values when the view is inserted into a spreadsheet.
If the view is inserted on the 1st June 2023, the date "01/06/2023" is
hard-coded in the spreadsheet.

Specification
-------------
Preserve the domain dynamic parts when inserted into a spreadsheet.

Implementation note: I force the readable format at export just to be sure it
exported that way, no matter the domain origin.

closes odoo/odoo#131874

Task: 3414027
Related: odoo/enterprise#45748
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2023-10-09 13:25:23 +00:00
zel-odoo 4434f489d6 [FIX] mail: typo in the mention list
closes odoo/odoo#137967

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-10-09 12:03:53 +00:00
mebe-odoo 6d5c6a6255 [FIX] l10n_sa_edi: add tax exemption codes for BT-121 for non-sa customers
Currently, when a customer is located outside of Saudi and a 0% tax is set in the invoice lines, we do not include any TaxExemptionReason or TaxExemptionReasonCode in the UBL file, even though it is required by ZATCA through rule BT-121. This commit aims to fix that. Now, as long as the Supplier (Company) is located in Saudi, we include both TaxExemptionReasonCode and TaxExemptionReason if the tax amount is set to 0%

closes odoo/odoo#137944

X-original-commit: 6711ad24f82a16fbe23a6fb6fed7bd93f682e816
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-10-09 12:03:52 +00:00
vishal padhiyar 3c89439a16 [FIX] web_editor: calling openMediaDialog on replace media
Before this commit:

In mass mailing, Selecting image and click on replace media you get picture
middle of the screen.

After this commit:

Now, clicking on replace would open media dialog and replace picture.

task-3506590

closes odoo/odoo#137920

X-original-commit: 7e0b8af005e818c9283b332fb140aeaeaf028275
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-10-09 10:48:49 +00:00
Odoo's Mergebot 13e3271b23 [MOV] test_mail: reorder tours / tests
Purpose is notably to regroup some tests into a single file (notably tours
in their matching unit tests file), rename some tests / tours, ... and
globally try to lessen test file split.

Reorganize tests, perform some renaming. Tests stay as they are to ease
comparison through versions. We notably extract formatting related tests
into their own class, allowing to keep their setup only for those tests.

Task-3535845 (TestMail: Reorder tests tours / files)
Prepares Task-3527752 (Mail: The Pre-Major Freeze FixImpLint)

closes odoo/odoo#137895

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-10-09 10:48:49 +00:00
Thibault Delavallée 708090cedd [IMP] test_mail: reorganize mail performance tests
Reorganize tests, perform some renaming. Tests stay as they are to ease
comparison through versions. We notably extract formatting related tests
into their own class, allowing to keep their setup only for those tests.

Task-3535845 (TestMail: Reorder tests tours / files)
Prepares Task-3527752 (Mail: The Pre-Major Freeze FixImpLint)

Part-of: odoo/odoo#137895
2023-10-09 10:48:49 +00:00
Thibault Delavallée 0c1f83a6a1 [MOV] (test_)mail: reorganize tests and tours
Purpose is notably to regroup some tests into a single file (notably tours
in their matching unit tests file), rename some tests / tours, ... and
globally try to lessen test file split.

Task-3535845 (TestMail: Reorder tests tours / files)
Prepares Task-3527752 (Mail: The Pre-Major Freeze FixImpLint)

Part-of: odoo/odoo#137895
2023-10-09 10:48:48 +00:00
Flotchet a7fcb0ccf7 [FIX] website_hr_recruitment: fix legacy _rpc
Behavior before this commit:
When you try to apply for a job on focusout of the mail field, you get
an error raised in website stating that this._rpc is not a function.

Explanation:
The task 3446696 (PR: 131308) has been merged in master
at almost the same time as the task 3439226 (PR: 136271)
that was removing the legacy rpc call (this._rpc({...})).

Behavior after this commit:
The rpc call is working again and so no error is raised.

Fix:
This commit fix it by using the current
rpc call.

closes odoo/odoo#137822

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-10-09 09:33:50 +00:00
Leonardo Pavan Rocha 8b7f1c892b [FIX] google_calendar: sync setting needs action status to accepted event
When an event is created by user A and user B is invited, user A automatically
accepts the event. If both users are using google sync and user B accepts the
invitation from the google interface, the status of the events are set to
needAction for user A. This occurs because the odoo values will always write
the time related fields, even when those did not change. This causes the
status to be changed to needAction because we assume the time of the event has
changed and user A needs to verify it. This commit fixes this by only setting
time values when they were really changed and by switching the logic that
triggers the reset of the status. As most times a default alarm is generated
by google, we should not treat it as condition for updating the time and,
therefore, potentially updating the status of the attendee.

task-3464054

closes odoo/odoo#137471

Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
Signed-off-by: Leonardo Pavan Rocha <lpr@odoo.com>
2023-10-09 09:33:48 +00:00
Thomas Lefebvre (thle) 7922b3502d [FIX] project_timesheet_holidays: update future holiday timesheets
Issue:
------
When we modify an employee's calendar, employee's timesheets
are not updated according to public holidays of the new calendar.

Solution:
---------
When we notice that we are modifying the `resource_calendar_id` field,
we delete all the future timesheets which are based on the public holidays
and then recreate them with the new calendar.

opw-3501170

closes odoo/odoo#137910

X-original-commit: c2754727eee8373fe99011658ae0b33dc692d25d
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
2023-10-09 07:00:09 +00:00
Pierre Rousseau bd0f2c6d79 [IMP] web: introduce MultiRecordSelector and RecordSelector
This commit introduces two new components, MultiRecordSelector and
RecordSelector, which are used to select multiple records and a single
record respectively.

The MultiRecordSelector component is used to display the selected
records with a tag-like style. It also allows to add new records by
typing/selecting a valut in the input field.

The RecordSelector component is used to display the selected record and
allows to select a new record by typing/selecting a value in the input
field.

These components are created from the DomainSelectorAutocomplete and
DomainSelectorSingleAutocomplete components, which are now an extension
of the MultiRecordSelector and RecordSelector components respectively.

This commit also add tests for these two components.

Part of task-id 3433922

closes odoo/odoo#137650

Related: odoo/enterprise#48423
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-10-09 07:00:06 +00:00
Pierre Rousseau 176d3be297 [IMP] web: add support for domain and context in DomainSelectorAutocomplete
This commit adds support for domain and context in DomainSelectorAutocomplete.
This is a step towards the simplification of the Record component.
We would like to remove the case where the Record component is used with
fake resModel/resId only to display a Many2ManyTags or a Many2One.
Instead, we could simply use the DomainSelectorAutocomplete or
DomainSelectorSingleAutocomplete to achieve the same result.

Part of task-id 3433922

Part-of: odoo/odoo#137650
2023-10-09 07:00:06 +00:00
Chrysanthe (chgo) 4739a841b5 [FIX] hr_skills: fix pseudo-element position
Prior to this commit, the pseudo-element in the employee resume tab was
not aligned on every media-query, making it invisible on large devices.

This commits ensure the visibility of the element no matter what device
you are using.

Task-3474635
Part of task-3326263

closes odoo/odoo#137928

X-original-commit: 036e6cdf1deb383c24967618f04070f97dd872e7
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Chrysanthe Gomrée (chgo) <chgo@odoo.com>
2023-10-09 05:55:58 +00:00
Mahamadasif Ansari 255eb5cd90 [FIX] maintenance: restrict deletion of teams related to equipment
Currently, an error occurs when the user follows the below steps and tries to
run cron "Maintenance: generate preventive maintenance requests"

Steps:
- Open maintenance > Configuration > Maintenence Teams
- Create new team e.g. "ABC"
- Go to Equipments and create new equipemnt
- Set 1 "Preventive Maintenance Frequency" from maintenance page
- Select "ABC" in Maintenance Team >> save it
- Delete  Maintenence Team "ABC"

This commit solves the above issue by restricting the deletion
of maintenance teams who are related to equipment.

sentry-4467657509

closes odoo/odoo#137943

X-original-commit: 9e4aa20c05999ccd9952480b8fea22b9fb651d74
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
Signed-off-by: ANSARI MAHAMADASIF (maan) <maan@odoo.com>
2023-10-09 04:03:56 +00:00
Guillaume (gdi) b3a1d0f9d0 [IMP] website, *: use BS mixin to have responsive font sizes
*: auth_totp_portal, event, portal_rating, web, web_tour, website_blog,
   website_event, website_event_booth, website_event_sale,
   website_event_track, website_event_track_quiz, website_payment,
   website_sale, website_sale_comparison, website_slides,
   website_twitter

This commit allows to have responsive font sizes on all the Odoo
frontend. It is based on the Bootstrap mixin `font-size` which
calculates the font size based on the viewport width.

task-1958098

closes odoo/odoo#129469

Related: odoo/design-themes#673
Related: odoo/enterprise#44578
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-08 22:12:13 +00:00
abd-msyukyu-odoo d464ba7c7e [IMP] web: add download error management util
As `download`, the `downloadFile` util is able to perform an `XMLHttpRequest`
(`GET`) if it is provided with only an url. Change the return value of
`downloadFile` in that case to a `Promise`, to match the behavior of `download`.
Previously, the `XMLHttpRequest` was returned to allow the caller to modify the
headers of the request, but that feature was not used.

Extract the configuration of the `XMLHttpRequest` for `download` to a separate
function so it can be used for both `download` and `downloadFile`. It will set
the `responseType, onload, onerror` properties.

Tracking:
- usage of `downloadFile` in Knowledge introduced in [1].

[1]: https://github.com/odoo/enterprise/pull/47056

task-3517796

closes odoo/odoo#137893

X-original-commit: 787f207f9882807598273c34296d0c1d8081f1b5
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>
2023-10-08 11:52:07 +00:00
Brieuc-brd 11df0a1187 [IMP] website_sale, *: adapt CTA style in product pages
*: website_sale_loyalty, website_sale_product_configurator

task-3097005

closes odoo/odoo#120302

Related: odoo/design-themes#687
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-08 10:45:45 +00:00
stefanorigano (SRI) 010c0470db [IMP] website_sale: hide the cart's badge if the product count is 0
task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
Brieuc-brd a4377bfa85 [IMP] website: set up new default images
This commit updates the demo images according to the new default
theme redesign.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
Brieuc-brd f57362c49b [IMP] website, *: adapt submit button size
*: website_mass_mailing

Since `btn-lg` should only be used for calls to action, this commit
reduces the submit buttons to the normal size to maintain consistency.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
Antoine (anso) 7ab82a644f [IMP] website: review s_text_cover's text column default size
task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
Antoine (anso) 808d1f2962 [IMP] website: review snippets primary buttons
Before this commit, snippets were using primary buttons too much. We are
now using more secondary buttons and links.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
stefanorigano (SRI) bf2416723a [IMP] web_editor: tweak lightness limit of increase-contrast
Increases the function's maximum lightness amount from 15% to 20%.
The new value is still arbitrary but provides better results with the
default color palette.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
stefanorigano (SRI) 219990ca6d [FIX] website: review "lead" paragraphs font-size
The "lead" font-size was not related to the base font size. It now is.
It is especially important since we will allow users to set up the
"lead" style on any text in another PR.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
stefanorigano (SRI) 43fee86c79 [IMP] web_editor: improve headings color for second color combination
This commit replaces the default cc2's headings color. The aim is to
avoid misunderstandings between clickable and not-clickable titles.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
Antoine (anso)andqsm-odoo 3cbdf754ff [IMP] website: redesign the s_banner snippet
task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: qsm-odoo <qsm@odoo.com>
2023-10-08 10:45:45 +00:00
stefanorigano (SRI)andBrieuc-brd 8175268a53 [IMP] website, *: set light background on every input
*: web_editor

This commit applies the light color on inputs to keep consistency with
the default theme redesign. That color is now customizable as it is
linked to o-color-3.

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: Brieuc-brd <brd@odoo.com>
2023-10-08 10:45:45 +00:00
Brieuc-brdandqsm-odoo 24a4cb1ce4 [IMP] web, website_sale: review active light buttons
Prior to this commit, toggle inputs using light color had no active
color.

This commit adds an active state in order to match the other active
colors.

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: qsm-odoo <qsm@odoo.com>
2023-10-08 10:45:45 +00:00
Brieuc-brdandqsm-odoo fbe38fb41d [FIX] website: solve some snippets color issues
Prior to this commit, some snippets used colors that were not changed or
were not visible (white text on white background) depending on the color
preset, which created color issues.

This commit adapts colors to make elements readable and maintain
consistency with the theme design.

Note: this could be partially backported (with stable adaptation) later.

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: qsm-odoo <qsm@odoo.com>
2023-10-08 10:45:45 +00:00
stefanorigano (SRI)andBrieuc-brd a2c496c4a4 [IMP] web, website: review pagination design
In the context of the website's theme redesign, this commit adapts the
pagination component design.

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: Brieuc-brd <brd@odoo.com>
2023-10-08 10:45:45 +00:00
0d96be06fa [IMP] website, *: improve the default theme
*: web, web_editor, portal, theme_default, website_sale

The goal of this commit is to improve the overall style of the default
website theme mostly by overriding Bootstrap variables with a bit of
customization for more advanced changes.

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: Brieuc-brd <brd@odoo.com>
Co-authored-by: Antoine (anso) <anso@odoo.com>
2023-10-08 10:45:45 +00:00
302231a7c1 [IMP] website: couple light and dark colors with theme colors
Before this commit, you had a very partial control over the light and
dark colors of Bootstrap: it was linked to the darkest and lightest gray
whose tint and saturation could be controlled (a bit) but not their
lightness. This was ok since light and dark were barely used in
components anyway. Later improvements (and future ones in this PR) will
keep using them more and more, especially in apps layout. We thus need
some more control over them.

This commits does this:

Currently, theme colors are divided into two groups:
o-color-1 o-color-3 o-color-2  +  o-color-4 o-color-5
Only o-color-1 and o-color-3 are saturated colors by default and are
linked to BS components (basically primary and secondary). The others
are not (barely ?) used outside of color combination classes.

Now there will still be two groups but:
o-color-1 o-color-2  +  o-color-3 o-color-4 o-color-5
1 and 2 are still supposed to be the main ones the users should use to
have the color of their company. The 3 others ones will be linked to
light and dark configurations: in color combination classes still but
also for light and dark bootstrap related configurations.

Note: users will still be able to do the same things as before and have
"more than 2 'company' colors": they can still customize their 5 color
combinations classes entirely. So for example, if someone changed
o-color-3 to a bright saturated color to have their second color
combination use that color as background, after upgrade many bootstrap
components will be impacted as it will be linked to the `$light`
bootstrap color. However, they can revert back o-color-3 to a nicer
color to be used as `$light` and force the second color combination
class' background to their old color. That way the visual of their
website will be the same. Some class will still be impacted though
(like o-bg-color-3 which could be added thanks to the secondary tab of
most colorpickers). This is a compromise as this was not "the right way"
to apply a background color anyway, except for icons and text highlights
(in which case users will need to go over their website to force their
old colors if needed) **.

**: Something could be done to help with that in a future commit (maybe
allowing to apply color combinations background on icons for examples).

Also both groups of colors will be named, helping users understand what
they are meant to be used for. Although anything is possible and no
restriction is made on how to pick those 5 colors. Actually, these new
improvements will allow to configure dark themes: just by switching dark
and light colors and/or making the light one a darker color.

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: "stefanorigano (SRI)" <sri@odoo.com>
Co-authored-by: Brieuc-brd <brd@odoo.com>
Co-authored-by: Antoine (anso) <anso@odoo.com>
2023-10-08 10:45:45 +00:00
stefanorigano (SRI)andBrieuc-brd fad514ebdc [IMP] website, *: handle border-color variations
*: website_sale

This commit aims to harmonize default border-color values and to provide
a predictable result when transitioning between color-presets.

We assign a CSS variable to bootstrap `$border-color` in order to let
bootstrap components (and utility classes) align with the chosen
color-preset.

The color itself is achieved by fading-out the current text-color using
CSS 'mix-color()' function.

Since, at the time of writing, the function itself has a global support
of 81% (mainly because of IE which we do not support but... see [1]), a
fallback has been conveniently provided.

Note: the right panel of the editor actually cannot understand the
result of the `mix-color` function either and will display a transparent
color instead. This will be fixed in a later PR.

[1]: https://caniuse.com/mdn-css_types_color_color-mix

task-3097005

Part-of: odoo/odoo#120302
Co-authored-by: Brieuc-brd <brd@odoo.com>
2023-10-08 10:45:45 +00:00
Antoine (anso) 59aada0f10 [IMP] website: update BS debug page
This commit completes the Bootstrap debug page with components and
properties that were not already showcased.

task-3097005

Part-of: odoo/odoo#120302
2023-10-08 10:45:45 +00:00
qsm-odoo 42c60a17e0 [FIX] hr_holidays: disable test_leave_access_no_company_* tests
Commit [1] made the tests test_leave_access_no_company_officer and
test_leave_access_no_company_manager fail systematically. Since it was
merged two weeks ago, I guess the tests depend on the date or something
like that.

In any case:
- Checkout the commit today, 7th October 2023
- Start the test => Breaks systematically
- Checkout the parent commit
- Start the test => Succeeds systematically

This commit disables the tests for now, so we can merge tasks this
week-end.

[1]: https://github.com/odoo/odoo/commit/6074d86b2076117978136259d70d043ef3dba1ee

closes odoo/odoo#137957

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-10-07 18:11:10 +00:00
Christophe Monniez 15b6cf888c [IMP] packaging: adapt packaging for current distros
As Odoo, now, needs at least python 3.10 have to build it against the
current distros.

closes odoo/odoo#136904

Related: odoo/documentation#5940
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-10-06 21:11:52 +00:00
Christophe Monniez 163fb3ae61 [IMP] core, requirements: bump minimal python version to 3.10
Now that the Debian 12 ("Bookworm") is out with Python 3.11 as the
default, it's time to update our requirements.

Reminder of the constraints for our requirements:

We try choose the smallest version from the Ubuntu/Debian corresponding
package (python3-...).

Also, if we find that one of the package was patched by the
Debian/Ubuntu maintainer, we choose the version from which the patch is
coming.

So, before this commit, the version were choose between Debian 11 and
Ubuntu 22.04. With this commit, we can simplify the requirements because
of a better matching between "Jammy" and "Bookworm".

About the choice of the python version:

* Ubuntu 22.04 ("Jammy") provides 3.10
* Debian 12 ("Bookworm") provides 3.11
* Some features that only exists in 3.9 will be needed in a near future
* 3.9 is a small release

Part-of: odoo/odoo#136904
2023-10-06 21:11:52 +00:00
Xavier ALT e61dd019e4 [FIX] website_hr_recruitment: fix typo in 'All Offices' dynamic url
Add missing '#' that prevent correct evaluation of the dynamic href
attribute.

To reproduce:
- To to /jobs
- Ensure 'Office Filter' page option is enabled
  (if not edit the page and enable it)
- Click the office dropdown and hover 'All Offices'

We ends ups with a URL like:
`/jobs?{'all_countries=1' if is_remote else current_country_path}`

closes odoo/odoo#137907

X-original-commit: 8f3277c32f750a04dbfcfb3dd817b15bf0720574
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Xavier Alt (xal) <xal@odoo.com>
2023-10-06 18:18:33 +00:00
Lucas Lefèvre (lul) ad5c1e7370 [REF] spreadsheet: rename button class
Commit odoo/o-spreadsheet@adcda84 renamed the button
class.

closes odoo/odoo#137902

Related: odoo/enterprise#48560
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2023-10-06 18:18:32 +00:00
tsm-odoo a97abef2d2 [IMP] im_livechat, mail: allow livechat visitors to upload attachments
Since [1], live chat visitors are using the mail guest system for
authentication. With this change, visitors are allowed to reach the
attachment upload routes (even if nothing allows it in the frontend
for now). This commit restricts attachment upload for guest and portal
users with the `allow_visitor_upload` field that can be toggled.

At the same time, this commit enables file upload when authorized
on the frontend and for cross origin live chats.

[1]: odoo#129770

task-3332628

closes odoo/odoo#137574

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-10-06 18:18:29 +00:00