mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 23:32:00 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -2,3 +2,4 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import test_course_purchase_flow
|
||||
from . import test_ui_website_sale_slides
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ class TestCoursePurchaseFlow(common.SlidesCase):
|
|||
'name': 'salesman',
|
||||
'login': 'salesman',
|
||||
'email': 'salesman007@example.com',
|
||||
'groups_id': [(6, 0, cls.env.ref('sales_team.group_sale_salesman').ids)],
|
||||
'group_ids': [(6, 0, cls.env.ref('sales_team.group_sale_salesman').ids)],
|
||||
})
|
||||
|
||||
cls.course_product = cls.env['product.product'].create({
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, tests
|
||||
from odoo.addons.website_slides.tests import test_ui_wslides
|
||||
|
||||
|
||||
@tests.common.tagged('post_install', '-at_install')
|
||||
class TestUiWebsiteSaleSlides(test_ui_wslides.TestUICommon):
|
||||
|
||||
def setUp(self):
|
||||
super(TestUiWebsiteSaleSlides, self).setUp()
|
||||
self.course_product = self.env['product.product'].create({
|
||||
'name': "Course Product",
|
||||
'standard_price': 100,
|
||||
'list_price': 150,
|
||||
'type': 'service',
|
||||
'invoice_policy': 'order',
|
||||
'is_published': True,
|
||||
})
|
||||
|
||||
self.channel.write({
|
||||
'enroll': 'payment',
|
||||
'product_id': self.course_product.id,
|
||||
'visibility': 'connected',
|
||||
})
|
||||
|
||||
self.channel_partner_portal = self.env['slide.channel.partner'].create({
|
||||
'channel_id': self.channel.id,
|
||||
'partner_id': self.user_portal.partner_id.id,
|
||||
'member_status': 'invited',
|
||||
'last_invitation_date': fields.Datetime.now(),
|
||||
})
|
||||
self.portal_invite_url = self.channel_partner_portal.invitation_link
|
||||
|
||||
def test_invited_on_payment_course_logged_connected(self):
|
||||
self.start_tour(self.portal_invite_url, 'invited_on_payment_course_logged', login='portal')
|
||||
|
||||
def test_invited_on_payment_course_public_connected(self):
|
||||
self.start_tour(self.portal_invite_url, 'invited_on_payment_course_public', login=None)
|
||||
Loading…
Add table
Add a link
Reference in a new issue