Commit Graph
144094 Commits
Author SHA1 Message Date
Benjamin Vray e171fe2dbb [IMP] website_sale: add small improvements on shop pages
- Remove the class "text-uppercase" from "add to cart" and "buy now"
buttons.
- Increase font size of the product page breadcrumb.
- Rename "Default" into "Featured" in the sort by of the shop page.
- Add a scrollbar on the cart popover.

task-2574300

PR-73234
2021-08-03 14:10:58 +00:00
Benjamin Vray 6aaf9b6c0e [IMP] website_sale: increase cart quantity after animation
After this commit, the cart quantity (in the navbar) increase after
the animation instead of before the animation.

We also changed the animation of the cart quantity to have a small
zoom when the number changes instead of an hide followed by a fade in.

task-2574300

PR-73234
2021-08-03 14:10:58 +00:00
Louis Wicket (wil) 39cb65f79a [IMP] core: enable top level await in odoo modules
Transpile odoo-modules into async function rather than simple functions.
The aim of this change is to support top-level await.

closes odoo/odoo#74629

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-08-03 13:12:37 +00:00
qsm-odoo 5c21086d58 [FIX] web_editor: do missing update of .pot file for transform button
This was forgotten when merging https://github.com/odoo/odoo/pull/71847

closes odoo/odoo#74616

X-original-commit: 4943a306cdb2c3f0fe696d8eb60e8624dbe5b171
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-03 10:15:42 +00:00
Nicolas Bayet 112aad4863 [FW][FIX] web_editor: correct delete forward and backward on non editable
Trying to delete forward a non editable was erasing the first
character of the non editable.
Trying to delete backward one character after the contenteditable false
made the cursor jump before the contenteditable.

closes odoo/odoo#74623

X-original-commit: 9b7d9ad3771579ccb60a1be526f5d7571f64e638
Signed-off-by: Antoine Guenet <Zinston@users.noreply.github.com>
2021-08-03 11:32:49 +00:00
Nicolas Bayet b006e7e8c3 [FW][REF] web_editor: refactor traversal functions for clarity
The generator was quite confusing and also
did not provide enough flexibility for when to
stop traversing and under which condition it is
going down the tree.

This refactor was necessary for a future commit
that require to use the new parameters `isNodeDescendantTraversable`
and `stopFunction`.

X-original-commit: c8d44120b49ac967ac12f3715bdaf83cdff3c4c6
2021-08-03 11:32:49 +00:00
Nasreddin Boulif (bon) 2ee1f7798a [FIX] hr_expense: don't submit expense report on creation
Steps to reproduce:

  - Install Expenses module
  - Go to Expenses (list view)
  - Select multiple expense in `To Submit` stage
  - Click on Action -> Create report

Issue:

  Report is directly in Submitted stage.

Cause:

  Submitting report on creation.

Solution:

  Do not set 'sumbit' satge on report creation.

opw-2586184

closes odoo/odoo#74615

X-original-commit: 7cb6cfad0dc8254c3668f6d3c5a0be1a85051ab3
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2021-08-03 10:15:20 +00:00
Simon Genin (ges) 888ff78c20 [REV] web: display issue with x2many list
This reverts commit 3190bbe8be9685bc936d92b9840d567be120b85c.

It introduced a bigger problem where the m2m table would have a width
of 0 and not be visible when switching page in the notebooks.

closes odoo/odoo#74619

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-08-03 10:58:25 +00:00
william-andre 4c9f669bb4 [FIX] account: post_install_l10n for test tour
This tests should be part of the basic l10n test to ensure that the UI
is valid and can be opened.

closes odoo/odoo#74605

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2021-08-03 08:36:49 +00:00
Romain Derie d6d83a0142 [IMP] test_website: add tests for image upload progress bar
Progress bar on image upload was introduced with #65828 in saas-14.3.

Since, it has been broken in saas-14.3 with 3765ac1 which broke the flow for
image unrecognized by PIL, see the other commit of this PR.

It was also completely broken in master (saas-14.5) with the wowl refactoring,
where no progress bar were shown at all. It would show empty toastr.
This was fixed with #74027

This commit introduces a complete testing suite for that progress bar:
  - Single image upload
  - Multi image upload
  - Success upload
  - Unsupported error
  - Unrecognized error

