Commit Graph
155196 Commits
Author SHA1 Message Date
Samuel Degueldre 94f81ed41d [FIX] base: fix sourcemap header offset
in b1d57adf6ff3 the size of the header added to source files while
concatenating them was reduced, but the corresponding offset use when
generating source maps was not adapted, causing source maps to drift
further and further from the actual source location the further in the
compiled asset the line is.

This commit fixes that by decrementing the header offset as needed.

closes odoo/odoo#102651

X-original-commit: 4d4585ee6c905c2a3adc4692098c1a3544417629
Signed-off-by: Géry Debongnie <ged@odoo.com>
Signed-off-by: Samuel Degueldre <sad@odoo.com>
2022-10-08 11:35:14 +02:00
Sarika Shekhada 2d89f7d58d [FIX] sale_project: fix the traceback when doing action on the stat button of the project sharing view
Reason for traceback:

When an internal user clicks on the 'Sale Order', 'Invoice' or 'Ticket' state button, opens
Backend view. But the portal backend does not support chatter. So comes the traceback.
In this commit, we open the portal view.

task-2973173

closes odoo/odoo#102707

X-original-commit: 0df9b1ea93535d127475b89cc9d59ecc5e25b0aa
Related: odoo/enterprise#32538
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-08 10:41:50 +02:00
Prakash Prajapati 88887ce425 [IMP] hr_timesheet: prevent adding new timesheets to project sharing
task-2895909

closes odoo/odoo#102633

X-original-commit: 742a4444a88a65fce2d2cdd5be18ffc51b2d1961
Related: odoo/enterprise#32499
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-08 10:41:43 +02:00
Prakash Prajapati a59459ad69 [IMP] project: restrict the visibility of displayed_image_id in project_sharing
This commit prevent showing the `displayed_image_id` to non internal users.

task-2895909

X-original-commit: 6da6fc00d332b823d8694059cf80e10620b9d47d
Part-of: odoo/odoo#102633
2022-10-08 10:41:43 +02:00
Audric Onockx (auon) f95555d0e5 [FIX] hr,hr_contract,resource: allocate hours before resource creation
Steps :
- On a new DB (no demo data). Say created at 15:00. - Go to planning.
- Add a shift for today.
- Set the dates from 08:00 to 17:00.

Issue :
The 'Allocated Time' = 02:00.

Cause :
We used to count from the resource creation min to the departure max. So, in this case, not from 08:00, but from 15:00.
While this might seem logical, it confuses users in onboarding.

Fix :
Calculate the whole time, regardless of the resource lifespan.

Notes :
- Similar issues solved with this commit :
> Once the shift validated, the avatar progress bar uses
the same allocated time.
> Same in Project Task gantt view.
- When contract is installed, if the resource does not have a contract, the Allocated Time = 0. Now, it is calculated from the resource calendar.

task-2983993

closes odoo/odoo#102732

X-original-commit: 6a61d1c4c56075ade36f6f32e7a61f1f6c771a6f
Related: odoo/enterprise#32547
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-08 09:42:49 +02:00
Pierre Paridans 692b4e93ec [FIX] web: properties field matching group's alignment
This commit fixes the properties field alignment to make it more similar
to the form's group layout (using grid and its gap).

Steps to reproduce:
- Open CRM
- On a lead's form view
- Add properties
=> labels from second column aren't aligned with fields above

closes odoo/odoo#102730

X-original-commit: 5a1c14fe5761e964a2370883bf209b474e498918
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-08 09:42:47 +02:00
william-andre c803e9e231 [FIX] account: deduplicate the date string on invoice/refund PDF
Fixup of 1b80454fc26bdcf3bcfb97b37b3bd68d2982310d

closes odoo/odoo#102746

X-original-commit: d93de218effbbffd083b60dc2064bded64c311dc
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-08 08:48:49 +02:00
Bastien Fafchamps (bafa) 7fa1f1dbd0 [FIX] partner_autocomplete: lazyload jsvat.js lib
Before commit:
The `jsvat.js` library used to be lazyloaded but was added to the bundle
in the manifest during the conversion to owl and the lib was loaded at
startup every time.

