| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 3 |
|
| 4 |
from datetime import datetime, timedelta |
| 5 |
|
| 6 |
from odoo import fields |
| 7 |
from odoo.addons.event_product.tests.common import TestEventProductCommon |
| 8 |
from odoo.addons.sales_team.tests.common import TestSalesCommon |
| 9 |
|
| 10 |
|
| 11 |
class TestEventSaleCommon(TestEventProductCommon, TestSalesCommon): |
| 12 |
|
| 13 |
@classmethod |
| 14 |
def setUpClass(cls): |
| 15 |
super(TestEventSaleCommon, cls).setUpClass() |
| 16 |
|
| 17 |
cls.event_0 = cls.env['event.event'].create({ |
| 18 |
'name': 'TestEvent', |
| 19 |
'date_begin': fields.Datetime.to_string(datetime.today() + timedelta(days=1)), |
| 20 |
'date_end': fields.Datetime.to_string(datetime.today() + timedelta(days=15)), |
| 21 |
'date_tz': 'Europe/Brussels', |
| 22 |
}) |