diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-05-15 12:10:17 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-05-18 11:58:06 +0000 |
| commit | 83a7fb5f9215c5cebcca547e62bb06fde716b05f (patch) | |
| tree | e4c67368f84776d23ccc887859217fac47ed6596 /addons/event/tests/test_event_internals.py | |
| parent | 1bb4cf75301ff75d5d6ba3aa7b4515fe23a01ca4 (diff) | |
[IMP] event_sale: add some tests for registration update
In this commit we add some tests related to sale order / event registrations
synchronization, notably
* registrations automatically created when _update_registrations of an SO
line is called, for example at SO confirmation;
* using the registration editor;
LINKS
Task ID 2258685
Prepare Task ID 2166679 (create leads from registrations)
PR odoo/odoo#51341
Diffstat (limited to 'addons/event/tests/test_event_internals.py')
| -rw-r--r-- | addons/event/tests/test_event_internals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/event/tests/test_event_internals.py b/addons/event/tests/test_event_internals.py index 51dd7c33258..9a8d4147d81 100644 --- a/addons/event/tests/test_event_internals.py +++ b/addons/event/tests/test_event_internals.py @@ -30,7 +30,7 @@ class TestEventData(TestEventCommon): def test_event_date_computation(self): event = self.event_0.with_user(self.env.user) event.write({ - 'registration_ids': [(0, 0, {'partner_id': self.customer.id, 'name': 'test_reg'})], + 'registration_ids': [(0, 0, {'partner_id': self.event_customer.id, 'name': 'test_reg'})], 'date_begin': datetime(2020, 1, 31, 15, 0, 0), 'date_end': datetime(2020, 4, 5, 18, 0, 0), }) |
