Commit Graph
137925 Commits
Author SHA1 Message Date
Pierre Paridans 334bb2d8ef [IMP] website_event_track_online: PWA adds prefetch for offline use
This commit adds the prefetch of the current page's children (cf. under
the same scope) to be available for offline use.

For performance reason, only the first-level children are added to the
cache to avoid a huge amount of requests and/or resources used by simply
loading the event website's pages. Also, for the same reason, this
process is delegated to the ServiceWorker to avoid cluttering the Main
Thread.

Note: due to some security restriction introduced in the Fetch spec,
some redirects may prevent offline-requests from being properly
fulfilled from the cache. See references for further details.

References:
- https://github.com/whatwg/fetch/issues/763
- https://github.com/GoogleChromeLabs/sw-precache/issues/220
- https://fetch.spec.whatwg.org/#concept-request-redirect-mode

closes odoo/odoo#56159

X-original-commit: bc9a306bc8b373daeaaf593ed0a0e6bc944279b8
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-08-19 15:19:11 +00:00
Pierre Paridans d1779ff5f7 [FIX] website_event_track_online: ES5 for compatibility on the frontend
This commit convert ES6 syntax (mainly Arrow Functions & String
Templates) to ES5 for compatibility with older browsers on the frontend.

Also some linting for consistency.

X-original-commit: 177860e50544700cd42b3efc288723f464931228
2020-08-19 15:19:11 +00:00
sbejaoui fb1b88c893 [FIX] sale: update fiscal position on company change
closes odoo/odoo#56160

X-original-commit: ac9f8e85c56c7fa635cfe2e89341df54277537bb
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-08-19 15:22:21 +00:00
qsb-odoo 3b0f30fa53 [FIX] l10n_mx: load all account tags using CSV file
Since record creation is faster when done from a CSV file,
hence, we move account tags definitions into CSV file.
Also, there was a tag with XMLid 'account_tag_174' defined
twice in XML file, which has been removed.
Total 1082 records of account.account.tag will be created
after removing one duplicated tag.

closes odoo/odoo#56153

Task: 2150637
X-original-commit: 5eef487f194b10ec2a1c0eb452eb22eac6098fc7
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-19 14:32:13 +00:00
Aurélien (avd) ba3d3455ab [IMP]: hr_timesheet: Improve global UX (back2basics)
Back2Basics of the timesheet module. Add helpers/dummy data to improve
the onboarding of the module.

Rename some roles/menus.

Add a QR Code client action when clicking on the timesheet app icons in
settings to allow users to directly download the app on their phone.

closes odoo/odoo#55565

Taskid: 2303955
Related: odoo/enterprise#12273
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-19 15:15:53 +00:00
lejeune quentin e694d7f03e [FIX] iot: Add new protocol to detect Zebra pinter
Some network Zebra printer are not detected because
the protocol 'socket' is not supported.

Now we add this protocol in the 'supported' function

closes odoo/odoo#56146

X-original-commit: f7fa40bdbbd765caf8fe528fff949b4dccf3d8c2
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-08-19 13:41:10 +00:00
Laurent Stukkens (LTU) 6fba06f5b5 [IMP] website: improve dynamic snippet rendering
* Prior to this commit, the server side rendering of all the element
  was sent to the webclient as a block which is splitted there into
  several elements.
* After this commit, the server side rendering sends an array of elements
  to the web client.

closes odoo/odoo#56141

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-08-19 13:38:52 +00:00
Arnaud Joset 30e1ca4cd6 [FIX] sale_management: do not override execute in res_config_settings
The execute method of res_config settings must not be overridden. set_values() must be overridden because the uninstall must be done at the end of transaction.

closes odoo/odoo#56101

Taskid: 2282427
X-original-commit: 6d6227915539c7af10e7e2b23565baea602a1d82
Related: odoo/enterprise#12504
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-19 08:09:20 +00:00
Xavier Morel 9e27956aa9 [FIX] core: handle cors preflight with custom auth
Odoo provides basic handling of CORS preflight requests: if an
endpoint is marked as `cors=<truthy value>` then it'll automatically
reply allowing the request.

*However* this is performed in `HttpRequest.dispatch` (likely in order
to correctly handle the nodb case), which means it's executed after
the auth handler has run... which means custom auth handlers will be
called on preflight requests.

