Commit Graph
137953 Commits
Author SHA1 Message Date
Raphael Collet 488e334fc8 [REF] core: combine default_get() with first onchange()
When creating a new record, the client calls `default_get()`, completes
the returned values with `False`, and calls `onchange()` to apply the
onchange to the defaults.

Optimize the double round-trip by integrating `default_get()` inside
`onchange()` for the first call.  The method is called with an empty
list of fields, and usually no field values, except for records in a
one2many field.  In this case, `onchange()` does both steps above.

Task 2261084
2020-08-20 13:39:04 +00:00
Antoine Prieels 540682b9be [FIX] pos_epson_printer: Traceback on error
When ePOS couldn't connect to the configured printer, an error occured
right before showing the error message. The POS then showed a random
traceback instead of the clean error message.

closes odoo/odoo#56242

X-original-commit: 5ea25f753b55d52b5f1d9f41456577f58ada4465
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-08-20 15:41:19 +00:00
Dhruv Patel 91b737d3c0 [FIX] web: start typing text in dropdown not showing on hover
When you hover on the "Start Typing" text in autocomplete dropdown,
it will not visible as its CSS overwrite with the rule and change the text color
as white.

With this commit, we have added the css rule for specifically "Start typing"
dropdown item and its looks consistent as other dropdown items.

Task : 2311983

closes odoo/odoo#56233

X-original-commit: ee8739361830981539127b269363a6fcbfcd840c
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-08-20 14:18:02 +00:00
Thibault Delavallée 5fc9d106e1 [IMP] website_event_track_session: improve sitemap management
SPECIFICATIONS: ROUTES

Improve sitemap management by adding domains in route. It allows
to lessen generated sitemap size.

LINKS

Task ID-2323246
PR odoo/odoo#56180

closes odoo/odoo#56231

X-original-commit: 1c68ddcd5dd1981be1d652f0f1f01a20f6e675fd
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-20 14:03:07 +00:00
Thibault Delavallée 4d411615fa [IMP] website_event_track_session: display not yet scheduled tracks
PURPOSE

Allow users to display tracks that have not been scheduled yet. In tracks list
they should be displayed to allow generating much hype about those.

SPECIFICATIONS: NOT SCHEDULED TRACKS

Some customers announce their tracks before giving them a date.
As tracks pages are based on date, they are currently not displayed.

Add an 'Coming Soon' section in tracks list with tracks not having a
date. This is displayed below day-based tracks display.

Now that we support displaying tracks without date, various fixes
are also applied to various places where date is used.

UPDATE

  * website_event_track_session.event_track_content
  * website_event_track_session.tracks_display_list
  * website_event_track_live.tracks_display_list

LINKS

Task ID-2323246
PR odoo/odoo#56180

X-original-commit: ab70df2670ed67929ee53af00a5dbc7d0b246589
2020-08-20 14:03:07 +00:00
Damien Bouvy 534fba1d33 [FIX] payment: correctly pass payment reference to QR code generation
closes odoo/odoo#56225

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-08-20 13:47:08 +00:00
Hiral Bhavsar 9b8f1d4236 [FIX] mail_bot_hr: preferences warning duplication
Before this commit:

Once the push notifications have been blocked, click on 'My Profile' displaying
preferences warning twice with a different place inside the form after https://github.com/odoo/odoo/commit/328f6dbc984312049e94413fe9a46284cffcb3cb

After this commit:

A preferences warning will be displayed at the proper place by removing the
primary mode from inherited view and add priority to it.

LINKS

Task-2323263

closes odoo/odoo#56218

X-original-commit: 9983914e2ddc60f6bb55a97a6b6e15e1f9d940d4
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-20 13:34:16 +00:00
ce69db55f8 [IMP] web: set focus to first visible page when active page invisible
Before this commit: if there are modifiers based on field which hides
one page and show another and if active page get invisible then instead
of first page second page gets focus, consider following example,

`<form>
    <field name="boolean"/>
    <page name="page1" attrs='{"invisible": [["bar", "=", false]]}'></page>
    <page name="page2" attrs='{"invisible": [["bar", "=", true]]}'></page>
    <page name="page3"></page>
</form>`

