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
22 lines
688 B
Python
22 lines
688 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.event.tests.common import TestEventCommon
|
|
from odoo.addons.sales_team.tests.common import TestSalesCommon
|
|
|
|
|
|
class TestEventSaleCommon(TestEventCommon, TestSalesCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super(TestEventSaleCommon, cls).setUpClass()
|
|
|
|
cls.event_product = cls.env['product.product'].create({
|
|
'name': 'Test Registration Product',
|
|
'description_sale': 'Mighty Description',
|
|
'list_price': 10,
|
|
'event_ok': True,
|
|
'standard_price': 30.0,
|
|
'type': 'service',
|
|
})
|