summaryrefslogtreecommitdiff
path: root/addons/event/tests
diff options
context:
space:
mode:
authorStéphane Debauche <std@odoo.com>2020-01-27 13:54:42 +0000
committerThibault Delavallée <tde@odoo.com>2020-01-28 09:14:43 +0000
commit1296681cbdd92f789a8d0df2abc66bbe4d1075ec (patch)
tree50e9cebe5f59158580cf954d9839e275af27b05e /addons/event/tests
parentb8966ac660cb6b899cd8e91b513cb2fc321548d7 (diff)
[IMP] event(_sale): improve attendees integration
Purpose ======= Improve the attendees management: improve views, actions, (views, actions). Specifications ============== In order to allow state management in batch, state field is made editable in multi edit mode of registrations. That way event managers are able to work in batch. It required to move some code currently called in custom action-called methods directly in write. It makes sense to consider that some required code is called by writing on state field instead of depending on calling the right method. Indeed there is not much "business" code to move: calling mail schedulers on confirmation, and putting the closing date when closing. Event and registration tree views are improved, some fields are now editable in multi edit mode. When a user register on a event from website, it will create a sale order and a partner (the customer of the SO). Set automatically the partner of the registration to the partner of the sale order. Task ID 2119333 PR #40949
Diffstat (limited to 'addons/event/tests')
-rw-r--r--addons/event/tests/test_event_flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/event/tests/test_event_flow.py b/addons/event/tests/test_event_flow.py
index 6c317b74a02..572e64a8231 100644
--- a/addons/event/tests/test_event_flow.py
+++ b/addons/event/tests/test_event_flow.py
@@ -47,10 +47,10 @@ class TestEventFlow(TestEventCommon):
})
# EventUser validates registrations
- test_reg1.button_reg_close()
+ test_reg1.action_set_done()
self.assertEqual(test_reg1.state, 'done', 'Event: wrong state of attended registration')
self.assertEqual(test_event.seats_used, 1, 'Event: incorrect number of attendees after closing registration')
- test_reg2.button_reg_close()
+ test_reg2.action_set_done()
self.assertEqual(test_reg1.state, 'done', 'Event: wrong state of attended registration')
self.assertEqual(test_event.seats_used, 2, 'Event: incorrect number of attendees after closing registration')