Commit Graph
155856 Commits
Author SHA1 Message Date
Denis Ledoux ab7ca604be [FIX] base: res.config.settings must not have <t> nodes
The res.config.settings form view is handled with a custom widget
expecting a very specific structure.

a `<t>` node in the middle of
`<div class="settings">`
and
`<div class="app_settings_block">`
screws things up, and the app block will no longer be shown as expected
in the web interface.

This issue has been introduced with
odoo/odoo#103799

The current revision reverts the change so it becomes as before,
the `<t>` blocks with only `groups="..."` are removed from the
architecture, even if they have not been added by the postprocessing
itself.

An alternative fix is done,
directly in the `web_studio` module of odoo/enterprise,
to overcome the issue odoo/odoo#103799 was solving.

Both issues are covered with unit tests:
- the issue odoo/odoo#103799 was solving is covered with the unit test
  added in the related odoo/enterprise#33075
- the issue solved by the current revision is covered with units tests
  added in this revision directly.

closes odoo/odoo#104542

X-original-commit: 56d2de23919f9efa3cd1eef756725e8bc9b86d81
Related: odoo/enterprise#33410
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2022-10-28 21:33:58 +02:00
Alexandre Kühn cc6546677d [IMP] mail, *: Rename component to match model (step 2)
[IMP] mail: rename ActivityBox to ActivityBoxView (component)
Task-3046113

[IMP] mail: rename ActivityMarkDonePopoverContent (component)
Task-3046122

[IMP] mail: rename AttachmentBox to AttachmentBoxView (component)
Task-3046129

[IMP] mail: rename AttachmentDeleteConfirm (component)
Task-3046160

[IMP] mail: rename CallActionList (component)
Task-3046187

[IMP] mail: rename CallParticipantVideo to CallParticipantVideoView (component)
Task-3046193

[IMP] mail: rename ChannelInvitationFormSelectablePartner (component)
Task-3046287

[IMP] mail: rename ChannelInvitationFormSelectedPartner (component)
Task-3046288

[IMP] mail: rename ChannelMember (component)
Task-3046298

[IMP] mail: rename ChannelMemberList (component)
Task-3046306

[IMP] mail: rename ChannelMemberListCategory (component)
Task-3046307

[IMP] mail: *: rename ChatWindowHeader (component)
*: hr, im_livechat, website_livechat
Task-3046330

[IMP] mail: rename ChatWindowHiddenMenu (component)
Task-3046358

[IMP] mail: rename ChatWindowHiddenMenuItem (component)
Task-3046515

[IMP] mail, *: rename Composer (component)
*: hr_recruitment, im_livechat
Task-3046555

[IMP] mail: rename ComposerSuggestedRecipient (component)
Task-3046598

[IMP] mail: rename ComposerSuggestedRecipientList (component)
Task-3046624

[IMP] mail, *: rename ComposerTextInput (component)
*: im_livechat
Task-3046648

[IMP] mail: rename DeleteMessageConfirm (component)
Task-3046661

[IMP] mail, *: rename Discuss (component)
*: im_livechat
Task-3046685

[IMP] mail: rename DiscussMobileMailboxSelection (component)
Task-3046703

[IMP] mail: rename DiscussMobileMailboxSelectionItem (component)
Task-3046709

[IMP] mail, *: rename DiscussSidebar (component)
Task-3046719

[IMP] mail: rename DiscussSidebarMailbox (component)
Task-3046732

[IMP] mail: rename DropZone (component)
Task-3046739

[IMP] mail: rename FollowButton (component)
Task-3047154

[IMP] mail: rename Follower (component)
Task-3047203

[IMP] mail: rename FollowerListMenu (component)
Task-3047236

[IMP] mail: rename FollowerSubtype (component)
Task-3047272

[IMP] mail: rename MailTemplate (component)
Task-3047314

[IMP] mail, *: rename Message (component)
*: im_livechat, sms, snailmail, website_sale
Task-3047352

[IMP] mail: rename MessageAuthorPrefix (component)
Task-3047683