task-2607393
Closes #74122

closes odoo/odoo#74454

X-original-commit: 381d432faf8d19e71ff1d63c29a14064a6d7f57f
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-08-02 13:57:41 +00:00
Romain Derie 0deff5e675 [FIX] web_editor: fix unrecognized image upload
Since 3765ac1f1f16, uploading an image not recognized as such by PIL would not
behaves as it should.

Step to reproduce:
  - Enter edit mode, drag & drop a snippet with an image
  - Double click on the image to open media dialog
  - Upload a local image of type `.webp`
  - 2 toaster are shown:
    1. A progress bar toaster with a generic message "File could not be saved"
    2. A generic warning toaster on top of the previous one with the correct
       error message "[..] format is not supported. Try with: .gif [..]"

Instead, only the progress bar toaster should be shown, and the error message
should be displayed in it.

task-2607393
Closes #74122

X-original-commit: c143e7d27ce25c88854fc3c2980f399add848cb3
2021-07-30 14:21:57 +00:00
Bruno Boi b0b7469622 [FIX] web: home_menu navigation conflict
BEFORE: e.g. navigating with arrows in a dropdown menu when the home menu is showed conflicts (focused item changes in the same time in the dropdown and in the home menu)

AFTER: the home menu will not receive keydown events that are stopped by the hotkey service.

Taskid-2578926

closes odoo/odoo#73130

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-08-03 08:51:36 +00:00
Bruno Boi 3b73095302 [IMP] web: new dropdown design and keynav
As the dropdowns have been reworked in the new webclient framework, here
is an improved version of this preliminary design.

Implemented specs:
- nested dropdowns open themselves horizontally (at right by default)
- keyboard navigation is fully adapted to this new design
  - up/down focus previous/next item in opened menu
  - tab/shift+tab focus next/previous item in opened menu
  - home/end focus first/last item in opened menu
  - right/left open/close a sub dropdown
  - enter selects the focused item
  - escape closes the current dropdown
- add "loop" behaviour for keeping pressed down arrowup and arrowdown keys

Taskid-2578926
2021-08-03 08:51:36 +00:00
Bruno Boi 67b1fdcd39 [IMP] web: introduce position hook
This commit encapsulates the positioning logic of the Popover component
into a reusable hook. It also improves this logic by adding more
positioning directions and functionalities.

Before:
- only 4 directions (top, bottom, right, left : all middle aligned)
- the whole window viewport serves as a direction toggler

Now:
- 12 positions are available and are composed by 4 directions and 3
  variants: {top,bottom,right,left}-{start,middle,end}
- the positioned element container is configurable. Default: window

Description:
When you use this hook, you make sure that your `popper` element (the
one you would like to position) is always placed at the given `position`
from the `reference` element. If positioning it so the `popper` element
is clipped off the `container` element, sensible fallback positions are
tried. If none is fully visible without being clipped off `container`,
the original position is used.

Usage:
usePosition(
    reference, // [mandatory] HTMLElement or function giving HTMLElement
    options // [optional] configure behaviour through options object
)

Options:
- popper (string): a t-ref reference. If none, component.el is used
- container (HTMLElement)
- margin (number)
- position (string): {top,bottom,right,left}-{start,middle,end}

Taskid-2578926
2021-08-03 08:51:36 +00:00
Bruno Boi 9eed0d4b34 [DOC] web: wrong typing for scrollTo util 2021-08-03 08:51:36 +00:00
Jacky (trj) 563071cc6b [IMP]: point_of_sale: enable margin on orders
Margin has been added to both Order and OrderLine allowing the user to have a better view on his profitability. Margin also has been added to the order report as a measure.

Related task id: 2455794

closes odoo/odoo#66689

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-03 09:14:04 +00:00
Kevin Baptiste 56559941b5 [FIX] hr_contract: make timezone clickable again
The `tz` field was no longer clickable on the employee form
because the warning tooltip was getting the click event even
though it was not visible.

closes odoo/odoo#74600