Consider the initial boolean value to be true; initially the first page
will be visible. But when "bar" is unchecked then page1 will be hidden
and page3 will get the focus as page2 is still not visible: it will be
after the computaion/application of all modifiers, which is currently
done after the rendering of a tab page.

Now: the first visible tab is focused on rendering (same as before) but
also after all modifiers have been updated.

closes odoo/odoo#56209

X-original-commit: 10365572aa3629e9b19d2b29726b351275de9f52
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Co-authored-by: Ipsita Borisagar <ibo@odoo.com>
Co-authored-by: Julien Mougenot <jum@odoo.com>
2020-08-20 12:37:36 +00:00
Laurent Smet 538b7f22cf [FIX] account: Fix constraint on bank/cash journals
Such stuff must be limited to bank/cash journals.

closes odoo/odoo#56184

X-original-commit: c1caf6a705c7ca02ef1c75fc36632af5055eda7a
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-20 12:49:26 +00:00
Benjamin Frantzen (bfr) d6356f7c37 [IMP] account_edi: cron is disabled by default
The cron to send the invoice to web-services is disabled until an edi.format that needs web services is created

closes odoo/odoo#56131

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-19 11:56:29 +00:00
Toufik Ben Jaa 9df742d3c7 [FIX] payment: crash when using payment page
- The PR https://github.com/odoo/odoo/pull/55122 introduced a typo,
  that breaks the payment page.

opw-2322033

closes odoo/odoo#56204

X-original-commit: 125683bbbb7b1f43bec29bdd07e81886c4e6e139
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-08-20 11:42:24 +00:00
wan 4cf9fa928e [IMP] account: redo the tour
The tour has been updated
Task 2306134

closes odoo/odoo#55624

Related: odoo/enterprise#12378
Related: odoo/upgrade#1659
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2020-08-19 16:04:01 +00:00
wan fa02f0ba21 [REF] account: use dynamic _table_query in invoice analysis
closes odoo/odoo#56080

Related: odoo/upgrade#1664
Related: odoo/enterprise#9914
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-08-20 07:45:18 +00:00
wanandrco-odoo f2ceef0e2f [IMP] core: add models defined by a query instead of a table/view
By adding a parameter `_table_query` on the Model, we can now have views
that depend on the context.  The query is used instead of the table name
in ORM operations.  This allows to pre-compute some values to improve
performance, instead of storing context values in the database.

Co-authored-by: william-andre <wan@odoo.com>
Co-authored-by: rco-odoo <rco@odoo.com>
2020-08-20 07:45:18 +00:00
Arnaud Baes 9ad16bf84a [FIX] rating: broken layout on ticket rating.
When rating a ticket from the website, the layout of the page
for the feedback submit confirmation was broken.

closes odoo/odoo#56194

Screenshot: https://www.awesomescreenshot.com/image/5066916/cd62b3409338f218d1f307b380e38362
X-original-commit: 20b50a6de61911498eb98c8a8f647fbae6864d7d
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-08-20 09:29:23 +00:00
Nicolas (vin) 0a4c093926 [FIX] account: misc. fixes
The tooltip message on default_account in the journal is too obvious, and it has an issue
(There is no way to control the tooltip title when the field appears multiple times in the view,
it is always taking the label of the last time the field appears)
which is a limitation of the framework.
Thus, it is removed.

Fix the display of emails on the accounting dashboard, as they only should be
visible when properly set and on the purchase journal.

Improve the flow of the new bank account wizard to avoid forcing the user
to chose an existing journal when one of them exists without account.
This should still be a possibility, but the user should be able to decide
to create a new journal if wanted.

Task id #2322724

closes odoo/odoo#56177

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-08-20 10:21:33 +00:00
Xavier Morel 4688b2dd9d [FIX] core: mis-updated SQL queries
odoo/odoo#53938 improved the SQL linter and used psycopg2.sql to
silence the linter where that still made sense. However I forgot to
mark table names (pretty much exclusively) as `sql.Identifier` in a
few somewhat rare callsites, which consequently break when invoked as
a simple string is not a Composable and psycopg2 therefore rejects it
when composing the query.

odoo/odoo#54556 fixed a few mis-updated ones, but apparently I still
managed to miss one here.

closes odoo/odoo#56191

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-08-20 09:02:48 +00:00
SEINLET Nicolas 98f3363113 [IMP] account: avoid unnecessary call to account_get
closes odoo/odoo#56189

