mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 15:32:04 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import test_ui
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import logging
|
||||
|
||||
from odoo.tests import HttpCase, tagged
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@tagged('-at_install', 'post_install')
|
||||
class TestUi(HttpCase):
|
||||
def setUp(self):
|
||||
super(TestUi, self).setUp()
|
||||
self.env['product.product'].create([{
|
||||
'name': 'Product Consumable',
|
||||
'type': 'consu',
|
||||
'website_published': True,
|
||||
'list_price': 1000,
|
||||
}, {
|
||||
'name': 'Product Service',
|
||||
'type': 'service',
|
||||
'website_published': True,
|
||||
'list_price': 20,
|
||||
}])
|
||||
|
||||
def test_onsite_payment_tour(self):
|
||||
self.env['delivery.carrier'].create({
|
||||
'delivery_type': 'onsite',
|
||||
'is_published': True,
|
||||
'website_published': True,
|
||||
'name': 'Example shipping On Site',
|
||||
'product_id': self.env.ref('website_sale_picking.onsite_delivery_product').id,
|
||||
})
|
||||
self.env.ref("website_sale_picking.payment_provider_onsite").is_published = True
|
||||
|
||||
self.start_tour('/shop', 'onsite_payment_tour')
|
||||
Loading…
Add table
Add a link
Reference in a new issue