Taskid: 2591003
X-original-commit: 630b4db8a2f0a0faf2dd2230c76d9dc682a9bacb
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-08-03 08:01:44 +00:00
Samuel Degueldre 6100d8014e [FIX] web: order items by sequence globally instead of by category
Before this commit, all items from the same category were grouped
together because we were sorting items within categories rather than
sorting all items after getting them from the various categories.

closes odoo/odoo#74598

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-08-03 08:00:55 +00:00
Jacky (trj) 629a4f34ea [IMP] point_of_sale: Added customer_note on order lines
In some use cases, the seller in point of sale needs to add a note on an
order line that has to be displayed on the receipt. So we've added a
field on the order line to set a note.

The note is also set on the invoice if the order is invoiced.

closes odoo/odoo#71598

Task-id: 2556994
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-03 06:16:37 +00:00
Antoine Vandevenne (anv) 91d4c3cc40 [FIX] payment_authorize: confirm refunded validation transactions
As validation transactions are authorized rather than captured, they are
refunded with a void request. Before this commit, a voided validation
transaction was mistakenly flagged as canceled while it should have been
confirmed.

This commit makes the distinction between a voided regular transaction
and a validation transaction.

task-2612977

closes odoo/odoo#74581

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-02 14:28:18 +00:00
JordiMForgeFlow f8aeb414ef [FIX] sale: pass invoice origin as string instead of list
Currently, the default invoice origin for the sale action_view_invoice
is being passed as a list by using the mapped method. This causes that,
when an invoice is created from this view, the origin is set to ['SOXXXXX'].

With the fix, we properly pass the origin as a string so the origin is set
as SOXXXXX, which should be the expected. Notice also that the context is
only passed when dealing with a single SO.

closes odoo/odoo#74579

X-original-commit: 3ad1310eb88581333bb8ccb28b859abcbadabe42
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-08-02 14:25:41 +00:00
Nasreddin Boulif (bon) 9c131562a8 [FIX] point_of_sale: Parse quantity like a float
Steps to reproduce:

  - Install "Point of sale" and "l10n_fr" modules
  - Switch to french Company
  - Go to user preference and change language to "French"
  - Create a new POS with french certification installed
  - Run the POS
  - Try to change quantity of a product

Issue:

  Impossible to encode a quantity with decimals (add a line at 0 instead)

Cause:

  The popup return value is a string.
  The value is used before coverting it to float.

Solution:

  Parse quantity value like a float before using it.

opw-2608707

closes odoo/odoo#74578

X-original-commit: 6a265e2c334b55ad796c015a072d0c1b0be738b5
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2021-08-02 14:13:09 +00:00
Josse Colpaert 18a188d1a8 [FIX] l10n_it_edi: relax constraint when you put an empty string
Even in the interface, when we empty a string, the value
in the database is '' and not NULL.  So, we should let the user
put the field to '' again.  (as it is not required)

This will require un update, but otherwise, it just relaxes
the constraint.

closes odoo/odoo#74572

X-original-commit: bc64805e27c9f31f446680aa2398affb945ffd83
Signed-off-by: William André (wan) <wan@odoo.com>
2021-08-02 13:15:41 +00:00
John (jol) 5d7574fa26 [FIX] account: fix fiscal position with delivery address
The goal is to take into consideration that in case the TAX ID
is issued by the same member state as the vendor's,
then VAT charge is not reversed.

The VAT ID must be foreign as from the vendor's point of view.

closes odoo/odoo#74566

Task: 2596204
X-original-commit: c92ebc91e261827dfafa602eae5408de2a072609
Signed-off-by: William André (wan) <wan@odoo.com>
2021-08-02 12:28:47 +00:00
Nicolas Lempereur 7ea7e79541 [FIX] website: special character ok in menu label
Edit a website menu label with:

    & < > " ` '

This is what is shown after saving:

   &amp; &lt; &gt; &quot; &#x60; &#x27;

This is happening since ea4dbcd240: characters &, <, >, ", `, and ' are
now always escaped. Before that commit, only < and > where escaped and
only when an image was inside the label.

With this change, we unescape the label when we are editing a menu.

opw-2609413

closes odoo/odoo#74558

X-original-commit: ab77054987287444c5f6141b047a63bab4b67baa
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-08-02 11:35:51 +00:00
Antoine Vandevenne (anv) b0874bc234 [FIX] payment_authorize: flag tokens as verified
task-2612977