[IMP] mail, *: rename MessageList (component)
*: hr_recruitment, website_livechat
Task-3047718

[IMP] mail, *: rename MessageNotificationPopoverContent (component)
*: sms
Task-3047742

[IMP] mail: rename MessageSeenIndicator (component)
Task-3047765

[IMP] mail, *: rename MessagingMenuTab (component)
*: im_livechat
Task-3047802

[IMP] mail: rename MobileMessagingNavbar (component)
Task-3047806

[IMP] mail, *: rename NotificationGroup (component)
*: sms, snailmail
Task-3047829

[IMP] mail, *: rename NotificationList (component)
*: im_livechat
Task-3047871

[IMP] mail: rename NotificationRequest (component)
Task-3047883

[IMP] mail, *: rename PersonaImStatusIcon (component)
*: hr_holidays
Task-3047969

[IMP] mail, *: rename ThreadIcon (component)
*: hr_holidays, im_livechat
Task-3047980

[IMP] mail, *: rename ThreadNeedactionPreview (component)
*: im_livechat, rating, test_mail_full
Task-3048021

[IMP] mail, *: rename ThreadTextualTypingStatus (component)
*: im_livechat
Task-3048042

[IMP] mail, *: rename ThreadTypingIcon (component)
*: im_livechat
Task-3048043

[IMP] snailmail: rename SnailmailError (component)
Task-3048051

[IMP] website_livechat: rename VisitorBanner (component)
Task-3048069

Task-3047725

closes odoo/odoo#104548

Related: odoo/enterprise#33411
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-28 20:39:58 +02:00
Younn Olivier f8004d479a [FIX] website: fix opening the page manager in debug mode
Before this commit, opening the Page Manager in debug mode would throw
an error, stating that the website.RecordFilter has a t-foreach with
duplicated keys.

As per the [owl documentation]: "Owl requires the presence of a t-key
directive, to be able to properly reconcile renderings." and "A key
should be a unique number or string."

This commit fixes the keys to be the website id instead of the website
object.

[owl documentation]: https://github.com/odoo/owl/blob/master/doc/reference/templates.md#loops

closes odoo/odoo#104540

X-original-commit: 0d1c263298ca6724a6fe6c31e2a2d3221c5e8c75
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-28 20:39:53 +02:00
william bebfa9b52c [FIX] base,core: order of self.env.companies
Using a `frozenset` leads to non deterministic issues.
Because when nothing is set in the context key `allowed_company_ids`,
`self.env.companies` will fallback on `self['res.company'].browse(user_company_ids)`
Since the browsing is done on a non ordered set, the recordset doesn't
follow the `_order` set on the model, by definition.

This has the effect of not being deterministic when iterating on
`self.env.companies`.

For instance
https://runbot.odoo.com/runbot/build/20539598

closes odoo/odoo#104538

X-original-commit: bfee55b14c918c44ebbb2563d5dc0e102edf396e
Signed-off-by: Rémy Voet <ryv@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-28 20:39:50 +02:00
Maruan Aguerdouh (magm) f8b60ea4cb [FIX] product: views in product form for bom price displayed correctly
Steps to reproduce:

Go to a product form view that has a BoM.

Issue:

The price is diplayed collapsed with the units and currency text.

Solution:

We need to remove the class "o_row" in order to be displayed in 2
columns as it is in other versions.

opw-3041120

closes odoo/odoo#104460

X-original-commit: 812614b7d6e194f510491ff83f9a8e48594ae7c5
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
2022-10-28 19:42:46 +02:00
Benoit Socias f2e20e5377 [REF] website, *: make search options inheritable
*: website_blog, website_event, website_forum, website_slides

With [1] it has been made easier for partners to extend search options.

This task introduces similar inheritable functions for blog posts,
events, forum posts, slides, pages and hybrid results.

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

task-2897924

closes odoo/odoo#97908

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-28 18:50:49 +02:00
snd 8dc3f59f18 [FIX] stock_picking: typo in method name
issue #97863
can't be changed in stable version