X-original-commit: 8209486c8bf6ee92dd2497d8ba99e20bea08fe75
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: Nicolas Seinlet (nse) <nse@odoo.com>
2020-08-20 09:00:06 +00:00
Xavier Morel eb918180ec [FIX] core: remove duplicate test reporting
Leftover from testing a post-load report of all test failures.

Intent was to provide test failure details either during or after
loading, but feature was not actually developed and I forgot to remove
this bit before merging.

closes odoo/odoo#56186

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-08-20 08:32:21 +00:00
oco-odoo c07685e362 [IMP] l10n_ar, l10n_cl, l10n_latam_invoice_document: replace l10n_latam_country_code field by newly-introduced country_id
This new field was introduced in master by https://github.com/odoo/odoo/commit/013936261b26c601ce55015dbbbb99a7313a9a39 , making l10n_latam_country_code redundant.

closes odoo/odoo#56181

Related: odoo/upgrade#1666
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-20 08:00:30 +00:00
oco-odoo 116122f9c0 [FIX] l10n_in: make module installable again
Make account.journal form view inheriting from account compatible with the changes introduced by https://github.com/odoo/odoo/commit/41f119d5325dfbbf916d1d34e63946646ed4d44c .
2020-08-20 08:00:30 +00:00
Rémy Voet (ryv) c9c5281827 [REM] mrp: remove unused fields + Dead code
- Refactor `order_finished_lot_ids` compute, to be linked to the `lot_producing_id`
the the related production (less boiler plate). We can't remove it because
it is used in mrp_subcontracting, and keep the Many2Many, for the tag widget.
Remove the second field compute by this method, `finished_lots_exist` (never used).
- Remove unused field `needs_lots` (also it is a duplication
with `has_tracking` info) from `stock.move` (mrp)
- Remove unused field `done_move` from `stock.move.line` (mrp).
- Remove unused methods `_strict_consumption_check` and `_update_raw_move`.
- Remove unused variables.

odoo/upgrade#1594

closes odoo/odoo#54996

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-20 07:01:49 +00:00
william d1c0a97c18 [ADD] account_fleet: manage accounting with fleet
Task: 2186429

Add a vehicle on account.move.line to help create reports.
When a vehicle is set, log a service log on the vehicle.

closes odoo/odoo#49675

Related: odoo/upgrade#1357
Related: odoo/enterprise#8480
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-08-19 14:22:48 +00:00
william db9da432b7 [REM] fleet_account: replaced by account_disallowed_expenses_fleet
Task: 2186429
2020-08-19 14:22:43 +00:00
Rémy Voet (ryv) 4029b84be8 [FIX] mrp: keep the default of expected duration
Issue: when we created a new operation from the MO form,
the default of the expected_duration wasn't take in account and
override to 0.0.
Fix: in `_get_duration_expected` If there isn't workcenter is set,
instead of return False, return the `duration_expected`

closes odoo/odoo#56127

Related: odoo/enterprise#12517
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-20 06:57:19 +00:00
Rémy Voet (ryv) 400d14a762 [FIX] mrp: fix operation creation from MO
It was impossible to add a workorder after a finished one
due to a constraint in the write (can't change next_work_order_id).
Remove this obselete constraint.

task-2278147
2020-08-20 06:57:19 +00:00
jbm-odoo 49f8ee9e40 [IMP] sale_timesheet: Billable project
Split completely 'non billable' from 'task rate' for more clarity.
Simplify the task form view of non-billable projects.

TaskID 2032048

closes odoo/odoo#55972

Related: odoo/enterprise#12441
Related: odoo/upgrade#1662
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-19 15:52:35 +00:00
Hardik Prajapati a98f062116 [FIX] web: list: list_activity widget popover not visible
In edit mode, the list_activity widget popover is not fully visible
(most of it is cut). The reason is that at some point the rule
specifying that the containing list cell should have the property
'overflow: visible' became less important than another global
rule imposing the property 'overflow: hidden'.

The present commit makes sure that 'overflow: visible' is applied on all
list cells containing a list_activity widget.

Task ID: 2305805

closes odoo/odoo#56166

X-original-commit: 115fedf30da2ca016a2e435949a18561a389d37f
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-08-19 16:59:56 +00:00
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