chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,162 @@
import { registry } from "@web/core/registry";
import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util";
import * as TicketScreen from "@point_of_sale/../tests/pos/tours/utils/ticket_screen_util";
import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util";
import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util";
import * as ReceiptScreen from "@point_of_sale/../tests/pos/tours/utils/receipt_screen_util";
registry.category("web_tour.tours").add("l10n_mx_edi_pos.test_mx_pos_invoice_order_and_refund", {
steps: () =>
[
{
content: "Click the POS icon",
trigger: ".o_app[data-menu-xmlid='point_of_sale.menu_point_root']",
run: "click",
},
{
content: "Open POS session from backend",
trigger: "button[name='open_ui']",
run: "click",
expectUnloadPage: true,
},
{
content: "Open Register",
trigger: ".modal .modal-footer .btn-primary:contains(open register)",
run: "click",
},
ProductScreen.clickPartnerButton(),
ProductScreen.clickCustomer("Arturo Garcia"),
{
content: "Select a product",
trigger: "div.product-content:contains('product_mx')",
run: "click",
},
{
content: "go to Payment",
trigger: ".pay-order-button",
run: "click",
},
{
content: "Customer wants an invoice",
trigger: ".js_invoice",
run: "click",
},
{
content: "Set Usage: 'General Expenses'",
trigger: "select[name='l10n_mx_edi_usage']",
run: "select G03",
},
{
content: "Set Invoice to Public: 'Yes'",
trigger: "select[name='l10n_mx_edi_cfdi_to_public']",
run: "select 1",
},
Dialog.confirm(),
PaymentScreen.clickPaymentMethod("Bank"),
PaymentScreen.clickValidate(),
Chrome.clickOrders(),
TicketScreen.selectFilter("Paid"),
TicketScreen.selectOrder("0001"),
ProductScreen.clickNumpad("1"),
TicketScreen.confirmRefund(),
PaymentScreen.isShown(),
{
content: "Usage: 'Returns, discounts or bonuses' should be selected",
trigger: "div.mx_invoice:contains('Returns, discounts or bonuses')",
},
PaymentScreen.clickPaymentMethod("Bank"),
PaymentScreen.clickValidate(),
ReceiptScreen.isShown(),
Chrome.endTour(),
].flat(),
});
registry.category("web_tour.tours").add("l10n_mx_edi_pos.tour_invoice_order_default_usage", {
steps: () => [
{
content: "Click the POS icon",
trigger: ".o_app[data-menu-xmlid='point_of_sale.menu_point_root']",
run: "click",
},
{
content: "Open POS session from backend",
trigger: "button[name='open_ui']",
run: "click",
expectUnloadPage: true,
},
{
content: "Open Register",
trigger: ".modal .modal-footer .btn-primary:contains(open register)",
run: "click",
},
{
content: "Select a product",
trigger: "div.product-content:contains('product_mx')",
run: "click",
},
{
content: "Select a customer",
trigger: ".set-partner",
run: "click",
},
{
content: "Select the partner 'Arturo Garcia'",
trigger: "tr.partner-line:contains('Arturo Garcia')",
run: "click",
},
{
content: "go to Payment",
trigger: ".pay-order-button",
run: "click",
},
{
content: "Customer wants an invoice",
trigger: ".js_invoice",
run: "click",
},
Dialog.confirm(),
{
content: "Option I01 should be selected",
trigger: "div.mx_invoice:contains('Constructions')",
},
Chrome.endTour(),
],
});
registry.category("web_tour.tours").add("tour_invoice_to_general_public", {
steps: () =>
[
Chrome.startPoS(),
Dialog.confirm("Open Register"),
ProductScreen.addOrderline("Whiteboard Pen"),
ProductScreen.clickPartnerButton(),
ProductScreen.clickCustomer("Arturo Garcia"),
ProductScreen.clickPayButton(),
PaymentScreen.clickPaymentMethod("Cash"),
PaymentScreen.remainingIs("0.0"),
PaymentScreen.clickInvoiceButton(),
{
content: "Set Invoice to public: 'No'",
trigger: "select[name='l10n_mx_edi_cfdi_to_public']",
run: "select 0",
},
Dialog.confirm(),
PaymentScreen.validateButtonIsHighlighted(true),
PaymentScreen.clickValidate(),
Dialog.is({ title: "Invalid Operation" }),
Dialog.confirm(),
PaymentScreen.clickInvoiceButton(),
PaymentScreen.clickInvoiceButton(),
{
content: "Set Invoice to public: 'Yes'",
trigger: "select[name='l10n_mx_edi_cfdi_to_public']",
run: "select 1",
},
Dialog.confirm(),
PaymentScreen.validateButtonIsHighlighted(true),
PaymentScreen.clickValidate(),
ReceiptScreen.isShown(),
Chrome.endTour(),
].flat(),
});
@@ -0,0 +1,177 @@
import { registry } from "@web/core/registry";
import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util";
import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util";
registry.category("web_tour.tours").add("l10n_mx_edi_pos.tour_invoice_previous_order", {
steps: () =>
[
{
content: "Click the POS icon",
trigger: ".o_app[data-menu-xmlid='point_of_sale.menu_point_root']",
run: "click",
},
{
content: "Open POS session from backend",
trigger: "button[name='open_ui']",
run: "click",
expectUnloadPage: true,
},
{
content: "Open Register",
trigger: ".modal .modal-footer .btn-primary:contains(open register)",
run: "click",
},
{
content: "Select a product",
trigger: "div.product-content:contains('product_mx')",
run: "click",
},
{
content: "go to Payment",
trigger: ".pay-order-button",
run: "click",
},
{
content: "Select payment method",
trigger: "div.button.paymentmethod",
run: "click",
},
...PaymentScreen.clickValidate(),
{
content: "click on New Order",
trigger: "div button:contains('New Order')",
run: "click",
},
Chrome.clickOrders(),
{
content: "Select dropdown",
trigger: "div.filter",
run: "click",
},
{
content: "Select 'Paid Orders'",
trigger: "li:contains('Paid')",
run: "click",
},
{
content: "Pick the first order in the list",
trigger: "div .order-row:contains('Paid'):first",
run: "click",
},
{
content: "Ask an invoice for this order",
trigger: ".control-buttons button:contains('Invoice')",
run: "click",
},
Dialog.confirm(),
{
content: "Select the partner 'Arturo Garcia'",
trigger: "tr.partner-line:contains('Arturo Garcia')",
run: "click",
},
{
content: "Set Usage: 'General Expenses'",
trigger: "select[name='l10n_mx_edi_usage']",
run: "select G03",
},
{
content: "Set Invoice to Public: 'No'",
trigger: "select[name='l10n_mx_edi_cfdi_to_public']",
run: "select 0",
},
{
trigger: ".modal button:contains(ok)",
run: "click",
},
{
content: "The 'Invoice' button should have now turned to 'Reprint Invoice'",
trigger: "span:contains('Reprint Invoice')",
},
].flat(),
});
registry
.category("web_tour.tours")
.add("l10n_mx_edi_pos.tour_invoice_previous_order_default_usage", {
steps: () =>
[
{
content: "Click the POS icon",
trigger: ".o_app[data-menu-xmlid='point_of_sale.menu_point_root']",
run: "click",
},
{
content: "Open POS session from backend",
trigger: "button[name='open_ui']",
run: "click",
expectUnloadPage: true,
},
{
content: "Open Register",
trigger: ".modal .modal-footer .btn-primary:contains(open register)",
run: "click",
},
{
content: "Select a product",
trigger: "div.product-content:contains('product_mx')",
run: "click",
},
{
content: "go to Payment",
trigger: ".pay-order-button",
run: "click",
},
{
content: "Select payment method",
trigger: "div.button.paymentmethod",
run: "click",
},
...PaymentScreen.clickValidate(),
{
content: "click on New Order",
trigger: "div button:contains('New Order')",
run: "click",
},
Chrome.clickOrders(),
{
content: "Select dropdown",
trigger: "div.filter",
run: "click",
},
{
content: "Select 'Paid Orders'",
trigger: "li:contains('Paid')",
run: "click",
},
{
content: "Pick the first order in the list",
trigger: "div .order-row:contains('Paid'):first",
run: "click",
},
{
content: "Ask an invoice for this order",
trigger: "button.control-button:contains('Invoice')",
run: "click",
},
Dialog.confirm(),
{
content: "Select the partner 'Arturo Garcia'",
trigger: "tr.partner-line:contains('Arturo Garcia')",
run: "click",
},
{
content: "Set Invoice to Public: 'Yes'",
trigger: "select[name='l10n_mx_edi_cfdi_to_public']",
run: "select 1",
},
{
trigger: ".modal .modal-footer .btn-primary",
run: "click",
},
{
content: "The 'Invoice' button should have now turned to 'Reprint Invoice'",
trigger: "span:contains('Reprint Invoice')",
},
].flat(),
});
@@ -0,0 +1,58 @@
import { registry } from "@web/core/registry";
import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util";
import * as ProductScreen from "@point_of_sale/../tests/pos/tours/utils/product_screen_util";
import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util";
import * as ReceiptScreen from "@point_of_sale/../tests/pos/tours/utils/receipt_screen_util";
import * as TicketScreen from "@point_of_sale/../tests/pos/tours/utils/ticket_screen_util";
import * as TextInputPopup from "@point_of_sale/../tests/generic_helpers/text_input_popup_util";
registry.category("web_tour.tours").add("test_refund_with_gift_card_mx", {
steps: () =>
[
Chrome.startPoS(),
Dialog.confirm("Open Register"),
ProductScreen.clickDisplayedProduct("Whiteboard Pen"),
ProductScreen.clickPayButton(),
PaymentScreen.clickPaymentMethod("Cash"),
PaymentScreen.clickValidate(),
ReceiptScreen.clickNextOrder(),
ProductScreen.clickRefund(),
TicketScreen.selectOrder("-000001"),
ProductScreen.clickNumpad("1"),
TicketScreen.confirmRefund(),
PaymentScreen.clickBack(),
ProductScreen.clickControlButton("Enter Code"),
TextInputPopup.inputText("043123456"),
Dialog.confirm(),
Dialog.confirm(),
ProductScreen.clickPayButton(),
PaymentScreen.isShown(),
PaymentScreen.clickPaymentMethod("Cash"),
PaymentScreen.clickValidate(),
ReceiptScreen.isShown(),
].flat(),
});
registry.category("web_tour.tours").add("test_refund_with_discount", {
steps: () =>
[
Chrome.startPoS(),
Dialog.confirm("Open Register"),
ProductScreen.clickDisplayedProduct("Whiteboard Pen"),
ProductScreen.totalAmountIs("3.20"),
ProductScreen.clickControlButton("Discount"),
Dialog.confirm(),
ProductScreen.totalAmountIs("2.88"),
ProductScreen.clickPayButton(),
PaymentScreen.clickPaymentMethod("Cash"),
PaymentScreen.clickValidate(),
ReceiptScreen.clickNextOrder(),
ProductScreen.clickRefund(),
TicketScreen.selectOrder("-000001"),
ProductScreen.clickNumpad("1"),
TicketScreen.confirmRefund(),
PaymentScreen.isShown(),
PaymentScreen.totalIs("-2.88"),
].flat(),
});
@@ -0,0 +1,68 @@
import { registry } from "@web/core/registry";
import * as Dialog from "@point_of_sale/../tests/generic_helpers/dialog_util";
import * as Chrome from "@point_of_sale/../tests/pos/tours/utils/chrome_util";
import * as PaymentScreen from "@point_of_sale/../tests/pos/tours/utils/payment_screen_util";
registry.category("web_tour.tours").add("l10n_mx_edi_pos.tour_refund_discount_order", {
steps: () => [
{
content: "Click the POS icon",
trigger: ".o_app[data-menu-xmlid='point_of_sale.menu_point_root']",
run: "click",
},
{
content: "Open POS session from backend",
trigger: "button[name='open_ui']",
run: "click",
expectUnloadPage: true,
},
Dialog.confirm("Open Register"),
{
content: "Open Actions menu",
trigger: "button.more-btn",
run: "click",
},
{
content: "Click Refund",
trigger: "button.btn:contains('Refund')",
run: "click",
},
{
content: "Select an Order",
trigger: "tr.order-row:contains('Paid')",
run: "click",
},
{
content: "Select an Orderline",
trigger: "li.orderline:contains('Test Product 1')",
run: "click",
},
{
content: "Select qty to refund",
trigger: "button[value='1']",
run: "click",
},
{
content: "Select an Orderline",
trigger: "li.orderline:contains('Discount')",
run: "click",
},
{
content: "Select qty to refund",
trigger: "button[value='1']",
run: "click",
},
{
content: "go to Refund",
trigger: ".pay-order-button",
run: "click",
},
{
content: "Click Cash payment method",
trigger: "div.paymentmethod:contains('Cash')",
run: "click",
},
...PaymentScreen.clickValidate(),
Chrome.endTour(),
],
});