After commit:
The `jsvat.js` file is lazy loaded using loadJS when the component is
first selected so the lib is only loaded when it is actually needed.

The lib is also loaded before running the tests to prevent the asynchronous
call from making the tests fail.

closes odoo/odoo#102740

X-original-commit: 07845e522fb9212126e9f206b4166040e4eea166
Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-10-08 08:48:47 +02:00
Antoine Vandevenne (anv) 0cbbe5a744 [FIX] payment_stripe: adapt a view to work without a group element
This commit replaces the `group` element containing the "Connect Stripe"
button by a `div` element to allow it to contain more elements than the
button without having the elements' `attrs` conflicting with each other.

task-2982357

closes odoo/odoo#102579

X-original-commit: f99b067dbfedca361605f0fc63c7913333950b64
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-10-08 08:48:45 +02:00
FrancoisGe 0c34d94177 [FIX] web: edit domain field with invalid value
Before this commit, editing a domain field with an invalid value
for the field type will display a parsing error.

The purpose of the commit is to reintroduce the old behaviour of the
field, it should not display an error.

How to reproduce?
- Go to a form view with a domain field (in_dialog=True)
- Click on the "Edit Domain" button
- Add a domain comparing a field of type int with "01/01/2000"

Before this commit:
 An error is displayed.

After this commit:
 The domain is applied with the wrong value.
 If the server considers the domain to be false, then "Invalid domain"
 is displayed.

closes odoo/odoo#102753

X-original-commit: 7f22512149f5d634306cf0b280d055a60ba9e356
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-08 07:51:45 +02:00
luvi 85b3d7d257 [FIX] web: open date(time) picker on label click
This commit fixes the behavior of date, datetime and daterange
fields. It was no longer possible to open the date/datetime picker
by clicking on the corresponding label, since the inputs were
missing the id attribute associated with the label.

Now, it is possible again, and hovering the label will correctly
highlight the input border of the field.

Tests have been added too, to make sure this works properly.

closes odoo/odoo#102742

X-original-commit: 0e35d2b995165cfcb50db7eaec44cce7547eb4e4
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Luca Vitali <luvi@odoo.com>
2022-10-08 07:51:43 +02:00
Simon Genin (ges) d1f7192f09 [FIX] web: basic model: field context on m2m operation
When a m2m field add a context in its arch, it's passed through to the
rpcs made to the server. In a m2m situation, while the name_search
worked properly, the read operation on a dropdown item select did not
provide this context.
This PR fixes that.

closes odoo/odoo#102741

X-original-commit: 5c7066fc064ecc175104603d524b52991678a2cd
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-08 07:51:40 +02:00
gawa-odoo 6f707dc833 [IMP] analytic: show all children accounts on plan
On the smart button where you can see the accounts of the plan,
we want to be able to see all accounts of subplans too.
We also change the order of the analytic accounts, by plan's complete name then name.

closes odoo/odoo#102717

X-original-commit: a1f886e7babd6283e01eed686e043aabe72d7dd9
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-08 06:20:12 +02:00
Thanh Dodeur e331c38ee7 [FIX] im_livechat: show the avatar of logged users
Before this commit, the author of the messages in the livechat would
only have an avatar if it was an operator. But logged users would not
have their avatar displayed.

This commit fixes this issue by fetching the avatar when possible.

taskid-3006025

closes odoo/odoo#102739

X-original-commit: 2a5c6c4bc494faecccb86e4b8ad33dab3476b363
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-08 01:53:39 +02:00
Benjamin Vray 3a488d59d4 [FIX] web_editor, website: restore style of the autocomplete dropdown
Before this commit, the autocomplete dropdown no longer had a maximum
height, which meant that when it contained a lot of elements, it hid the
entire editor panel.