closes odoo/odoo#74568

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-02 12:38:29 +00:00
Guillaume (guva) bc065bda55 [FIX] point_of_sale : enable translated terms
Step to reproduce:

- Change the language to any language other than english
- Go to PoS and open a session
- Click on "Client" and select a client
- The button 'Select Customer', 'Deselect Customer' and 'Change Customer'
  are not translated.

Cause of the issue

- The term 'Change Customer' was missing in pos.pot
- Translation was not enabled in JS file

This fix complete the one "done" in commit 00e177b

opw-2596436

closes odoo/odoo#74565

X-original-commit: da5b236f7375d35309a59d8e548309d5381a81cb
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-02 12:27:36 +00:00
Víctor Martínez 045ed49d15 [IMP] delivery: Hook allowing to retrieve dict to be used in _get_price_from_picking() function.
Hook to be overridden when we need to add some field to product and use it in variable factor from price rules.

closes odoo/odoo#74561

X-original-commit: 6ec768d084da6bd7344c45750a2a5037ec366143
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-08-02 12:09:43 +00:00
Pierre Masereel 8610a4bf38 [REF] point_of_sale: create template for receipt order lines
We are getting the order lines out of the main receipt template, to be
able to override it the sweden localissation module, and so having lines
separated depending on the type of products.

closes odoo/odoo#74554

Related: odoo/enterprise#20004
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-02 11:23:17 +00:00
Ivan Yelizariev 7ae05faf59 [FIX] web: report controller: use context lang
lang from context arg was ignored for 7 years [1], but it's not needed anymore.
At least, this leads to unexpected result in iframe report (e.g. forecasted
report), which would have an ugly fix [2] otherwise

[1] https://github.com/odoo/odoo/commit/fc8592adf2f26bf35007d6cc625fb2005cd65b5d
[2] https://github.com/odoo/odoo/pull/71539

closes odoo/odoo#72911

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-06-29 10:42:33 +00:00
Antoine Vandevenne (anv) 023e2e636c [FIX] payment_stripe: never assign one currency unit to validation txs
Before this commit, the payment function `_get_validation_amount` was
overridden by Stripe to specify a validation amount of one currency unit
while that amount was in fact never passed to Stripe in the validation
flow. The amount stored on the transaction was therefore incorrect.

This commits removes the override to let the default amount of 0 being
set on validation transactions.

task-2612977

closes odoo/odoo#74543

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-02 11:48:21 +00:00
Antoine Vandevenne (anv) 4f744fddc7 [FIX] payment_stripe: always answer with empty string to webhook events
Prior to this commit, not all operations of the Stripe webhook were
encapsulated in a try/except clause. If a `ValidationError` was raised
outside of that clause, it was returned as-is to Stripe.

This commit encapsulates the whole webhook event processing with a
try/except clause to make sure that only an empty string is returned to
Stripe, hence properly acknowledging events.

task-2612977
2021-08-02 08:32:41 +00:00
Aaron Bohy ff6e89052d [REF] web,*: regroup custom hooks in core/utils/hooks
*base_automation,iap,im_livechat,point_of_sale

This commit introduces a new file in core/utils: hooks.js
This file contains custom hooks (useEffect, useService, useBus...).

The useHotkey hook is tightly related to hotkeys, so it has been
moved to core/hotkeys.

closes odoo/odoo#74535

Related: odoo/enterprise#20003
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2021-08-02 11:13:52 +00:00
Samuel Degueldre 5ffdd92034 [FIX] web: make polling restart correctly when server is killed
Previously, when killing the server, the longpolling bus stopped but
didn't start polling again after a few seconds, this was caused by the
fact that ConnectionLostError wasn't treated like a legacy error and
remapped to an object with a message, meaning it didn't trigger
guardedCatch callbacks.

Since ConnectionLostErrors should be handled much the same way as
RPCError when interacting with legacy code this commit simply adds
ConnectionLostError in the same places we already have RPCError during
error handling of legacy errors, but delegates behaviour to the new
lostConnectionHandler when appropriate.

closes odoo/odoo#74530

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2021-08-02 11:45:55 +00:00
OdooJeel 810db9794c [CLA] signature for jeelkhanpara
closes odoo/odoo#74531

