Task-id : 2791237 PR : https://github.com/odoo/odoo/pull/87636 Allows customers to see a list of delivery carriers as shops in the website page; A delivery carrier may now be an onsite one, which means the client comes to the corresponding store to pickup the products. Also adds a payment acquirer based on wire transfer, for paying on site. The customer can only pay on site if he also comes to pick the product on site Notes : - If a warehouse is set on a delivery carrier, the sales order will take it's address. closes odoo/odoo#87636 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
18 lines
652 B
Python
18 lines
652 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.tests import HttpCase, tagged
|
|
|
|
|
|
@tagged('-at_install', 'post_install')
|
|
class TestUi(HttpCase):
|
|
def test_onsite_payment_tour(self):
|
|
# Make sure at least one onsite payment option exists.
|
|
self.env['delivery.carrier'].create({
|
|
'delivery_type': 'onsite',
|
|
'website_published': True,
|
|
'name': 'Example shipping On Site',
|
|
'product_id': self.env.ref('website_sale_picking.onsite_delivery_product').id
|
|
})
|
|
self.start_tour('/shop', 'onsite_payment_tour', login='admin')
|