Indeed, since the CSS of the menu snippet is no longer that of the
"frontend", the 'max-height' CSS rule defined for the autocomplete
dropdown in the frontend (introduced by this commit: [1]) was no longer
applied on the autocomplete dropdown of the backend.

In this commit, we therefore moved this css code of the
'ui-autocomplete' defined for the frontend into the common css file
(backend + frontend) in order to return to a situation where this code
was applied to all autocomplete dropdowns in Website. And thanks to
that, we were able to remove the css file "edit_menu.scss" which
copied/pasted the frontend 'ui-autocomplete' code for only one of the
backend 'ui-autocomplete'.

[1]: https://github.com/odoo/odoo/commit/032dd007157de00b683a9d753aa929741c107c01

task-2900529

closes odoo/odoo#102719

X-original-commit: cce26d7697c73326e0a6f2ec81e01b56b4156ad4
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-08 00:55:47 +02:00
Julien Banken 558aa9445f [IMP] web: add config to disable autofocus of the view search bar.
In Knowledge, we would like to disable the autofocus of the view search
bar when the view is embedded in an article. Disableling the autofocus
will ensure that:

1) The cursor of the user will not be teleported to the view search bar
   when loading an embedded view.
2) The autofocus will not trigger a page scroll when the view search bar
   is not visible on screen.

To disable the autofocus, we will simply add a new key in the default
configuration of the view. By default, the autofocus of the view search
bar will be active as it was the case before.

task-3004117

closes odoo/odoo#102724

X-original-commit: 1e9de9787613acb1066171568c5beb774235eea6
Related: odoo/enterprise#32543
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-07 23:59:29 +02:00
maximilien(malb) 7bd748077a [FIX] account: bills view
The pencil for the edit of the tax present in the tax total widget was too close of the amount, by adding a padding it's now corrected

closes odoo/odoo#102710

X-original-commit: 076438d71d9f9c11c84e1086e4a29b01aabab399
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-10-07 23:08:02 +02:00
Florian Charlier b2471e4264 [FIX] event_crm: fix lead generation rules on form
Purpose: fix domain widget rendering that was broken inside a group
with nolabel="1".

Task-

closes odoo/odoo#102722

X-original-commit: 7d8c1bc64a0accc2e875cd336d2800514973c5c6
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-07 21:43:23 +02:00
Rémi Rahir c822f4778f [FIX] spreadsheet: faulty logic in filters dependencies
The global filters had to be aware of every type of datasources that it
affected (i.e. pivots, lists and charts). This commit introduces the
possibility for any datasource to register its type in an object handled
by the filters, making the latter agnostic of the different possible
kinds.

Task 2992752

closes odoo/odoo#102688

X-original-commit: b7dda98dfd2ee6973e2ca09b8c8ee7e8c43032a8
Related: odoo/enterprise#32526
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-10-07 19:45:13 +02:00
Pierre Rousseau 53e9761a41 [REF] spreadsheet: rename global filters plugins
After this revision, the core and ui plugins are clearly identified.

X-original-commit: c2aea83092cda1c95ebbef423ce265451f67babe
Part-of: odoo/odoo#102688
2022-10-07 19:45:13 +02:00
Pierre Rousseau 877f190f60 [FIX] spreadsheet: fix test data
Before this revision, the fields of `partner` were not searchable, which
was not correct.
This revision fixes that.

Part of task-id 2987871

X-original-commit: 2c180660e412bd0f52da920bdf8f96b200fc3aa2
Part-of: odoo/odoo#102688
2022-10-07 19:45:12 +02:00
Pierre Rousseau 19e5870dae [IMP] web: ModelFieldSelector: allow to select a specific item
With this revision, we are now able to select a specific line item.
Useful especially in tests.

Part of task-id 2987871

X-original-commit: c8c7afc1e81c2e7de6b32de5db41d8f3d83a005c
Part-of: odoo/odoo#102688
2022-10-07 19:45:12 +02:00
Josse Colpaert 60b49869c6 [FIX] l10n_it_edi: auto-fattura coming from foreign vendors should be imported as vendor bill
Of course, for an XML that is imported or exported the type of the
invoice will be different: vendor bill for import, customer invoice
for export e.g.  But in the case of vendor bill reverse charge we create
the XML from the vendor bill, but we did not think straight about how
it should be imported.

We did not expect it to be imported, but somehow in a database it was the
case and we see it is actually corresponding to a vendor bill coming from
a foreign vendor, so it would be better as well to import it as such.  Also
those types are only needed as vendor bills/refunds in our system.  (only
support bill for the moment)

opw-2977126

closes odoo/odoo#102693

X-original-commit: 75a936eaf0202b468534add610afba8976a91b59
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
2022-10-07 18:48:26 +02:00
Xavier-Do c3c5913c9d [FIX] generate assets without active_website
The /web loading was slow during test when some themes are installed.

This is because without any context and request, the assets are
generated for website 1 before this fix.

With this default website:
_get_active_addons_list returns only addons that are not themes
_get_asset_paths will return less assets

When loading /web, no website is found because the domain is not empty.

This means that the web.assets_backend will have less assets when
generated outside of a request than in a request not matching any
website.

There is normaly no assets for the backend in theme BUT a tour is added
in each theme

('/theme_anelusia/static/src/js/tour.js', 'theme_anelusia', 'website.assets_editor')
('/theme_artists/static/src/js/tour.js', 'theme_artists', 'website.assets_editor')
('/theme_avantgarde/static/src/js/tour.js', 'theme_avantgarde', 'website.assets_editor')
('/theme_aviato/static/src/js/tour.js', 'theme_aviato', 'website.assets_editor')
('/theme_beauty/static/src/js/tour.js', 'theme_beauty', 'website.assets_editor')
('/theme_bewise/static/src/js/tour.js', 'theme_bewise', 'website.assets_editor')
('/theme_bistro/static/src/js/tour.js', 'theme_bistro', 'website.assets_editor')
('/theme_bookstore/static/src/js/tour.js', 'theme_bookstore', 'website.assets_editor')
('/theme_buzzy/static/src/js/tour.js', 'theme_buzzy', 'website.assets_editor')
('/theme_clean/static/src/js/tour.js', 'theme_clean', 'website.assets_editor')
('/theme_cobalt/static/src/js/tour.js', 'theme_cobalt', 'website.assets_editor')
('/theme_enark/static/src/js/tour.js', 'theme_enark', 'website.assets_editor')
('/theme_graphene/static/src/js/tour.js', 'theme_graphene', 'website.assets_editor')
('/theme_kea/static/src/js/tour.js', 'theme_kea', 'website.assets_editor')
('/theme_kiddo/static/src/js/tour.js', 'theme_kiddo', 'website.assets_editor')
('/theme_loftspace/static/src/js/tour.js', 'theme_loftspace', 'website.assets_editor')
('/theme_monglia/static/src/js/tour.js', 'theme_monglia', 'website.assets_editor')
('/theme_nano/static/src/js/tour.js', 'theme_nano', 'website.assets_editor')
('/theme_notes/static/src/js/tour.js', 'theme_notes', 'website.assets_editor')
('/theme_odoo_experts/static/src/js/tour.js', 'theme_odoo_experts', 'website.assets_editor')
('/theme_orchid/static/src/js/tour.js', 'theme_orchid', 'website.assets_editor')
('/theme_paptic/static/src/js/tour.js', 'theme_paptic', 'website.assets_editor')
('/theme_real_estate/static/src/js/tour.js', 'theme_real_estate', 'website.assets_editor')
('/theme_treehouse/static/src/js/tour.js', 'theme_treehouse', 'website.assets_editor')
('/theme_vehicle/static/src/js/tour.js', 'theme_vehicle', 'website.assets_editor')
('/theme_yes/static/src/js/tour.js', 'theme_yes', 'website.assets_editor')
('/theme_zap/static/src/js/tour.js', 'theme_zap', 'website.assets_editor')

Making the bundles for /web different with or without theme, and with or
without website id.

The proposed fix wont return a website if not specified in context and
if not during a request and if not forced to fallback.

The side effect is that the frontend assets where generated with a
website id 1 before that and it won't be the case anymore. This may be
a problem that could slow down frontend call on website 1 when design
theme is installed.

closes odoo/odoo#102690

X-original-commit: a5ed957b37b966bc50ed1219b6af65ed818f04a0
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-07 18:48:21 +02:00
clesgow dd9220459c [REF] stock: reception_report into WOWL
Converts the legacy reception report into WOWL.
Fixes 'Assign All' buttons disappearing from the report until it is
reloaded when clicking on them.
Removes references to 'report_type == html' from xml since it is only
used as PDF now.

Part of the global conversion of stock to WOWL.

Task-2885757

closes odoo/odoo#102687

X-original-commit: f310d8f16b57c776ad92406bd52daa707ad45a88
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
2022-10-07 18:48:13 +02:00
Antoine (anso) 106602f7e0 [REM] project : remove unused SCSS
Some SCSS is not used anymore in the module and can be removed

closes odoo/odoo#102686

X-original-commit: 38fe11aa545dcf121acbeaac4a72649461d7f89a
Related: odoo/enterprise#32524
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-10-07 18:48:08 +02:00
Antoine (anso) fa048082f2 [IMP] project : optimize SCSS
SCSS optimization of the right side panel in project module.

Remove custom SCSS and use Bootstrap classes instead.

task : 2977963

X-original-commit: 9045dfbaece4e2cef153597632fd473cbb6cdb6f
Part-of: odoo/odoo#102686
2022-10-07 18:48:08 +02:00
Romain Derie 975e8f911e [FIX] website: set db_name on MockRequest
Commit [1] broke the standalone tour of website's themes, which is run
in nightly only (sadly).
That tour was added a few months ago with [2] which was tested the fix
done by [3].

[1]: https://github.com/odoo/odoo/commit/fcf6e462e116d13533014e31d4191763354811cf
[2]: https://github.com/odoo/design-themes/commit/0e324061d1c4437ef19d07f23eaf5663cb8fe657
[3]: https://github.com/odoo/odoo/commit/bed3cd54a5c7baeab173129036246bef543eef94

closes odoo/odoo#102670

X-original-commit: 326d33f129d73ed2b703b3a7173386e99f88b4d8
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2022-10-07 17:48:09 +02:00
mafo-odoo 6ea5e18842 [FIX] stock: compute quantities for newId product
Steps to reproduce:
- Install sale_ebay,
- Some accounting localization
- Go to currencies and check the box saying it can be use with eBay
- Go to attributes and create two of them
- Create a product
- Put the attributes
- Go to the eBay tab of the product
- Put fixed price to the listing type field
- try to check one of the product variant