X-original-commit: bd2d72c0a82d51652fa4b43447ade305843a4ef8
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-02 07:53:17 +00:00
Swapnesh Shah d7b9363361 [IMP] purchase: allow to change price if not invoiced
Steps to reproduce:

- Create Bill from Purchase order
- Raise Refund for the Same Bill

Current Behavior before commit:

Field Unit Price is readonly in PO line as invoice is already created.

Expected behavior:

Price should be editable as Qty Invoiced is Zero after Refund.

With this commit, Price unit will be readonly based on `qty_invoiced`

closes odoo/odoo#74526

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-07-31 12:54:20 +00:00
Andrea Grazioso (agr-odoo) 410efa6012 [FIX] product_email_template: avoid traceback when referring to "object"
1. Activate 'Deliver Content by Email' in the Sales>Configuration>Settings
2. Create a mail template with Product Template for 'Applies to' and
a dynamic field (e.g. ${object.company_id.name}) in the body
3. Add this mail template on a [DEMO] product 'Automatic Email at
Invoice' field, in the Sales tab
4. Create an invoice with [DEMO], confirm it.
5. If the ID of the invoice does not exist as a product.product, you get a
traceback

The reason is that the model used for the template rendering is the
one specified on the template, but the res_id given to the composer
is the one from the invoice.

opw-2476169

closes odoo/odoo#74519

X-original-commit: 67bdd9cada7b06bc73d7bebedb7f10547e425055
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2021-07-30 18:30:32 +00:00
desdelinux b201ac6649 [IMP] l10n_pe: New identification types requested by the SUNAT
By Sunat regulations from 08/01/2021 two new types of identity documents
will be accepted: Temporary Residence Permit and Safe Passage.

Legal ref:

Website: https://cpe.sunat.gob.pe/node/88
Document with Catalog Update No. 8:
https://cpe.sunat.gob.pe/sites/default/files/inline-files/AjustesValidacionesCPEv20210727%20%28ultimo%29.xlsx

Replaces #74342

closes odoo/odoo#74506

X-original-commit: d7a701910520c22d963e21e3a9cc6d4122ead003
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-07-30 14:15:43 +00:00
Antoine Vandevenne (anv) e9ee1d2cb4 [REM] payment_ogone: remove unused Flexcheckout views
Commit 3d90d02 removed the integration with the Flexcheckout API but the
dedicated views were left behind, as it was not possible to remove them
in stable version.

This commit removes the unused views in master.

task-2494916

closes odoo/odoo#74505

Related: odoo/upgrade#2699
Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-07-30 14:11:54 +00:00
Laurent Smet 17b42902ae [IMP] account: Remove 'Take money in/out' button
closes odoo/odoo#73708

Task: 2596069
Signed-off-by: William André (wan) <wan@odoo.com>
2021-07-14 12:13:13 +00:00
Ahmad Khan 71f0779d75 [CLA] signature for aims-khan
closes odoo/odoo#74470

X-original-commit: d3508a9ec22f8775e0f1df36455526df0e3b9350
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-07-29 18:18:03 +00:00
odoomates ba27bb3a3f [CLA] Odoo Mates
closes odoo/odoo#74464

X-original-commit: 2c969004e57a7321315d4bfda8dbcf90c76b6d29
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-07-29 17:29:50 +00:00
Dishon Kadoh d5d38a149f [CLA] Dishon Kadoh
closes odoo/odoo#74463

