-
-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website_sale_checkout_skip_payment: Migration to 17.0
- Loading branch information
1 parent
da8aac8
commit 768e629
Showing
9 changed files
with
79 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
This module allows to logged users to checkout with no payment step. At | ||
the end of the checkout proccess the quotation is sent to the user email | ||
address and set to *Qoutation Sent* state. | ||
the end of the checkout process the quotation is sent to the user email | ||
address and set to *Quotation Sent* state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...e_checkout_skip_payment/static/tests/tours/website_sale_checkout_skip_payment_tour.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** @odoo-module **/ | ||
|
||
import {registry} from "@web/core/registry"; | ||
import tourUtils from "@website_sale/js/tours/tour_utils"; | ||
|
||
registry.category("web_tour.tours").add("website_sale_checkout_skip_payment", { | ||
test: true, | ||
url: "/shop", | ||
steps: () => [ | ||
...tourUtils.addToCart({productName: "Storage Box"}), | ||
tourUtils.goToCart({quantity: 1}), | ||
tourUtils.goToCheckout(), | ||
{ | ||
content: "Click Confirm Button", | ||
trigger: "a[name='confirm_order_checkout_skip_payment']", | ||
}, | ||
{ | ||
trigger: "h4:contains('Payment Information')", | ||
}, | ||
{ | ||
content: "Check confirmation and that the cart has been left empty", | ||
trigger: "a:has(.my_cart_quantity:containsExact(0))", | ||
extra_trigger: "h4:contains('Payment Information')", | ||
}, | ||
], | ||
}); |
47 changes: 0 additions & 47 deletions
47
..._sale_checkout_skip_payment/static/tests/tours/website_sale_checkout_skip_payment_tour.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters