Commit Graph
161400 Commits
Author SHA1 Message Date
Martin Maes d4de362b93 [FIX] mrp: merge component line in BoM overview
This commit merges BoM overview's lines if they are about a same component.

Before this commit, if the BoM divided it's same components to use them
in different steps, the overview would separate them as well, which is wrong.

Task-3184663

X-original-commit: 37ac2e603f332dee1c4c18a105f070cb4ae9eda6
Part-of: odoo/odoo#121783
2023-05-23 16:31:52 +02:00
Martin Maes bf5ed6d9e8 [IMP] mrp: BoM overview search
Added the possibility to search among variants in the BoM Overview view

Task-3184663

X-original-commit: 1c636b5119a40fc9e92174027495b63fa1cafa31
Part-of: odoo/odoo#121783
2023-05-23 16:31:52 +02:00
Martin Maes 928ccc243c [FIX] mrp: Bom typo
Changed Overview to BoM overview

Task-3184663

X-original-commit: bb1598b6df53f9184fac8ff831cc0ba201d0812c
Part-of: odoo/odoo#121783
2023-05-23 16:31:51 +02:00
Martin Maes 2ceca3737a [IMP] mrp: print BoM css
Minor visual improvement for the BoM Overview printing document

Task-3184663

X-original-commit: 9e01083e605a0b91558e2b3c525bfbdae06ca91c
Part-of: odoo/odoo#121783
2023-05-23 16:31:51 +02:00
Martin Maes d2058c39c2 [FIX] mrp: BoM overview context
To reproduce this bug, you need to create a RFQ, add a product with
variants and click on the button to view the quantity forecast.
Then, click on Manufacturing forecast. The BoM overview does not
have the correct variant selected in the Select.

To fix this, simply added an active_product_id to the context, used it
to get the correct BoM data ans then display it in the select.

Task-3184663

X-original-commit: a4ab49d5e41debfe6b2d46840dfffe1008f0f1ec
Part-of: odoo/odoo#121783
2023-05-23 16:31:51 +02:00
Khalid 15f52bfb0d [REF] point_of_sale: Add partners domain filter
This commit adds a new function to the module.

Currently, there is no way for managers or administrators to customize the list of customers per PoS UI.

This function can be used as a hook and can be inherited to add a domain to filter partners while loading a PoS session.

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

closes odoo/odoo#121782

X-original-commit: d509dff216c2f84af6fc6aefc47cd94336e6dc19
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-05-23 16:31:42 +02:00
niyasraphy 57ba616e1b [IMP] l10n_ae: redirect to own documentation
before this commit, the website link given to
l10_ae module was generic link of fiscal
localization.

after this commit, on clicking website/learn more
user will be redirected to documentation of uae
localization.

closes odoo/odoo#121340

Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-05-23 16:31:39 +02:00
David Monnom (moda) d9f6a5d209 [IMP] point_of_sale,pos_restaurant: improve offline popup
Before when the point_of_sale was offline, popups were opened at each
RPC error. This was inconvenient for the user as the pos must be usable
offline.

Now, the error popup has been replaced by an alert popup explaining that
the point of sale works in limited version as long as it is offline.
The warning noise has also been removed.

closes odoo/odoo#120826

Related: odoo/enterprise#41323
Signed-off-by: Guilliams Adrien (adgu) <adgu@odoo.com>
2023-05-23 16:31:36 +02:00
Valeriya(vchu) b17ca2536a [IMP] sale: remove line decoration for orders
the color of the lines for quotation(sent) is too noisy and not informative as there is a colored status badge. 
Remove the decoration to clear the view and decorate total amount where invoice_status = 'to invoice'.

task-3290317

closes odoo/odoo#119986

Related: odoo/enterprise#40594
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-05-23 16:31:27 +02:00
David Monnom (moda) b22e770fd0 [IMP] point_of_sale, pos_*: misc ux improvement
- Modification of the search button on mobile to keep a fixed position.
- Modification of the splitbill system, after the validation of a part
ofthe order, a continue button is displayed in order to finish the
payment of the rest of it.
- The INPUT popup can now be validated by pressing the "enter" key.
- Debug widget is now hidden by default. And a button is added in the
burger menu to toggle its visibility.
- When adding a product with optional products the info popup is no
longer opened automatically but if the orderline is selected in the
order the info button will be highlighted.