X-original-commit: 84e2ec4011ca7d277404d862e2d547df09bbe474
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-07-29 17:28:16 +00:00
Lucas Perais (lpe) 70353a2063 [REF] web: action_service: dialog is null when absent
Before this commit, the current dialog (in the action service's state) was either an empty object
when there was no dialog, and a filled object when the dialog was present.

After this commit, when there is no dialog, the dialog state is null.

closes odoo/odoo#74442

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-08-02 07:58:09 +00:00
Lucas Perais (lpe) 83eb9f9ebd [FIX] web: action_service: onClose callback can execute history-back
Have an action in the breadcrumb (A)

Do an action (B) that has a button which spawns a dialog with a onClose callback executing an`history-back` event.
This may be useful when the action (B) acts as a selection buffer between (A) and the dialog.
(e.g. stock_barcode: execute `stock_barcode_client_action` from a picking)

Before this commit, the history-back event just closed the dialog without going back to the action (A)
This was because the wrong condition was used to determine if the dialog was still alive or not.

After this commit, the action (A) is displayed when closing the dialog from any point.
2021-08-02 07:55:52 +00:00
Habib (ayh) b0de4f7cef [IMP] account: make account move chatter log more odoo standard
Remove the custom messages and replace with the default odoo tracking message that uses tracking_value_ids as parameters
Journal Items will log all changes of tracked fields in the chatter of the associated Entry - including one2many and many2many fields (by overriding _mail_track)

references original task 2061399
closes task 2469621

closes odoo/odoo#72023

Signed-off-by: William André (wan) <wan@odoo.com>
2021-07-27 16:45:09 +00:00
Benjamin Vray 00025dd406 [FIX] web, web_editor: disable horizontal scroll when dragging snippet
This commit adds an option to disable horizontal scrolling in the
smoothScrollOnDrag feature options and use it when dragging and
dropping a snippet into the editor to prevent the wrapwrap from
scrolling horizontally when an element overflow the page (e.g. an
animated element).

task-2215118

closes odoo/odoo#74518

X-original-commit: fdbc109780f336c4b7dcac31585beaad682e029a
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-07-30 18:18:35 +00:00
Benjamin Vray da22414233 [FIX] website, *: prevent bottom fixed elements from hiding buttons
*: web, website_livechat, website_sale_comparison

Before this commit, bottom fixed elements (e.g. the livechat button)
hid the buttons to go to the next step in website sale when these
buttons are located at the bottom of the page, on some screen sizes.

After this commit,

- A bottom fixed element is hidden if this element hides a button at
the bottom of the page.

- Bottom fixed elements are hidden if a modal is open
to prevent it to hide buttons or any important part of the modal.

task-2501400

closes odoo/odoo#74515

X-original-commit: a851db9495fe9d8c1951f218a71e4d4a427cf96d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-07-30 17:24:48 +00:00
Odoo's Mergebot 0d9e21dfe7 [IMP] website: configurator organizes links in menu and footer
The configurator takes care of the organization of the links to the different
pages. Some links are put in the menu and some are put in the footer. The order
is predefined. If too many links are present in the menu then a sub-menu 'Company'
is created and some links are put in it. For the 'News' and 'Succes Stories' features
a website specific blog is created.

Links have the following order in the menu and are present only if their corresponding
website.configurator.feature has been selected in the configurator excepted for the 'Home'
and 'Contact us' links which are default links:
- 'Home'
- 'Shop'
- 'Event'
- 'Courses'
- 'Services'
- 'Pricing'
- 'Company': if more than 8 links in menu and more than 1 item in this submenu
             otherwise the three following links are in the top menu.
  - 'News'
  - 'Success Stories'
  - 'About us'
- 'Appointment'
- 'Contact us'

Links in footer:
- 'Privacy Policy'
- 'Help': if website_helpdesk installed. This is not a website.configurator.feature.
- 'Forum'

Community: https://github.com/odoo/odoo/pull/71993
Enterprise: https://github.com/odoo/enterprise/pull/18930
Upgrade: https://github.com/odoo/upgrade/pull/2682
task-2518565

closes odoo/odoo#71993

Related: odoo/enterprise#18930
Related: odoo/upgrade#2700
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-07-31 04:14:42 +02:00
Romain Derie 7329b5dc78 [ADD] test_website_modules: new website test module
The goal of this module is to be able to write tests that run and test the
`website` module business code with all the website modules installed (like
website_blog, website_sale etc).

This is, among other things, useful to test the configurator behavior.
Testing the configurator inside the `website` module would require the tour to
install modules, which is against our testing suite policy.
Such tests end up in `@standalone` testing suite, run only in nightly, meaning
anyone can break stuff without knowing. Such tests are way, way less efficient.

Community: https://github.com/odoo/odoo/pull/71993
Enterprise: https://github.com/odoo/enterprise/pull/18930

task-2518565
2021-07-30 22:03:18 +00:00