This is a problem because they are missing relevant
information (e.g. which endpoint they're invoked for), plus having to
deal with preflight requests in every custom auth handler is annoying,
and simply allowing preflights could cause issues if the decision
diverges between the auth handler and the automatic
handling.

To fix this issue, extract the preflight *decision* into a separate
method so we get the same decision-making process everywhere, and in
case of CORS preflight set the auth to none to limit the eventual
capacity for nuisance in the span between the bypassed auth and the
automated preflight handling.

Also change the signature of IrHttp._authenticate so it's clearer if a
callsite was forgotten somehow (and this makes for less changes and
duplication at the callsites).

closes odoo/odoo#56029

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-08-19 13:41:24 +00:00
Goffin SimonandFlorent de Labarre 6b8d0432e2 [FIX] mrp: Wrong virtual_available on product.template with kit
Steps to reproduce:
- Let's consider a product.template TP with a kit
- Let's consider the variants V1, the only variant  of TP with a kit
- The virtual_availalbe of V1 is 100 (smart button Forecasted in the form view)

Bug:

The virtual_available of TP was 0 instead of 100
The virtaul_available of a product.template must be the sum of virtual_available of all its
variants with kit

PS: This commit changes the available quantity of product_product_table_kit in demo data.
As this quantity was not equal to 0, the type of the product could not be changed.

opw:2297226

closes odoo/odoo#55707

X-original-commit: 4df4ad023b9dd24edf75e8993d1d31c73ce26bc0
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Co-authored-by: Florent de Labarre <florent.mirieu@gmail.com>
2020-08-19 07:21:43 +00:00
Xavier Morel a3ec322993 [IMP] core: tests reporting
* remove useless OdooTestRunner
* don't log results & time per-file, log a module-level tally instead
* add number of tests to post-test results
* generate a single test suite per module (see note)
* use the previous item to split out the at_install test-running in
  two steps: generating the suite for the module then running that
  suite, this way for modules which have no test, or for
  which all tests have been deselected by test tags, we can avoid some
  of the setup necessary to prepare for running tests but possibly
  quite expensive (e.g. `setup_models`)

Note: single test suite per module

I wanted to stop creating a test result for (essentially) every file
in the module, however because of the class-level ``addCleanup``, a
TestResult can't be reused by independent suites:

In order to run class-level cleanup, the test suite checks between
tests if the test it's *preparing* to run is in the same class as the
last test it ran, and if not applies the class-level cleanup.

The problem is that the "previous test class" is stored on the result
object, which is never cleaned up, and the "between tests" check is
really performed *before each test*.

This means when reusing results across suites it will run the
class-level cleanup at the end of one suite and immediately at the
start of the next, which will cause issues if class-level cleanups are
not idempotent (thankfully ``TestTestCursor`` has a non-idempotent
``tearDownClass` which let me discover the error).

Possible fixes are:

* don't reuse results
* clear the relevant states / attributes between suites
* put individual suites in a Big Suite for running

The latter seems simpler: just create a single suite for the entire
odoo-level module instead of creating one suite per test module.

Note to the note: the case of nested suite is taken in account, the
"end of suite" cleanup only runs at the end of the top-level suite, so
technically we don't have to unwrap suites for *that* purpose, we're
doing so in order to filter the test cases inside the suites. But
maybe we could integrate this feature to the suites themselves...

closes odoo/odoo#55185

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-08-19 14:08:21 +00:00
Xavier Morel c1c43bbe38 [REM] core: assertion reports
That's a not-very-useful subset of OdooTestResult, so:

* make results merge-able (aka add ability to update a result with the
  contents of another)
* remove support for test data files, and transmission of the
  assertion report thing through the data-files loading
* replace "legitimate" uses of assertion report by test result
* have run_unit_tests manipulate and return a result instead of weird
  flags & ternaries
2020-08-19 14:08:12 +00:00
Xavier Morel ec8a64a85c [REF] core: move testing-related functions to odoo/tests submodules
Attempts to clean up odoo/module and odoo/service a tad, they still
invoke testing-related utilities but are more logical in what
they *contain*.
2020-08-19 07:28:44 +00:00
fja-odoo e46a8bc7d9 [IMP] account: format the dashboard tax report
This follows the changes done in https://github.com/odoo/enterprise/pull/11160

Clearer and better-looking link for tax closing on the accounting dashboard.

task-2201995

closes odoo/odoo#52988

Related: odoo/enterprise#11160
Related: odoo/upgrade#1347
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2020-08-18 13:43:06 +00:00
Richard Mathot 4fe6936fcd [IMP] base: error message understandable by humans
closes odoo/odoo#56139

Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-08-19 10:51:09 +00:00
root 13e3f8affc [IMP] account: set element names for easier xpaths
Before this commit some of the <p> elements had no id or name.
This means you need to do uglier or more risky xpath expressions.

By adding names on the elements we can easily xpath to the element itself which results in less changes of breaking or having issues.

closes odoo/odoo#56096

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-08-19 07:25:25 +00:00
Julien Mougenot 47a80f8825 [FIX] base: Render "custom colors" widget
Since commit 11857adec0 the invisible form
widgets are not rendered at all. This caused an issue in the document
layout designer where the "custom_colors" field was invisible but still
referenced by a label with a "for" attribute.

Now, said field is not completely invisible anymore; it is set with
"display:none" instead to be rendered invisible and interactive as
before.

closes odoo/odoo#55970

Task: 2320982
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-08-19 12:38:22 +00:00
Thibault Delavallée 7bd4c21aae [FIX] webesite_event: remove duplicated templates
Those are already present in another file.

closes odoo/odoo#56133

X-original-commit: 9a0f9e926a40bb594b6a10336a22ade463f1d5e0
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-19 12:14:19 +00:00
Odoo's Mergebot 5821a426f1 [FW][IMP] website_event_track_session: improve layout of tracks list
PURPOSE

Improve tracks list display at current solution does not scale well with lots
of tracks.

SPECIFICATIONS

Introduce a lighter reminder design: use standard bootstrap btn classes and
let colors be the standard one. This allows to simplify reminder CSS notably.

Display speaker and duration below track name, giving more space for the track
name itself. Display tags and sub information (hours, reminder / wishlist
widgets) on the right. This allows to simplify DOM and mobile management.

To be coherent with track list display tweak, add margins in pages using the
same kind of layouting.

Add tags under track name in track page view. Indeed they are displayed in
list view but not on page view. Also fix mobile display: move buttons under
name/tags in mobile to avoid strange display. We can now also use the full
reminder widget as buttons (quiz included) are on another line. Put location
and hours into a single line to avoid loosing space. Finally tweak a bit mobile
margins to gain space.

UDPATE

  * website_event_track_online.track_widget_reminder
  * website_event_track_session.tracks_session
  * website_event_track_session.tracks_display_list
  * website_event_track_session.event_track_content
  * website_event_track_exhibitor.event_exhibitors
  * website_event_meet.event_meet

LINKS

Task ID-2322408
PR #56095

closes odoo/odoo#56128

Forward-port-of: odoo/odoo#56095
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-19 14:05:00 +02:00
Thibault Delavallée a5ba03e014 [FIX] website_event_track_session: add tags in track page description
PURPOSE

Improve tracks list display at current solution does not scale well with lots
of tracks.

SPECIFICATIONS

Add tags under track name in track page view. Indeed they are displayed in
list view but not on page view. We think they are part of track description.

Also fix mobile display: move buttons under name/tags in mobile to avoid
strange display. We can now also use the full reminder widget as buttons
(quiz included) are on another line. Put location and hours into a single
line to avoid loosing space. Finally tweak a bit mobile margins to gain
space.

UDPATE

  * website_event_track_session.event_track_content

LINKS

Task ID-2322408
PR #56095

X-original-commit: ce2ffe189f59bccb1d0b806fb8bdf722a6611bed
2020-08-19 11:39:30 +00:00
Thibault Delavallée eb120f1008 [FIX] wesbsite_event_(meet/exhibitor): add margins everywhere !
PURPOSE

Improve tracks list display at current solution does not scale well with lots
of tracks.

SPECIFICATIONS

To be coherent with track list display tweak, add margins in pages using the
same kind of layouting.

UDPATE

  * website_event_meet.event_meet
  * website_event_track_exhibitor.event_exhibitors

LINKS

Task ID-2322408
PR #56095

X-original-commit: eddf8ad1602b8c92b67c5fec0146d3822642ba6c
2020-08-19 11:39:29 +00:00
Fabien Pinckaers 2c50e3274e [REF] website_event_track_session: improve tracks list display
PURPOSE

Improve tracks list display at current solution does not scale well with lots
of tracks.

SPECIFICATIONS

Display speaker and duration below track name, giving more space for the track
name itself. Display tags and sub information (hours, reminder / wishlist
widgets) on the right.

This allows to simplify DOM and mobile management.

UDPATE

  * website_event_track_session.tracks_session
  * website_event_track_session.tracks_display_list

LINKS

Task ID-2322408
PR #56095

Co-Authored-By Thibault Delavallée <tde@odoo.com>

X-original-commit: 38df744ab1a8786ceedffc65b993b035eb27f66e
2020-08-19 11:39:29 +00:00
Fabien Pinckaers 7d26d2fed6 [REF] website_event_track_online: improve reminder / wishlist widget display
PURPOSE

Improve tracks list display at current solution does not scale well with lots
of tracks.

SPECIFICATIONS

Introduce a lighter reminder design: use standard bootstrap btn classes and
let colors be the standard one. This allows to simplify reminder CSS notably.

UDPATE

  * website_event_track_online.track_widget_reminder

LINKS

Task ID-2322408
PR #56095

Co-Authored-By Thibault Delavallée <tde@odoo.com>

X-original-commit: 471ac3d9f0cf918c2318fb74ddfeab39e5046383
2020-08-19 11:39:28 +00:00
Nicolas (vin) 606abf08f2 [IMP] account: hide switch into refund/credit note from the tree view
Swithing into notes should be on a case by case basis, thus it is not that
usefull to allow to it on the tree view.

Task id #2321110

closes odoo/odoo#56116

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-18 07:15:25 +00:00
Xavier Dubuc 26147e5378 [FIX] mail: fix zoom out icon of attachment viewer
task-2321975

closes odoo/odoo#56109

X-original-commit: a36be26565e91aa9c6296eb45f8c9cb25eb4adee
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-19 09:18:07 +00:00
Xavier Dubuc 36cf229dce [FIX] mail: use right chatter field for chatter prop value
task-2319706

closes odoo/odoo#56108

X-original-commit: 8955626b0f08be7364e715f0fdb91ef72a31f757
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-19 09:29:42 +00:00
Nicolas (vin) dbe8bd5438 [IMP] account: search/create bank from bic in bank account wizard
When creating a bank account, the BIC should be enough to find or create
a new bank.

task id #2321110

closes odoo/odoo#55993

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-17 12:16:16 +00:00
Kevin Baptiste 375bfc66c8 [FIX] project: remove constrains for multilevel subtasks
The commit 79132f6 allowed multiple level for the subtasks, but a
remnant from the ancient time was left.

closes odoo/odoo#56104

Taskid: 2317929
X-original-commit: ace68ceceb92f8d7c16155fd72acd469424accd0
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-19 08:38:57 +00:00
Joseph Caburnay 96e27f0900 [FIX] point_of_sale,pos_*: indeterministic tour tests failures
closes odoo/odoo#56062

Related: odoo/enterprise#12487
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-08-19 07:34:04 +00:00
Joseph Caburnay 18651864dd [FIX] pos_restaurant: selectedTable can change during user input
In this commit, we make sure that the selectedTable doesn't change
even during the popup is shown to the user. During testing, there might
be rouge clicks that click the .floor-map element which deselects the
selected floor, making the value of this.selectedTable to be false,
causing runtime error.
2020-08-19 07:34:04 +00:00
Joseph Caburnay e2cac83394 [REF] point_of_sale: defer the selection of item in confirm
Every time we select an item in the selection popup, the item corresponding
the selected item is computed immediately. Instead, we defer this computation
during confirmation (when getPayload is called).

This implementation is lighter than previous because the component doesn't
need to listen to changes in an array, rather in a single number state.
2020-08-19 07:34:04 +00:00
Joseph Caburnay 9f2913a076 [FIX] point_of_sale: couple the mode value to the component
Before this commit, mode value can be different to what is shown in the screen
because of async rendering. To make sure that the mode value is properly synced
with with view, we couple the numpad mode value to the component.
2020-08-19 07:34:04 +00:00
Francois (fge) 7e2ba8c999 [IMP] project: add helpers and sample data on views
Added new helpers and sample data for some views.

closes odoo/odoo#55643

Related: odoo/enterprise#12312
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-18 13:38:02 +00:00
Aurélien (avd) dc20520034 [IMP] sale_timesheet: allow to timesheet on project without putting the task_id
Currently timesheeting on a project without specifying the task does not
increase the delivered_qty of the related sale order line.

This could potentially lead to issues with the Helpdesk module for instance.
When a project is allow_billable = false, the user is not required to specify
the task_id on the helpdesk's ticket. This means that hours timesheeted while
working on this ticket will not be added to the delivered_qty of the related
SOL.

This commit "fixes" this by allowing to timesheet on project without specifying
the task_id. So now, even if an helpdesk's ticket has no task_id, the timesheeted
hours will be added to the related SOL delivered_qty.

Because it was initially impossible to timesheet on project without setting
the task_id, some tests had to be rewritten.

closes odoo/odoo#53172

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-19 08:17:52 +00:00
Samuel Degueldre 42abf8f496 [IMP] web_editor: add webgl image filters
This commit adds webgl image filter to the existing image options,
including a custom filter that lets the user access color-correction
options (saturation, brightness, contrast, sepia, ...) as well as
blending modes for color filters.

Part of https://github.com/odoo/odoo/pull/53114
task-2279190

closes odoo/odoo#53114

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-19 08:32:23 +00:00
Samuel Degueldre 4575c188c4 [IMP] web_editor: add amount parameter to colorMatrix
When compositing filters, it is often the case that you only want to
partially apply a filter. This commit adds an optional "amount"
parameter to the colorMatrix filter, and computes a weighted average
between the identity matrix and the passed in colorMatrix. This
parameter defaults to 1, meaning the effect is applied in full if no
amount is specified.

This is a change in the webgl-image-filter library, currently awaiting
merge into upstream at https://github.com/phoboslab/WebGLImageFilter/pull/25

Part of https://github.com/odoo/odoo/pull/53114
task-2279190
2020-08-19 08:30:41 +00:00
Samuel Degueldre 2b1764d879 [ADD] web_editor: add webgl-image-filter library for image filters
Part of https://github.com/odoo/odoo/pull/53114
task-2279190
2020-08-19 08:30:15 +00:00
William Henrotin 5eff1764ee [FIX] mrp: hide wo state in draft
Task : 2278147

closes odoo/odoo#54283

Related: odoo/upgrade#1481
Related: odoo/enterprise#11683
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-18 12:46:54 +00:00
fja-odoo 8c5e3af174 [IMP] mrp: remove batch from operations
This doesn't make sense anymore: when we record production on a WO, in
any cases everything is processed as we make backorders.

Part of: https://github.com/odoo/odoo/pull/54283
task-2278147
2020-08-18 12:46:54 +00:00
Xavier Morel c3addfc94a [FIX] core: position of finalization when authenticating
Missed while merging the 2FA: in a mono-db scenario, the request is
bound to a database more or less immediately; however in a multi-db
scenario the current request *may* not be bound to a database by the
time we reach session authentication, this binding is performed *by*
the authentication step[0].

By trying to access an environment (requiring a db) before this
binding is performed, the authentication procedure broke.

We could create the environment by hand, but it seems completely
unnecessary: while there is a bundle of operations to perform in all
cases and a bundle to perform during finalization, they don't seem to
strictly depend on one another (and indeed this separation is already
a reordering of the operations from before), so the finalization can
be performed *after* having bound the current session to a database.

In fact that is closer to the older order: in the pre-totp iteration,
only the binding of the uid was performed before that of the login,
and even it was done after binding the database.

[0] this really is mostly a concern when using this step
    programmatically, as interactively the database selector should
    require selecting (and binding) a database before it's possible
    to log-in

closes odoo/odoo#56093

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-08-19 06:14:55 +00:00
Barad Mahendra 30adc183f8 [IMP] *: set sample="1" on reporting view archs
The purpose of this commit is to enable sample data on various graph and
pivot views.

Task ID: 2319606

closes odoo/odoo#55917

Related: odoo/enterprise#12415
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
2020-08-18 14:24:10 +00:00
Kevin Baptiste 45bb6f6e39 [IMP] hr_expense: show alias_email on list helper
The "Incoming Emails" setting is now enabled by default and the email
address shown on the list helper.

closes odoo/odoo#56069

Taskid: 2300864
Related: odoo/enterprise#12494
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-18 14:48:47 +00:00
David Beguin 484027f6e1 [FIX-IMP] website_event_track_online: revamp event agenda 3.0
This commit applies various improvement to make to event agenda more readable.

- Display speaker name under talk title in agenda
- Redesign lighter/smaller badge in agenda
- Make sure talk title does not overflow on neighbours on agenda
- Add border to agenda card
- Compute location width in function of number of locations.
- Vertical Align center for th
- Align bottom for tracks counter

UPDATE
  * website_event_track_online.agenda_main
  * website_event_track_online.agenda_main_track

Task ID: 2314778

closes odoo/odoo#56082

X-original-commit: 818dd900e81023ae08226e88a92d65e8f142f0f7
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-18 16:02:06 +00:00
Laurent Stukkens (LTU) 0e7640b5f2 [IMP] website, website_sale: add dynamic snippets
* Implement new snippets that allow the user to choose a filter
  and a template.
  Three snippets have been created:
  - Dynamic Snippet: Displays the data in a grid format
  - Dynamic Carousel: Displays the date in a carousel
  - Dynamic Products: Let the user pick a product category and
                      displays the products in a carousel

task-2276740
PR #53175

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-08-18 17:40:25 +00:00
Laurent Stukkens (LTU) 8b6985eeed [MOV] website: move JS Qweb templates to snippets directory
* Prior to this commit, Snippets XML Qweb templates files were located
  under website/static/src/xml/.

* After this commit, Snippets XML Qweb templates files will be named
  AAA.xml (with AAA being the revision number) and located under the
  related Snippet directory '/website/static/src/snippets/SNIPPET_DIRECTORY/'

task-2276740
PR #53175
2020-08-18 17:40:21 +00:00
Jeremy Kersten 8fb2ac4e65 [IMP] web: add a size_changed bus event
This commit will add a bus in the web.config config that allows
to trigger events.

The first use case is the trigger of the size_changed event that
is triggered each time the size of the screen changed of bootstrap
breakpoint.

task-2276740
PR #53175
2020-08-18 17:40:16 +00:00
stefanorigano (SRI) d43d791f3e [ADD] website: dynamic snippets thumbs
task-2276740
PR #53175
2020-08-18 17:40:03 +00:00
qsm-odoo faf51a373b [FIX] web_editor: make sure [data-snippet] is added on internal t-call
Since [1], an attribute is added on all snippet contents, on the main
node, to be able to identify them and better support them. This is
added thanks to the t-snippet or the t-snippet-call instruction. The
problem was this was not working if the first node of the snippet
definition is also a t-call to another sub template. This now works.

[1]: https://github.com/odoo/odoo/commit/11c60739e4f4379a61581ed179bc7debbb5e91f9

task-2276740
PR #53175
2020-08-18 17:39:29 +00:00
Rémi Rahir 08ed6afa2a [IMP] partner_autocomplete: do not fill email field on partner
- the email returned by Partner Autocomplete is often useless as it is
quite generic/random e.g. info@company.com. As it is set automatically,
the user might not realize he is going to send an email to that
generic address.

- not returning the email address faclitates some onboarding flows. It
allows us to prompt the user to set his own email address to have a
preview of the emails we are sending.

Note that this information is not lost but rather displayed in the
chatter of the partner record.

However, we do not propagate this modification to other services like
Lead Enrichment or Lead Generation since this kind of email is still
relevant to:
- approach a new prospect
- enrich information and create leads based on the email domain

TaskID 2321864

closes odoo/odoo#56038

Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-08-18 13:53:46 +00:00
Aymane (ayt) cef57b930b [FIX] mail: fix activity scheduling dropdown overflow
The dropdown for scheduling the next activity was overflowing inside the
container div.

After this commit, the dropdown is now attached to body element.
In other terms, the pop-in window to schedule an activity in the web kanban
activity widget is now visible (and not displayed anymore under previous line
in the widget tree view).

Task ID:2301262

closes odoo/odoo#56072

X-original-commit: 5ca624605571f79d1bca27c9a40286722c2a801b
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-18 14:24:28 +00:00