closes odoo/odoo#104513

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-10-28 17:18:13 +02:00
Xavier Morel 5d47883262 [REM] core: dead code for JSONRPC HTTP status
When `make_json_response` was added in
034d01b2f3 and `_response` was updated
to use it, the `http_status` extracted from the error object was
removed.

But it's still set by `handle_error` and a local is defined for
it. Drop that.

closes odoo/odoo#104507

X-original-commit: b0ea1cd6a2628a6acd1e2d79cc862976c63b1565
Signed-off-by: Julien Castiaux <juc@odoo.com>
2022-10-28 17:18:10 +02:00
Romeo Fragomeli 5f6443fa87 [FIX] web: show the form status indicator with long breadcrumb
Since commit, odoo/odoo@f2b71d51aa
the text ellipsis is working again with long breadcrumb.
But in form view when there is a long breadcrumb, the
'form status indicator' (save, discard) is not visible anymore.

In this commit, we move the 'form status indicator' outside the
breadcrumb, so it can't be hidden anymore.

Note: we also changed the `align-items` to `flex-start` to keep all
buttons aligned on the top ('form status indicator', action menu, pager,
create button, send message, ...).

Steps to reproduce:
* Go to Sales
* Select a Quotation
* Click on the customer (to go to customer form view)
* Change its name to have a long breadcrumb
* Go back to the home menu
* Go to Sales
* Select the same Quotation as before
* Click on the customer (to go to customer form view)
* Change some data in the customer form => BUG
  'form status indicator' isn't visible

closes odoo/odoo#104476

X-original-commit: df41c270b2372cd28226a16e089b71db32307159
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
2022-10-28 15:19:56 +02:00
Joseph Caburnay 9f5819e0fd [FIX] web: put widget inside td in list_renderer
"div" as a child of "tr" is not really allowed. Because of this,
custom widgets in a list_renderer are not properly styled resulting
to issue where a widget doesn't take the full height of the
parent "tr" element.

This was missed during initial wowl porting so in this commit,
we are putting the widget inside a "td" element.

closes odoo/odoo#104475

X-original-commit: 092b6b66d998795a03de82be4d33990a138396e1
Signed-off-by: Samuel Degueldre <sad@odoo.com>
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2022-10-28 15:19:53 +02:00
Pierre Paridans ebd149857e [FIX] bus: SharedWorker is buggy on iOS 16.1
Since the iOS 16.1 update, the WKWebView used in the iOS mobile app
crashes when trying to instanciate a `SharedWorker`... even if this
feature was newly added in iOS 16.0.

Safari iOS doesn't seem to be impacted.

This commit works around this issue by disabling the usage of the
`SharedWorker` in the iOS mobile app, using instead the existing
fallback to a regular `Worker`.

Steps to reproduce:
- On a device running iOS 16.1
- Open Odoo in the iOS mobile app
=> Once connected the app freezes with a gray screen

opw-3045539

closes odoo/odoo#104459

X-original-commit: afac382bd711b1a506629742456d91526cc52c53
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-28 14:21:13 +02:00
gawa-odoo cb0ff3bc64 [FIX] project_purchase: analytic_distribution and recordset
In `_compute_analytic_distribution`, we're dealing with recordset and so, should iterate on it.
Also, the distribution expects an id, not the record.

closes odoo/odoo#104458

X-original-commit: d41d5ef7aebc9f65066ecf86939e3f60aa515539
Related: odoo/enterprise#33378
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-28 14:21:08 +02:00
roen-odoo 3dd722f4f7 [FIX] pos_sale: fix traceback when using sales team and invoice
Current behavior:
When setting up a sales team in the PoS setting and trying to invoice an
order, a traceback is raised.

Steps to reproduce:
- Go in PoS settings and set a sales team
- Open a PoS session
- Select a customer and add some products to the order
- Go to the payment page, select a payment method and clic on "Invoice"
- A traceback is raised

opw-3038413

closes odoo/odoo#104444

