Commit Graph
3 Commits
Author SHA1 Message Date
Thibault Delavallée cc0fd487d5 [FIX] event: fix report printable name
Name field can return False, which is not compatible with a replace. We
therefore fallback on a void string, as already done in various other
report names.

Related to Task-2868153 (Mail: Allow multi-reports mail templates)

closes odoo/odoo#105042

X-original-commit: 1e223619e466792c9b073b302ebc9d68cabb9aac
Related: odoo/enterprise#33652
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-04 17:56:45 +01:00
Thibault Delavallée 2411a6b69c [IMP] test_event_full: add performance on frontend and registration tour
Purpose of this commit is to add performance tests for some commonly used
URLs related to event: the main event page and browsing a given event.

A complete registration tour involving buying tickets, answering questions
and filling billing information is also added under a query counter check.
This allows to see a bit how many queries are involved in that flow. To
ease reproduction a data is added but not imported, allowing to quickly see
what happens locally instead of having to debug tests.

Task-2703285 (Event performance improvements)
Task-2703289 (Event testing and coverage)

Part-of: odoo/odoo#81068
2021-12-16 17:33:49 +00:00
Thibault Delavallée ad5c08ca09 [REF] test_event_full: cleanup tests
Purpose of this commit is to make test_event_full globally independent from
other event sub modules testing data. We now define a complete event type
with all sub options clearly activated in a single setup. That way tests
in test_event_full are easier to read, understand and modify.

A custom report replacing badge report is added as the base one is quite
complex. It is easier to test the result with simpler templates.

Task-2703285 (Event performance improvements)
Task-2703289 (Event testing and coverage)

Part-of: odoo/odoo#81068
2021-12-16 17:33:48 +00:00