Commit Graph
8 Commits
Author SHA1 Message Date
Thibault Delavallée dd1a842c32 [IMP] event_booth(_sale): improve tests execution
Notably using post-install allows to run event_booth tests even when sale
dependencies are installed. Otherwise they cannot run at install due to
required column not being filled in DB.

X-original-commit: aa769df87c0ef0e7ac6924c3e8f5595e8c82eba7
Part-of: odoo/odoo#94475
2022-06-24 10:29:50 +02:00
Nasreddin Boulif (bon) dff3304175 [FIX] event_booth_sale: Allow confirm sale order with event booth
Steps to Reproduce:

  - Connect as Admin
  - Install event_booth_sale module
  - Give only sales right to Demo user and remove event rights
  - Connect as Demo
  - Create a new SO
  - Add an event booth as product to the SO
  - Try to confirm the SO

Issue:

  Access error.

Cause:

  When comfirming the SO, we also update the selected event_booth
  while sales rights are not enough to update event_booth model.

Solution:

  Use sudo to update event_booth.

opw-2823555
Task-2842621

X-original-commit: 3f78c6aab091388afaf1e75fc8e9e66db5b8ab4a
Part-of: odoo/odoo#94475
2022-06-24 10:29:49 +02:00
Patrick Hoste 6787adae29 [FW][FIX] (website_)event_booth_sale: correctly display tax included price
PURPOSE

Display the correct price when the tax included option is set in
the website settings.

LINKS

Task-2657480

closes odoo/odoo#89744

Closes: odoo/odoo#89618
X-original-commit: bf5fc98333beae99b94f0b55f0780d6fd18889cb
Forward-port-of: #89277
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
Signed-off-by: Hoste Patrick (pko) <pko@odoo.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-04-27 07:52:14 +02:00
Patrick Hoste ddcdcaba75 [FW][FIX] (website_)event_booth_sale: add tests and test tour
PURPOSE

Forward-port changed since this has been fixed properly in v15.0+
This commit adds the tests only and doesn't contain the fix as previously

LINKS

Task-2657480

Closes: odoo/odoo#89618
X-original-commit: 02932cb2e6ae43c414f222f27080ee7d265c5b39
Forward-port-of: #89277
Part-of: odoo/odoo#89744
2022-04-27 07:52:14 +02:00
Thibault Delavallée db19463f25 [REF] event(_*): clean tests common files
Purpose is to have a common event class for users and useful stuff (customers,
products, ...) but lessen usage of common test data through sub modules.
Indeed having a "global event type" test data updated in various addons is
actually complicated to maintain.

Sub add-ons are updated to use mainly the ``EventCase`` test class holding
users and side data. Data specific to those modules (event type with some
specific configuration notably) is created and used in tests in the given
module only, and not through generic event_type_complex and event_0 test
data anymore.

With this commit tests are more localized to their add-on and modifying data
in a given add-on has less chances to have unwanted side effect in other event
submodules unit tests.

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

Part-of: odoo/odoo#81068
2021-12-16 17:33:47 +00:00
Patrick Hoste a2fe1cfb33 [IMP] (website_)event_booth(_sale): polish ux design
PURPOSE

This commit is a first polish for event booth modules. It includes:
- wording
- add currency on price fields
- removing booths tab on event view

LINKS

Task-2635461
PR: odoo/odoo#77081
2021-10-04 15:30:26 +00:00
wan 3d7b9bbf27 [IMP] {website_,}event_booth_sale: remove is_event_booth from product
This is now a type of product.

task-2605931

closes odoo/odoo#75862

Related: odoo/enterprise#20555
Related: odoo/upgrade#2797
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2021-09-07 15:50:02 +00:00
Patrick Hoste b3c1141f8b [ADD] event_booth_sale: add sale capabilities to event_booth
PURPOSE

This module allows to sell booths to partners by setting a product and a price
to the booths categories. When selling booths on a sale order it will open the
product configurator and ask the event, booth category and booths.
It's only possible to select booths belonging to the same category for one sale order line.

A new model is introduced by this module :

- Booth Registration that allows multiple registrations to a booth.
  The booth will be set unavailable when the sale order linked to the registration is paid.
  All the others registrations will be cancelled

LINKS

Task-2318655
Closes : odoo/odoo#71104
2021-09-02 14:14:33 +00:00