X-original-commit: b941f3999087146d1a7412bb35cec38fce6dd1a6
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-10-28 14:21:01 +02:00
Stefan-Calin Crainiciuc (stcc) eadca2ee0a [FIX] account_payment: typo in portal template
Steps to reproduce:

- Setup Wire transfer as Payment Provider
- Create a sale from shop
- Use Wire transfer as payment method
- Go to Sales > Confirm the quotation
- Create Invoice
- Click 'Preview' to view invoice in customer portal view

Issue: internal server error

The `provider` field has been renamed to `provider_code` in b7f5eb54453737f371eda4ca897300b89abd9c2e

opw-3031308

closes odoo/odoo#104441

X-original-commit: 4841aae833c462cd28fe3dbc81f12fb35afc8187
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
Signed-off-by: Stefan-Calin Crainiciuc (stcc) <stcc@odoo.com>
2022-10-28 14:20:59 +02:00
Solan Delvenne (sode) 447d522ac0 [IMP] snailmail: Modify the CSS to be compatible with all layouts and Pingen v2
Necessary improvement to the snailmail invoice layout for snailmail to work since Pingen has deprecated their v1 API with the plan to shut it down at the end of 2022 + their v2 API's validation is stricter.

closes odoo/odoo#103806

X-original-commit: 69950a650115536f2d57b1f68b5adadd4c0453f3
Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
Signed-off-by: Solan Delvenne (sode) <sode@odoo.com>
2022-10-28 14:20:53 +02:00
Solan Delvenne (sode) 08deba16b3 [IMP] snailmail: Generate a cover page if the "Cover Page" option is turned on
Pingen's v2 API does not offer an endpoint to generate a Cover Page automatically with an API call anymore, thus the need to generate it and append it to the invoice from the client-side beforehand.

X-original-commit: 13f934cebc35511f8ba587b9d07a658bf7c1e640
Part-of: odoo/odoo#103806
2022-10-28 14:20:53 +02:00
Hubert Van de Walle (huvw) 95024f8bcb [FIX] project: applychanges for personal_stage_type_ids
Steps to reproduce
==================

- Go to Project > My tasks
- Drag a card to another column
-> An error occurs

Cause of the issue
==================

`personal_stage_type_ids` was not changed to `personal_stage_type_id`

opw-3036820

closes odoo/odoo#104442

X-original-commit: 3afc32af953556227dc07f8c65b5301d10fa92fe
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
2022-10-28 13:23:06 +02:00
gawa-odoo 98c2405a50 [IMP] l10n_syscohada: general improvement
Also correct mistake in name of RDC in manifest.
Modification in the COA (clearer name) + change made on some account about reconciliation, before this commit there was way to much reconcilable account, it's now corrected
Demo company modified
Menu item added

closes odoo/odoo#104440

Task-id: 2350061
X-original-commit: 0caa35df57061576ffb14252b08379a382e39ef9
Related: odoo/enterprise#33372
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-28 13:22:56 +02:00
Zelong Lin a02ad8ce83 [IMP] mail: introduce @odoo/owl import syntax
Use the standard import syntax for '@odoo/owl'

task-3046123

closes odoo/odoo#104431

Related: odoo/enterprise#33371
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-28 13:22:53 +02:00
Maruan Aguerdouh (magm) 0d6bab723b [FIX] account: bank accounts are properly created
Steps to reproduce:

In a base runbot with just contacts installed and the module
"account_edi_ubl_cii".

Go to contacts, Configuration, and Bank Accounts, try to create a bank
account for any user.

Issue:

The creation throws an error and doesn't let us create any bank account.

Solution:

We need to add the missing decorator: @api.model_create_multi, which is
needed when we work with vals_list.

opw-3039048

closes odoo/odoo#104427

X-original-commit: e83da6166da40f5c30c396e6aa9811c8ee1d0e6e
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
2022-10-28 12:21:11 +02:00
Pierre d2afca280b [IMP] pos_cache: remove module pos_cache
Since we introduced in 15.0 the possibility to limit the number of
product loaded at the launch of the POS and to load the remaining ones
in background, we don't need anymore a cache of the products to have a
faster way to start the POS.