Current behavior:
Error:
Database fetch misses ids ((<NewId origin=3>,
<NewId origin=4>) and has extra ids ((3, 4)),
may be caused by a type incoherence in a previous
request

Expected behavior:
No error

Explanation:
In this situation the product_variant_ids are newID
and we can use only read on their origin record.

opw-2974596
are a

closes odoo/odoo#102655

X-original-commit: 7e998f225096ab03c60c1cdeffc2f17a795b37de
Signed-off-by: Tiffany Chang <tic@odoo.com>
Signed-off-by: Fockedey Martin (mafo) <mafo@odoo.com>
2022-10-07 17:48:06 +02:00
Alexandre Kühn d6fe28a5fd [FIX] mail: guard mouseover handlers
Before this commit, some mouseenter and mouseleave
handlers were prone to raising a traceback due not
being properly guarded.

closes odoo/odoo#102652

X-original-commit: f0dafec5c17b0ae0c645156a253c5d93beea7372
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-07 17:48:03 +02:00
Aaron Bohy 8540aad29f [REM] *: remove legacy views converted to owl
This commit removes legacy views that are not used anymore as they
have been converted to owl. They could actually have been removed
in the commit that converted them, as we never needed to have a
double implementation of views, unlike we need to (field) widgets.

The LazyColumnList is a special case. This view hasn't been
converted. Instead, it has been decided not to use it anymore.
So it was dead code, and this commit removes it.

The form/list/kanban views are no longer necessary in the view
registry, since their owl version exists. However, we kept them
in the test asset, as they are massively used in legacy tests
(in field tests for instance).

closes odoo/odoo#102634

X-original-commit: 186a8b31161fc8c75b346ff97f9403dca1ae677e
Related: odoo/enterprise#32501
Signed-off-by: Géry Debongnie <ged@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-10-07 17:47:58 +02:00
Vincent Larcin 49d59a20c5 [FIX] {sale_}project,hr_timesheet: fix project form CSS
This commit fixes some css issues in the "Settings" tab
of the project form view. The settings descriptions were
wrapping at half the width they were supposed to, and
the settings were misaligned compared to the sections titles.

closes odoo/odoo#102399

Enterprise: https://github.com/odoo/enterprise/pull/32359
X-original-commit: 74bd1e6af0e3410fc1a474c5f85b1dbb46ceba6e
Related: odoo/enterprise#32384
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
Signed-off-by: Larcin Vincent (vila) <vila@odoo.com>
2022-10-07 17:47:53 +02:00
Tiffany Chang (tic) 1ce47cf0ea [IMP] sale_stock: convert qty_at_date_widget to OWL
OWLified qty_at_date_widget. Implementation notes:

- old popup using jquery is obsolete so a new Popup component is used
  instead. Note that original widget updated the record data directly
  whereas we now have a separate variable to keep the props consistent
  as per good OWL practice.
- sale_stock.xml is renamed to delay_alert.xml because xml related to
  this widget was moved into a separate file whereas the remaining xml
  data is not directly called by JS but is still static and used by
  another widget eventually
- float_round in legacy implementation is a legacy util => we leave it
  off for now and maybe it will need to be fixed later

ENT PR: odoo/enterprise#32276

closes odoo/odoo#102248

X-original-commit: 73155293d503e3a9dd65898b8e1ac489e279c33c
Related: odoo/enterprise#32321
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-10-07 17:47:50 +02:00
Leonardo Pavan Rocha 7a79697089 [FIX] sale_management: post edit fix for quotation template form view
This PR adapts the form views since the merge of #100570.

task-3010032

closes odoo/odoo#102580

X-original-commit: a97077feb3cae714019c606d1b01ae12c5791bd0
Related: odoo/enterprise#32476
Signed-off-by: Arnaud Joset <arj@odoo.com>
2022-10-07 16:45:52 +02:00
maximilien(malb) bac717fd7a [FIX] account: add a bank account
The text about journal was broken, with a colspan it solves the issues

closes odoo/odoo#102294

Task-id: 3007658
X-original-commit: e7086747cebec71fffbac70433ebb1509b219921
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-10-07 16:45:47 +02:00
Panagiotis Kyriakou b7a7fb5655 [IMP] project: add "view tasks" button in project list view
In this commit we introduce a button in the project list view
which, if clicked, redirects the user to the project task
kanban, where they can see the project's tasks.

This change gives the user the posibility of directly viewing
a project's tasks from the project list view without needing
to go through the form view, thus increasing efficiency.

Task-2969697

closes odoo/odoo#99892

Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-07 16:45:42 +02:00
Rémi Rahir 3ab8b6ae81 [FIX] spreadsheet: Fix style and presentation of global filters
Fixed the style of some filters inputs (namely date filters) and
added placeholders for dashboard mode.

task 2995579

closes odoo/odoo#102604

X-original-commit: f6a661c926d3d34c9a011f2b2020a319e65754ae
Related: odoo/enterprise#32485
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2022-10-07 15:40:13 +02:00
Rob Coekaerts d359aa6954 [IMP] hr_homeworking: remove module
The current homeworking module doesn't answer the standard of quality.
For now It will be removed from the settings and app store so it is not visible
to any users. It will return after it has been reviewed and  improved.

task-2995332

closes odoo/odoo#102602

X-original-commit: b3ad588699714052b0010a599be76d1922a7ced1
Related: odoo/enterprise#32483
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-10-07 15:40:05 +02:00
Samuel Degueldre 6df381527f [FIX] web: align progressbar to the right of the field
closes odoo/odoo#102611

X-original-commit: fae1d7a3e22bb6d295ca7d0550d425a9b1af934e
Related: odoo/enterprise#32487
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-10-07 14:37:39 +02:00
Samuel Degueldre 3ca0c506ba [FIX] web: fix percentage pie field broken style
The percentage pie field was broken in enterprise, because the rules
that it needs are overwritten in enterprise but scoped to the legacy
version only.

This commit moves the community rules so that they always apply and are
not overwritten, it also removes an extra level of wrapper on the field.

X-original-commit: e3dfb1bbaa7aa2bf2bed62fb278e09c739503f4b
Part-of: odoo/odoo#102611
2022-10-07 14:37:38 +02:00
William Braeckman 461aeca9bb [FIX] website_sale: reorganize menus
TaskId-3010484

closes odoo/odoo#102610

X-original-commit: 603ac8b7ea1cadfce44317baca61f4866833ec97
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2022-10-07 14:37:33 +02:00
qsm-odoo 0f2a9e4e85 [IMP] website: make website_style_edition tour more runbot-friendly
The tour contains this part:

1. Change the font-size
2. Click on save
3. Check that edit mode was left
4. Check the font-size is ok

The problem is that step 1 induces a series of RPC and processing
(rebuilding assets, reloading them in the client, etc) but those are
not awaited before going into step 2 which also induces a RPC (the save)
which is only done once the other RPC are finished.

While we will try to optimize the duration of those RPC in the future.
Meanwhile we could simply increase to the timeout of step 3 but it seems
better to change the tour to divide the multiple things to await:

1. Change the font-size
2. Check the font-size is ok
3. Click on save
4. Check that edit mode was left
5. Check the font-size is still ok

runbot-4706

closes odoo/odoo#102609

X-original-commit: c2bc6c2f8446e98c8a4089daf048e67457be277f
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2022-10-07 14:37:30 +02:00
Romain Estievenart f0b4171873 [FIX] web: text overflow isn't ellipsis on list view
Add missing `o_list_activity_cell` class used to allow the text overflow
and a rule to applies the o-text-overflow mixin on their spans child

Steps to reproduce:

> Open the helpdesk app
> Click on VIP Support tickets
> Go to the list view
> Reduce the size of `Assigned to` or `Activities` column
  => The displayed text isn't ellipsis

closes odoo/odoo#102608

X-original-commit: fabc5350904c207bda6e7cdffbae0d7309769e89
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-07 14:37:28 +02:00
Romain Estievenart 7d50f09aea [FIX] mail: text overlap on list view
Remove no longer needed `!important` on `overflow: visible` because the
new list view doesn't have any stacking context issue. Thanks to the
`o_PopoverManager` inside the `o-main-components-container`.

Steps to reproduce:

> Open the helpdesk app
> Click on VIP Support tickets
> Go to the list view
> reduce the size of the activities column
  => it's produce text contain overlapping with the other column => bug

X-original-commit: e22abffdc230c2ae494a85fdf7fd8d6b488be3ea
Part-of: odoo/odoo#102608
2022-10-07 14:37:27 +02:00
fdardenne 91a842bde6 [FIX] web: currency field: correctly align currencies
before, currencies were not aligned properly with the input field.
now, it is properly aligned.

closes odoo/odoo#102607

X-original-commit: 4be4d11d75f6a211685d122b6e1f2b97476c5416
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
Signed-off-by: Dardenne Florent (dafl) <dafl@odoo.com>
2022-10-07 14:37:24 +02:00
fdardenne c872b9d448 [FIX] web: currency field: always display currency to the left
X-original-commit: e57521e059f318cfbd6d4af1b693013250f6874d
Part-of: odoo/odoo#102607
2022-10-07 14:37:24 +02:00
Sébastien Geelen (sge) 99ff8c79aa [FIX] web_editor : dynamicPlaceholder in mail template
Allow the mail templates to activate the dynamic placeholder
like in mass_mailing.

task-2978722

closes odoo/odoo#102603

X-original-commit: f98c472a6d3cd79c28b7b91bdc8359c45c4d3c7a
Related: odoo/enterprise#32484
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>
2022-10-07 14:37:21 +02:00
Sébastien Geelen (sge) efd4a3f7c2 [FIX] web_editor: fix wysiwyg focus
Ensure the wysiwyg.js focus() method will actually
restore the cursor in the latest selection inside the editor.

X-original-commit: 54877ecd8bf2454a7023e74aa739921e1468dad8
Part-of: odoo/odoo#102603
2022-10-07 14:37:21 +02:00
Sébastien Geelen (sge) e483ae5fb4 [FIX] web,web_editor,mail : Fix ModelFieldSelector and DynamicPlaceholder
Add missing feature of the ModelFieldSelector popover :
* keyboard navigation
* additional debug value
* add default value page ( for dynamic placeholder)
* add validate callback

Migrate dynamic placeholder to be compatible with new OWL field.

task-2978722

X-original-commit: 929108e29168058fad5da85e0ff9c66d2c5b2525
Part-of: odoo/odoo#102603
2022-10-07 14:37:20 +02:00
Antoine Dupuis 5a09449ddc [FIX] tools: fix filename resolution in XSD imports
With PRs odoo/89145 and enterprise/26393 came new methods for
retrieving XSD files and using them for XML validation.

The new retrieval method expects modules to provide a 'prefix' that
is prepended to the XSD's filename. For example, l10n_cl_edi will
name its XSD files 'l10n_cl_edi.<filename>.xsd'.

However, this messes things up when one XSD file needs to import
another. For example, l10n_cl_edi.DTE_v10.xsd has the statement
'<xs:include schemaLocation="SiiTypes_v10.xsd"/>'

Currently, the filename resolver has no way of knowing that this
should resolve to 'l10n_cl_edi.SiiTypes_v10.xsd', not
'SiiTypes_v10.xsd'.

In addition, the new retrieval method saves the ZIP archives
received over the network under the '<filename.xsd>'. Thus
'SiiTypes_v10.xsd' might actually be a ZIP-encoded file.

So, we need to do something to fix the imports.
Here are two possible solutions:
1. We scrap this 'prefix' stuff and either save the ZIP files under
   a different name, or we just don't save them.
2. Or, we provide a mechanism for indicating a prefix to the filename
   resolver.

Personally, I don't see the point in saving the ZIP files, and this
'prefix' stuff seems pointless. So I prefer solution 1.

But, because I assume there must be a reason to all of that 'prefix'
stuff, here is an implementation of solution 2.

I'd be keen to know the reason, btw.

EDIT:
In addition to the first issue described above, we have the second
issue that some XSD files returned by the Chilean SII are encoded
using ISO-8859-1 encoding (e.g. SiiTypes_v10.xsd). If we leave them
in this encoding, then LXML isn't able to parse them when performing
imports.

closes odoo/odoo#102601

Solution: convert the files to UTF-8 before storing them.
X-original-commit: 75555df56475b457331938453657c1f73d231e33
Related: odoo/enterprise#32482
Signed-off-by: Josse Colpaert <jco@odoo.com>
2022-10-07 14:37:14 +02:00