closes odoo/odoo#119919

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-05-23 16:31:24 +02:00
Antoine Guenet 8ca115b3b9 [ADD] web_editor: full screen image preview on dblclick (html field)
When double-clicking on an image in an html field, display it "full
screen" (similar to clicking on an image in the attachments list). This
replaces the current behavior (which is to open the media selector to
replace the current image - the Replace action remains available in the
toolbar).

In the toolbar for images, display an icon that users can click on to
open the full screen preview as well.

task-3109331

closes odoo/odoo#119625

Related: odoo/enterprise#40450
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-05-23 16:31:21 +02:00
Antoine Guenet 995bf2d883 [REF] web, mail: rename attachment_viewer to file_viewer
Since the attachement viewer was moved to core, this renames it to file
viewer to decouple it from the Attachment model/concept from the mail
module.

Part-of: odoo/odoo#119625
2023-05-23 16:31:21 +02:00
Antoine Guenet 8aec394f71 [MOV] mail, mrp, mail, web: move attachment_viewer from mail to web
The `mail` module's `attachment_viewer` is useful for more than `mail`
alone. In order to be able to use it in the `web_editor` module (which
doesn't depend on `mail`), we move it to the `web` module.

task-3109331

Part-of: odoo/odoo#119625
2023-05-23 16:31:21 +02:00
Christophe Monniez ebd31deee5 [FIX] web: avoid calling terminate_browser
As the ChromeBrowser API was simplified in 2b0d9fa6a9, the
terminate_browser method was removed but the shiny author forgot to
remove the call in the click_everywhere test.

closes odoo/odoo#122038

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2023-05-23 14:52:16 +02:00
Maximilien (malb) 72c8a06f88 [FIX] base: missing form view
Before this PR when a demo data error occurred (and the errors is too big). You could click on the error and a form view appeared. But if the error was too big, the text for module_id and wizard_id were impacted and were way too small to be readable (like a missing colspan). By adding a form view form this specific model it seems to solve the issues.

closes odoo/odoo#122031

Task-id: 3252698
X-original-commit: a7a6887a01491a42c610ee5019cb6d5feba25f7f
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
2023-05-23 14:52:14 +02:00
Julien Van Roy c98d531e4c [FIX] account_edi_ubl_cii: invoice lines could have multiple fixed taxes
An UBL Bis 3 xml can only contain one tax per invoice line. However,
there might be one or more ecotaxes on invoice lines in Belgium. Do not
block the user from generating the attachment in this case.

Note that PR https://github.com/odoo/odoo/pull/121494 will properly
handle the fixed taxes upon generating UBL attachments.

opw-3318969

closes odoo/odoo#122030

X-original-commit: 68814f52e4fd44e190a2a71ee99a010a08eef674
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Julien Van Roy <juvr@odoo.com>
2023-05-23 14:52:11 +02:00
Chong Wang (cwg) 65e50310f7 [IMP] core: allow update empty translations
before this commit
When users open the translation dialog for an empty field, and directly update
and save all translations in the translation dialog, nothing will be saved for
backend

after this commit:
these translations will be saved.

opw-3297748

closes odoo/odoo#122008

X-original-commit: ae643ab48b3447f372bfe08fbad7515f370b7cbe
Signed-off-by: Raphael Collet <rco@odoo.com>
Signed-off-by: Wang Chong (cwg) <cwg@odoo.com>
2023-05-23 14:52:08 +02:00
Chong Wang (cwg) e03754a9d4 [FIX] core: write terms to en_US if not activated
Before this commit:
when en_US is not activated and the user changes terms slightly for
ir.ui.view.arch, the new term will be treated as a typo fix or style change, and
won't be populated to other languages. As a result, in the form view, arch_base
field which displays the en_US translation of the arch_db will still be the
content before the change(wrong and strange).

After this commit:
when write a model_terms field when en_US is not activated, its en_US value will
always be overwritten.

opw-3265418

closes odoo/odoo#122006

X-original-commit: e7fd2361ab83f3a02ada09c18094adc5c7517227
Signed-off-by: Raphael Collet <rco@odoo.com>
Signed-off-by: Wang Chong (cwg) <cwg@odoo.com>
2023-05-23 14:52:05 +02:00
roen-odoo bd1acd4877 [FIX] point_of_sale: long product name completely visible
Current behavior:
When a product had a too long name, the name was truncated and couldn't
be completely seen.

Steps to reproduce:
- Change the name of a product to a very long name with spaces
- Open the POS
- The product name is truncated

Note:
To fix this we stop showing placeholders when a product doesn't have an
image set.

opw-3245538

closes odoo/odoo#121982

X-original-commit: 13a20470238e14465b4010096f0f6914c1e93a3f
Signed-off-by: Heinz Robin (rhe) <rhe@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
2023-05-23 14:51:59 +02:00
Chrysanthe (chgo) 1347909ede [FIX] mass-mailing, website_*: fix some .btn-secondary border
== ISSUE ==

With the new design introduced within Milk, most of the buttons received
a visual upgrade (eg. removing borders)

This change applied on most of the buttons since the same code, but some
buttons were using a `.border` class on top of that and so they did not
loose this border.

== After this commit ==

We clean up these buttons that were keeping a border, in order to make
our secondary buttons more consistent.

Please note that this change does not apply on all secondary buttons
since some of them are customized for a specific module and so remain
unmodified.

task-3326313
part of task-3326263

closes odoo/odoo#121990

X-original-commit: b2e338666f59a1c40e4dcb072928ee1ae5f3ab52
Related: odoo/enterprise#41310
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-05-23 08:42:15 +02:00
Adrien Dieudonné fdf4cbf600 [FIX] web, *: x2many list horizontal overflow
This issue only occurs on Firefox because ´has´ is not supported
and the following rule is not applied:
https://github.com/odoo/odoo/commit/2cd0106e63785dd34553c2b4747d72b93b9a7afd

Anyway, there is an existing css rule that is applied if the field
class is correclty added.

Steps to reproduce:
- Open Sale
- Add some content in the sale order line

opw-3201461
opw-3285854
opw-3266130
opw-3244581

closes odoo/odoo#121979

X-original-commit: add1df806157c074fd1a3224d1d8bdf1922481fb
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-05-23 08:42:12 +02:00
Brieuc-brd a5d2cb5bcb [FIX] web: color of tooltip arrow
Prior to this commit, the color of the tooltip arrow didn't match the
popover background when it was a tooltip (white arrow and black popover
content).

However, the css adaptation was already present in `tooltip.scss` using
the css variable `--popover-arrow-color`, but the selector wasn't
correct since the arrow was always BEFORE the content.

This commit fixes the issue by placing the arrow after the popover
content.

task-3329927
Part of task-3326263

closes odoo/odoo#121975

X-original-commit: 0f1fb80ac6e36b8230ffaf3c7c2608d527b451a2
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-05-23 08:42:07 +02:00
Lucas Perais 10a6387242 [FIX] web: aceField with a value of false
Have a record with a field displayed with the aceField.
That field should have a value of false (ie: unset).
Display that record on a form view.

With the pager, go on to the next record.

Before this commit, a write was triggered because the aceField considered itself as changed
even though we did not do anything.
This was because the value of false was compared to the ace value (empty string) when leaving the record.
Being different, this triggered the current record to be updated and saved.

After this commit, a false value is locally transformed to the empty string when checking if the field has
some changes. Hence, there is no write triggered.

opw-3326914

closes odoo/odoo#121969

X-original-commit: 74e8d60a6ae19199ae5d0f9d66ca0748f068782f
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2023-05-23 07:40:50 +02:00
Lucas Perais b2f648fb3e [FIX] web: test document layout should be post_install
Initialize a DB. Install website when it is initialized.
Launch tests of the class TestBaseDocumentLayout

Before this commit, there was a crash because those tests render the report_layout and its
assets.

The full explanation is that, the module website adds an ir.asset `website.s_badge_000_variables_scss`
that the report wants to fetch. But, the class of tests is executed at_install. Given the topological order
and the order of the modules installation, website is not in the registry at that point, but the ir.asset is retrieved
from the database.
The ir.asset algorithm determines at that point that `/website/` is not an admissible path and raise an exception.

This commit solves the problem by tagging this class of test "post_install" and not "at_install".

runbot-error-21203
runbot-error-21204
runbot-error-21205
runbot-error-21206
runbot-error-21207
runbot-error-21208
runbot-error-21352
runbot-error-21353
runbot-error-21354
runbot-error-21355
runbot-error-21356
runbot-error-21357

closes odoo/odoo#121998

X-original-commit: 48b833513ac8f76febbc4ca7b935260d7ea85522
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2023-05-23 06:37:44 +02:00
agrabsi 30e25dac81 [FIX] account: chart template upgrade
Upgrading the chart template will point or create xmlid
to existing records to avoid duplicate account codes.

closes odoo/odoo#121967

X-original-commit: af1436482ebf04ac55a7947dfa4a3f789ce18afe
Signed-off-by: William André (wan) <wan@odoo.com>
2023-05-22 23:18:22 +02:00
Odoo 47cd29f33c [FIX] web_editor: non-uniform behaviour in
Before this commit:

When a new list is created and any list item is applied a style
like h1, bold ,itallic etc.. and when when toggle that list, the list
style breaks

After this commit:

Toggling through the list does not break the style.

closes odoo/odoo#121955

Task-id: 3269908
X-original-commit: d06e043c4b55e2157992bf4a12b40f1e6bd3b690
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-05-22 17:52:18 +02:00
Nshimiyimana Séna 15ef1ba081 [FIX] account: allow sending invoice to partner other than the customer
When sending an invoice to a recipient who is not the customer, they are
unable to view the invoice in the customer portal and are prompted to
log in.

1. Create and validate an invoice
2. Click on the Send & Print button, then add a recipient who is not the
   customer associated with the invoice.
3. Proceed to send the invoice.
4. Access the email that was sent to the added recipient (who is not the
   customer)
5. Using an incognito or private browsing window, open the link
   `View Invoice`

=> you should see that you are asked to log in, instead of being
directed to the customer portal.

opw-3114579

closes odoo/odoo#121954

X-original-commit: aabb2e624ef55661549381cea63e6460faa285c9
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: Nshimiyimana Serge Séna (sesn) <sesn@odoo.com>
2023-05-22 17:52:15 +02:00
Brieuc-brd 9ef5e01596 [FIX] point_of_sale: directional icons
Prior to this commit, the new directional icons introduced with Milk
were not called and broke the layout.

This commit fixes this issue.

task-3326366
Part of task-3326263

closes odoo/odoo#121947

X-original-commit: 36345ad7c1179ab3f2db797917e9ff3ecda51dfb
Related: odoo/enterprise#41290
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-05-22 17:52:12 +02:00
Louis Wicket (wil) 04189318cc [I18N] *: update master translations
Currently, only stable releases see their translations updated. This has
resulted in master accumulating outdated stuff for years, which can be
confusing for users testing master on runbot.

This one-shot commit resynchronizes master translations based on the
content from 16.0 and removes empty PO files (i.e. no longer containing
translations).

closes odoo/odoo#121629

Related: odoo/enterprise#41171
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-05-22 17:52:07 +02:00
Alexandre Kühn 11b4355a7b [FIX] mail: several discuss improvements (following MILK redesign)
closes odoo/odoo#121948

Forward-port-of: #121683
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-05-22 16:30:12 +02:00
Deependra Solanki 13c6e34635 [FIX] web_editor: command click goes through fix
Before this commit:

Previously, when opening a command bar below an image such that the command bar
was on the image, clicking on the command bar would select both the command bar
option and the image.

After this commit:

Clicking on the command bar no longer selects the image when it is beneath the
command bar.

Task - 3126311

closes odoo/odoo#121941

X-original-commit: 4a25135dc19337eea70102f33468371e5bf88d27
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-05-22 16:30:09 +02:00
Hamza (hisl) ab5ba554b0 [FIX] web : change the white space of button-box to nowrap
Steps to reproduce the issue:

1. Go to any of the contacts with partner ledger option.
2. Make the browser window small and observe the text in the partner ledger button box.

Current Behaviour:
The text in the button box does not get ellipsized, rather stays the same and may get out of the button box if the box becomes smaller

Desired Behaviour:
The text in the button should be ellipsized

OPW-3266235

closes odoo/odoo#121167

X-original-commit: ec642f9caba7c6a7a21d9e65ffa0e305ff06678d
Related: odoo/enterprise#40948
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-05-22 16:30:06 +02:00
kir-odoo 02cd8ebe02 [ADD] l10n_in: merge l10n_in_upi l10n_in
merge l10n_in_upi into l10n_in

closes odoo/odoo#111299

Related: odoo/upgrade#4272
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-05-22 16:29:57 +02:00
clesgow a9bf6ba57f [FIX] product: display barcode field on new products
Following 459760c, the `barcode` field wouldn't appear on a new product
form until the form was saved at least once.
This was due to the new product not having any variants until it was
saved.
In the case of the product not having any variants, we check if it does
have a least one attribute at the same time (which would be the case for
dynamic attributes).

closes odoo/odoo#121925

X-original-commit: 5f3db6683ab191cb68af4c8d6bb2e86a5b114ee1
Signed-off-by: Steve Van Essche <svs@odoo.com>
2023-05-22 15:09:11 +02:00
adda-odoo a81a6e994e [FIX] crm: add minimum of return value to _get_assignment_quota
The method _assign_and_convert_leads() gets called when the CRM: Assign Leads cron is called.
The values in the list `weights` gets caluclated in a way that memebers with a lower
`lead_month`count` value gets a higher weight when randomizing assignement of a new lead. Assuming that the
max assignment per member is consistent (or default = 30).
Assume that each sale member belonging to any team has around 500 leads assigned to them the previous
month(`lead_month_count`) and `work_days` is set to `0.2`. The return value of the method
`_get_assignement_quota()` in this case would be 0 for every member, which causes the list `weights`
to get populated with just zeros. This raises a `ValueError: Total of weights must be greater than zero`.

Fix:

Make sure the minimum weight for each member is at least 1 and not 0.

opw-3171085

closes odoo/odoo#121908

X-original-commit: 15e2a1ebe2e64b752fb1c1d6bc422beb7d548b78
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-05-22 15:09:08 +02:00
gaikaz 990118beb0 [CLA] Via laurea: Add Mantux11
closes odoo/odoo#121772

X-original-commit: 34a38806cb9460f7822c9f45427c41ad5c1cd3ee
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-05-22 15:08:57 +02:00
Florent de Labarre 4382e003fd [FIX] sale: paylink does'nt work
if partner_id is diff than partner_invoice_id on sale.order.

https://github.com/odoo/odoo/blob/16.0/addons/sale/controllers/portal.py#L346

- go to runbot
- create a sale.order
- set partner_invoice_id != partner_id
- create a link
go to the link --> error

closes odoo/odoo#121905

X-original-commit: 811ed2fb763155abbaba29e8c9193166a9cc34cc
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-05-22 13:54:13 +02:00
Xavier Luyckx (xlu) 4f37525de4 [FIX] mail: CategoryItem buttons, adapt for milk
With redesign of web client style, buttons by default are now rounded
, this commit removes the border-radius for the members list buttons in
discuss sidebar.

task-3329620
part of task-3326263

closes odoo/odoo#121904

X-original-commit: 3d2953e4129ac3267dc08eeebda5cdc3569e4b62
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-22 13:54:10 +02:00
Brieuc-brd 6fcb435c08 [IMP] account: update l10n icon
Since the introduction of Milk, the new l10n icon needs to be updated to
match the new app icons.

This commit fixes this issue.

task-3326633
Part of task-3326263

closes odoo/odoo#121886

X-original-commit: 6b5738674fa64b54d31f18e0e5451b458dbc8f7c
Related: odoo/enterprise#41279
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-05-22 13:54:08 +02:00
Brieuc-brd fa60bac197 [IMP] *: app icons : add viewBox attribute
Prior to this commit, the SVG's viewBox attribute was missing, which
prevented svgs from being scaled.

This commit fixes this issue.

task-3326633
Part of task-3326263

X-original-commit: 30300c373ad1c63a6cf8b035cae0785a09c6933f
Part-of: odoo/odoo#121886
2023-05-22 13:54:08 +02:00
Brieuc-brd ee75969979 [IMP] *: app icons: replace svg to png
The introduction of Milk has brought new app icons.
Using the svg format creates a lack of anti-aliasing on the edges of the
shapes, which makes the icons look bad.
Since the png size has been reduced, we can afford to use the png format
to have the best possible quality without having a lack of performance.

task-3326633
Part of task-3326263

X-original-commit: e07cb722f2b11407a3ad093bd688b7d37afd5a88
Part-of: odoo/odoo#121886
2023-05-22 13:54:07 +02:00
Brieuc-brd 88250e3714 [FIX] base: replace missing app icons
Since the introduction of Milk, the app icons have been updated.
But before this commit, some of these icons were not replaced in the
list of apps in Community.

This commit fixes this issue.

task-3326633
Part of task-3326263

X-original-commit: 1f6294526675a49acc9c610f59749c82e5a47bef
Part-of: odoo/odoo#121886
2023-05-22 13:54:07 +02:00
Denis Ledoux 108f85f9be [IMP] base_import_module: deprecate module import from addons path
We no longer want to support importing data modules from within
the addons path.
Only modules imported with an archive and extracted in a temporary
folder are supported.

closes odoo/odoo#121881
2023-05-22 13:53:59 +02:00
Thomas Lefebvre (thle) 61ba5037dc [FIX] google_calendar: edit schedule of recurring event
Steps to reproduce:
-------------------
We google calendar, create a recurring event with
three occurrences.
We obtain 3 events in chronological order:
- A
- B
- C
Change the title of the event B and apply the changes
to the following events.
We get:
- A: First title
- B: Second title
- C: Second title
Modify the schedule of event C and apply the changes
only to this event.
We get:
- A: First title + First schedule
- B: Second title + First schedule
- C: Second title + Second schedule
Synchronize Google calendar with Odoo.

Issue:
------
Event C is "duplicated".
Event C will exist with the first schedule
and the second schedule.

Cause:
------
A recurrent event with `google_id` is equal to
`ID_RANGE_TIMESTAMP` can be rescheduled.
If this is the case, its `google_id`
will be equal to `ID_TIMESTAMP`.

We do not manage the deletion of the event
that belongs to the old `google id`.

Solution:
---------
When we detect a recurring event with
a modified schedule, we have to delete the event
from the old `google_id`
(which is the event with the old schedule).

For this, it is necessary to find
the old `google_id` based on the elements contained
in the `id` and the `recurringEventId` of the event.

opw-3143680

closes odoo/odoo#121825

X-original-commit: 3f145af00307383e2d0a0891d05b8db59b13662a
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
2023-05-22 13:53:56 +02:00
Xavier-Do 35e2ea33c7 [FIX] base: fix js unique (missing template)
This error was intoduced in #121159
The javascript unique should also be based on templates.

closes odoo/odoo#121842

X-original-commit: 2a7c6640357b4d6fc0c539b5d8d5e6dd80882d5b
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-05-22 12:48:39 +02:00
Kartik Chavda f71a9cc8dc [FIX] hr_timesheet: add formatters for uom timer widget
Before this commit timesheet uom timer not displaying proper
aggregated value because it was not added in formatters registry.

This commit add timesheet uom timer widget in formatter registry to
display right value when timesheets are encoding in days and views
are displaying aggregated value(e.g. total in list view).

task-3251672

closes odoo/odoo#121788

X-original-commit: ef20722b9d4513519ef78ab6e973edda4fa4d7fc
Related: odoo/enterprise#41252
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-05-22 12:48:36 +02:00
Stanislas Gueniffey 0cf2437f67 [IMP] web_editor: remove dead '_onInput' code
The 'insertLineBreak' case in `onInput` is dead code because any event
that might cause it (pressing Shift+Enter) first triggers `onKeydown`,
which calls `ev.preventDefault()` and thus prevents it from reaching
`onInput`.

Task-3301232

closes odoo/odoo#121850

X-original-commit: c63cd2f0140959a7ac6e05ef15ac5c2ac552453d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-05-22 11:43:11 +02:00
Carlos Carral a39f9fcf11 [IMP] sql.py: Take into account materialized views when dropping them
The function `drop_view_if_exists` only works when the view in question is a
regular view. Here we allow for materialized views to be dropped without any
extra logic added from the caller side.

closes odoo/odoo#121814

X-original-commit: f0db3454bde6759af9aa1b3c2751845a3b2949e7
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2023-05-22 11:43:09 +02:00
Denis Ledoux 58ea5e7b43 [IMP] http.py: do not inject context by default in JSON routes
Before this revision, when you pass `context` in the arguments
of a JSON routes, this one gets automatically injected
in the environment context.

This is not the case for regular HTTP routes.

It makes sense to propagate the context for the JSONRPC protocol,
JSON routes used by the backend, such as `call_kw`,
but it doesn't make sense to pass this context automatically
for any other kind of routes, such as front-end routes
or routes used by custom Javascript widgets.

This change brings a more unified behavior for routes
of types HTTP and JSON.
In addition, most developers were not aware of this "feautre",
that passing `context` in the arguments of a JSON route leaded
to the injection of this context in the environment context.
This is actually reflected by the diff size this changes required,
only a dozens of routes needed to be adapted, to manually
add the context in their route arguments and to inject it
in their environment context.

closes odoo/odoo#121726

X-original-commit: a7a5655631e6d5b05fd2ba3d0c80617aae6d9cfe
Related: odoo/enterprise#41229
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2023-05-22 11:43:04 +02:00
tsm-odoo ea3008cc49 [IMP] mail, im_livechat: use ui service instead of store.isSmall
Since [1], the ui service is reactive which removes the needs for
the `mail.store` service to maintain a reactive version of `isSmall`.

This PR replaces the use of `store.isSmall` as well as `env.isSmall`
by the ui service.

1: https://github.com/odoo/odoo/pull/121343

closes odoo/odoo#121590

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-05-22 11:42:58 +02:00