So we remove this module as it won't be needed anymore.

closes odoo/odoo#104423

Related: odoo/upgrade#3997
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2022-10-28 12:21:02 +02:00
ArnaudVerlaine 1c928e93ac [IMP] analytic: distribution form view corrections
- Changes the tooltip of the account_prefix field
- Changes the name of the analytic_distribution field
- Changes the name of the group for the conditions
- Changes the size in the analytic_distribution_model_views of the analytic_distribution field
- Changes the name of the group for the analytic distribution field

closes odoo/odoo#103636

Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-28 12:20:59 +02:00
Romain Derie 8b9dac9293 [FIX] website_sale: add text variable to header cart t-cache
Without this, it will simply ignored the given `_text` variable as the
t-nocache part is scroped. It means it can't access natively the
variables outside of its scope unless those are passed to the scope
through the `t-nocache-var_name` form.

Basically, it resulted in the "My Cart" never shown next to the cart
badge counter.
Most of the time, this text is used in replacement of the `fa` icon, so
it led to poor UI: a floating badge left alone.

task-3044936

closes odoo/odoo#104416

X-original-commit: cd50114cc422941920ff4d579ab6b48aae75cc6a
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-10-28 11:22:45 +02:00
niyasraphy 28ff040602 [FIX] point_of_sale: redirect to correct settings
Since the settings in POS have been moved to the general settings, we
have two way to access those general settings. First throug the general
settings, second when you open the shortlist of settings editable by
every pos manager and follow the link to the general ones.

In the second case, when we arrive into the general settings, the
settings displayed are not always the one of the POS config you come
from, because by default it only show the settings of the latest pos
config editted.

So we are now checking if we are comming from a pos config to display
the correct one.

closes odoo/odoo#104391

X-original-commit: b0df10c1e497f65b891f7141055e7f339d11b4b1
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-10-28 10:17:54 +02:00
niyasraphy 03a855d30e [FIX] point_of_sale: pos_config_ids field label
closes odoo/odoo#104342

X-original-commit: 27ff3e0f64f53caa62c3022bd3b7c41e29a8e721
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-10-28 10:17:52 +02:00
Camille Spiritus dda9e7b249 [FIX] account: fix payment term installments ordering
The payment terms printed on the invoice are ordered by date.

However, the order was applied on the string version of the date, which caused issues.

Fixed this by formatting the date to string after the ordering.

closes odoo/odoo#104388

X-original-commit: c6bc6284c390659d40a329c3b7b000579ed7c23b
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Camille Spiritus (casp) <casp@odoo.com>
2022-10-28 09:17:59 +02:00
Valentin Chevalier a7d87a9546 [FIX] website_payment: fix Stripe Connect onbarding
Before this commit, the payment journal could be not set when starting
Stripe Connect onboarding from the settings of Website.

Now, the payment journal will be set, even if the onboarding was started
from the settings of Website.

closes odoo/odoo#104387

X-original-commit: f51ec823fde7580d078dd4769570d445e60e05bb
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
2022-10-28 09:17:57 +02:00
Valentin Chevalier 1e025adbf3 [IMP] payment_stripe: adjust the code for Stripe Connect
task-2982347

X-original-commit: fc890dc6e91a6731bf31a40ee77dad0f8697f5b4
Part-of: odoo/odoo#104387
2022-10-28 09:17:56 +02:00
damr c63fca37bb [FIX] sale_project: create project from SOL with allow_billable
This commit purpose is to ensure that projects created from a SOL
are created with `allow_billable` set to `True`

task-2992614

closes odoo/odoo#104386

X-original-commit: b9cecb5a77b02542a06f144a01b6f1f90b873c96
Related: odoo/enterprise#33356
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-28 09:17:50 +02:00
Touati Djamel (otd) 8ca3d4675b [FIX] stock: display the available qty in stock.quant form view
Steps to reproduce the bug:
- Create a storable product “P1”
- update the quantity to 10
- Go to inventory > configuration > warehouse Management > location
- Select your location > current stock
- Search the Product “P1”

Problem:
In `stock.quant’ list view > the available qty is displayed, but if you
click on the line, the available qty is not displayed in the form view,
only the qty counted is displayed

opw-3018469

closes odoo/odoo#104374

X-original-commit: d956e719d43c68abe6210e3136db576aaa6f60b8
Signed-off-by: Steve Van Essche <svs@odoo.com>
Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
2022-10-28 09:17:48 +02:00
Touati Djamel (otd) 70f089fe25 [FIX] stock_account: convert qty to product UOM before creating an SVL
Steps to reproduce the bug:
- Create a Storable product “P1”:
    - UOM: unit
    - Update the qty to 100
- Create an out transfert:
    - Product: P1
    - Qty: 2
    - UOM: dozens
    - Validate the transfert
- Click on the valuation button
- an SVL is created with Qty: 24 → 2 pack of 12
- Go back to the picking:
    - Unlock it
    - change the done qty from 2 to 3
    - Lock the picking

Problem:
The quantity on the new SVL is not converted to the default UoM set on
the product.

In the write function of `stock.move.line` we calculate the difference
between the old and the new qty (3 - 2), then, the
`_create_correction_svl` is called:
https://github.com/odoo/odoo/blob/15.0/addons/stock_account/models/stock_move_line.py#L45-L48

without converting the diff qty into the product uom,
The `_create_out_svl` function is called with the `forced_quantity`
parameter:
https://github.com/odoo/odoo/blob/15.0/addons/stock_account/models/stock_move_line.py#L66
As it is a forced quantity, it will not convert it:
https://github.com/odoo/odoo/blob/14.0/addons/stock_account/models/stock_move.py#L188

Solution:
Convert diff qty in the `_create_correction_svl`, to avoid converting it
in every function it may call

opw-3041279

closes odoo/odoo#104371

X-original-commit: 30aaa668c46f899ed05dee2b6d2f810aa1e6e2e4
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
2022-10-28 09:17:45 +02:00
Pedro Manuel Calheiros Lima de Sousa (peso) 54130986ac [FIX] l10n_fi: "brutto" taxes not included in price
Description is the label on invoice : tax rate is enough.
Align Finland on Odoo's new taxonomy, already available in BE
G = Goods, S = Services, IG = Investment Goods
Less active taxes for a smoother onboarding

Steps to reproduce:

  - Install finish Finnish Localization(l10n_fi) module,Accounting
  - Verify accounting taxes (brutto: 24%|14%|10%)
   price_include checkbox is deselected

Issue:

  Price_include field set to False

Cause:

  Field in locale template view not defined, model defaults to False

Solution:

  Field defined in tax template data and set to True for locale

opw-2992952

closes odoo/odoo#104356

X-original-commit: b67ea341d0d1967428d6e1469e194b7c976029f2
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-28 09:17:43 +02:00
Sébastien Geelen (sge) aeb4b57f85 [FIX] web_editor: dynamic placeholder bug
The dynamic placeholder result was not added in the
editable dom in some situation. When the editor was
in rollback mode `true` after a `commitChange`
( maybe because of a `_toInline` called) the result
of the dynamic placeholder was rollback.

task-3044924

closes odoo/odoo#104343

X-original-commit: e9bd4f020ff4a5dd4240fde9caef0bded9a2e28c
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>
2022-10-28 09:17:40 +02:00
Laurent Smet 01eb39194f [FIX] l10n_id_efaktur: Fix 'is_downpayment' method doesn't exist on account.move.line
closes odoo/odoo#104389

X-original-commit: 800f0d395cbd7d36a5551d1b7118efad272eee72
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-28 08:22:57 +02:00
Laurent Smet 4a508afab9 [FIX] spreadsheet_account: Fix test to be independent of demo data
The current test is based on demo data making the file red on runbot for nightly build when a localization is installed.
In order to deal with localizations, all tests must implement the accounting AccountTestInvoicingCommon class.

X-original-commit: 05509e63a7061e56b67015270d20f0c7089bdb6f
Part-of: odoo/odoo#104389
2022-10-28 08:22:57 +02:00
Nicolas (vin) 6bc685def1 [FIX] l10n_gcc_pos: avoid traceback if company has no country
There is a check done during the receipt generation in the pos that
checks the country code of the company, assuming it is set. But it
is possible to have a company without a country set so we need to handle
this use case.

X-original-commit: 19849c61f0f8b1cb3ddc588885953158482a079f
Part-of: odoo/odoo#104389
2022-10-28 08:22:56 +02:00
Laurent Smet 6f92ff5e00 [FIX] website_sale: Make test files working with l10n overrides
The current test is based on demo data making the file red on runbot for nightly build when a localization is installed.
In order to deal with localizations, all tests must implement the accounting AccountTestInvoicingCommon class.

X-original-commit: 3611aaf0983b3d25822022ebeddd781f6d082bf7
Part-of: odoo/odoo#104389
2022-10-28 08:22:56 +02:00
Laurent Smet df0a827269 [FIX] account: Fix account tour failing in latam countries
X-original-commit: 2a8d41a156c02f513c6756979f250dbbed2e3b7c
Part-of: odoo/odoo#104389
2022-10-28 08:22:56 +02:00
Laurent Smet 154622af07 [FIX] account: Fix groups in account.move form
When having only invoicing but being in multi-currency, the journal is not visible but "in USD" is displayed.

X-original-commit: e813b559121792f03f555b1126f5627570913b96
Part-of: odoo/odoo#104389
2022-10-28 08:22:56 +02:00
niyasraphy 2914b42768 [FIX] survey: fields alignment in participations form
closes odoo/odoo#104393

X-original-commit: 88936cfa26c5e99672099fc4475563ff5f1b9b72
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2022-10-28 00:50:54 +02:00
Zelong Lin 0f67c6a886 [FIX] mail: notification display bug
task-2990307

closes odoo/odoo#104390

X-original-commit: a500ce3785dd2facfe934b022ebe5d21239f3e4f
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-28 00:50:49 +02:00
Pratik Awasthi 1103c93271 [FIX] project: fix description field size in form view of task
Before this commit, while creating/editing a task, the
description field height is not increase to  use the remaining
space until the bottom screen in the project task form view.

This commit uses `FormRendererWithHtmlExpander` component as
renderer for that form view (as it is the case for the project
and project update form view to increase the description field)
and override `htmlFieldQuerySelector` getter to select the
right tag containing the description field.

task-2987387

closes odoo/odoo#104259

X-original-commit: b4873875cb687c7d09474dee146274cda1cb910a
Related: odoo/enterprise#33297
Signed-off-by: Xavier <xbo@odoo.com>
2022-10-28 00:50:40 +02:00
Pratik Awasthi a95a848e06 [FIX] hr_timesheet: fix traceback on task search in portal view
Before this commit, when the portal user is in `/my/tasks` route
and he remove the groupby and search a certain task name and no
task is found with his search, a traceback is occurred saying `task`
is not found to be able to evaluate the following lines:
```xml
                <t t-set="timesheet_ids" t-value="task.sudo().timesheet_ids"/>
                <t t-set="is_uom_day" t-value="timesheet_ids._is_timesheet_encode_uom_day()"/>```
in the portal template.

This commit fixes the issue by changing the xpath to be sure the task
variable is defined before evaluating task.sudo().timesheet_ids.
Moreover, this commit checks if there is any task in tasks before
displaying tbody to avoid having any scrollbar for nothing.

task-2987387

X-original-commit: 9d0b770aebaf3c9c08352bf11fb9fdf2a36f1523
Part-of: odoo/odoo#104259
2022-10-28 00:50:40 +02:00
Sébastien Theys 63e0ef8d01 [FIX] mail: fix race condition in mail tour
If the check for messaging happens after switching from channel to starred
(where there is no composer) it would crash when using `this`.

closes odoo/odoo#104392

X-original-commit: d3091762cc5769ed13b5a828769bcd03f440a8f8
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-27 20:53:44 +02:00
Alexandre Kühn aea67604b4 [FIX] mail: do not crash when scrolling on message list
closes odoo/odoo#104351

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-10-27 18:43:23 +02:00
Pierre Rousseau 3aca42ab26 [IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/1f8e5fac [FIX] spreadsheet: deactivate keystroke inputs in dashboard mode
https://github.com/odoo/o-spreadsheet/commit/085c09b8 [REF] spreadsheet: remove local model
https://github.com/odoo/o-spreadsheet/commit/8dbb54ad [REF] spreadsheet_test: use model from helper
https://github.com/odoo/o-spreadsheet/commit/80fb9292 [REF] tests: mountSpreadsheet returns model
https://github.com/odoo/o-spreadsheet/commit/4bc9edd7 [REM] grid: remove ctrl+s shortcut
https://github.com/odoo/o-spreadsheet/commit/0673bc44 [IMP] spreadsheet: remove useless props
https://github.com/odoo/o-spreadsheet/commit/4e75de52 [IMP] *: add props validation
https://github.com/odoo/o-spreadsheet/commit/f78681ea [REM] tests: remove scroll bars mock
https://github.com/odoo/o-spreadsheet/commit/505e942b [FIX] sheetview: resize viewport when font size changes
https://github.com/odoo/o-spreadsheet/commit/c3997be9 [FIX] data filters: traceback at sheet duplication
https://github.com/odoo/o-spreadsheet/commit/0b35536e [FIX] filters: show rows when filter table is removed
https://github.com/odoo/o-spreadsheet/commit/3a897a36 [IMP] cell: Remove useless uuid generation for performance
https://github.com/odoo/o-spreadsheet/commit/d9d8a6fb [FIX] topbar: dropdown closing when clicking inside
https://github.com/odoo/o-spreadsheet/commit/29225920 [FIX] readme: cannot extend excel import

closes odoo/odoo#104274

Related: odoo/enterprise#33312
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
2022-10-27 18:43:14 +02:00
Victor Feyens 43c559b88c [IMP] sale: docstrings improvements/fixes
closes odoo/odoo#104115

X-original-commit: 7018ea22fedf75c16926c19e85b84dd82c23ab1b
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-27 18:43:08 +02:00
Dossogne Bertrand ded28245e1 [FIX] hr_recruitment{,_skills} : employee creation fix
If an applicant goes through the salary configurator
to create his contract, the employee created will not get
the associated sign requests nor the skills as it is working
now when creating an employee from the "create employee"
button on the applicant page.
Also fixes:
- a traceback obtained on the salary configurator
when having hr_contract_salary installed and
not hr_work_entry_contract
- a traceback obtained while trying to access an applicant
form while in debug mode

task-3002185

closes odoo/odoo#104320

X-original-commit: 20d5de3490baaab62715fe0f4f2a9a48dc248d55
Related: odoo/enterprise#33332
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-27 16:44:13 +02:00
Dylan Kiss (dyki) c6eea1abe0 [FIX] account: rename analytic filter
closes odoo/odoo#104311

X-original-commit: 65977e432a7421fd46a15f12d1688ea7c92ee783
Related: odoo/enterprise#33324
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-27 15:41:32 +02:00
svs-odoo b3b89745f6 [FIX] stock: apply all returning a wizard
When using the "Apply All" button to make inventory adjustments, a
wizard is opened to choose a name. Then, this wizard calls the quant's
`action_apply_inventory` method but doesn't return it.
But sometime, this method doesn't apply immediately the inventory but
ask for confirmation before (e.g.: trying to "Apply All" with quants for
tracked product but without lot/serial number).
In these cases, the "Apply All" does nothing.

closes odoo/odoo#104307

X-original-commit: e555333cf3ca2511df55105a027ca52e55c13774
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2022-10-27 15:41:26 +02:00