初始提交
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_utils";
|
||||
import { accountTourSteps } from "@account/js/tours/account";
|
||||
|
||||
|
||||
registry.category("web_tour.tours").add('account_accountant_bank_rec_widget_save_analytic_distribution', {
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
...accountTourSteps.goToAccountMenu("Open the accounting module"),
|
||||
{
|
||||
trigger: ".o_breadcrumb",
|
||||
},
|
||||
{
|
||||
content: "Open the bank reconciliation widget",
|
||||
trigger: "button.btn-secondary[name='action_open_reconcile']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div[name='line_ids']",
|
||||
},
|
||||
{
|
||||
content: "The 'line1' should be selected by default",
|
||||
trigger: "div[name='line_ids'] td[field='name']:contains('line1')",
|
||||
},
|
||||
{
|
||||
content: "Click on first line",
|
||||
trigger: "div[name='line_ids'] td[field='debit']:first",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "The 'manual_operations_tab' should be active now and the auto_balance line mounted in edit",
|
||||
trigger: "a.active[name='manual_operations_tab']",
|
||||
},
|
||||
{
|
||||
content: "Enter an analytic distribution",
|
||||
trigger: "div[name='analytic_distribution'] .o_input_dropdown",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Select analytic distribution",
|
||||
trigger: "tr[name='line_0'] input",
|
||||
run: "edit analytic_account",
|
||||
},
|
||||
{
|
||||
trigger: ".ui-autocomplete",
|
||||
},
|
||||
{
|
||||
content: "Select analytic distribution",
|
||||
trigger: ".ui-autocomplete:visible li:contains('analytic_account')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Close the analytic distribution",
|
||||
trigger: ".o_button",
|
||||
run: "click",
|
||||
},
|
||||
...stepUtils.toggleHomeMenu(),
|
||||
...accountTourSteps.goToAccountMenu("Reset back to accounting module"),
|
||||
{
|
||||
content: "check that we're back on the dashboard",
|
||||
trigger: 'a:contains("Sales")',
|
||||
},
|
||||
]
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_utils";
|
||||
import { accountTourSteps } from "@account/js/tours/account";
|
||||
|
||||
/**
|
||||
* Verifies that when setting a partner on a statement line from a branch company,
|
||||
* contacts owned by the parent company are visible in the lookup dialog.
|
||||
*
|
||||
* The partner lookup domain uses `parent_of` so that contacts belonging to any
|
||||
* ancestor company of the statement line's company are included.
|
||||
*/
|
||||
registry.category("web_tour.tours").add("account_accountant_bank_rec_set_partner_branch_company", {
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
...accountTourSteps.goToAccountMenu("Open the accounting module"),
|
||||
{
|
||||
content: "Open the branch bank reconciliation widget",
|
||||
trigger: "a.oe_kanban_action span:contains('Branch Bank')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_kanban_renderer",
|
||||
},
|
||||
{
|
||||
content: "Unfold the statement line",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Line is unfolded",
|
||||
trigger: "div.o_button_line",
|
||||
},
|
||||
{
|
||||
content: "Open the Set Partner dialog",
|
||||
trigger: "button.set-partner-btn",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Search dialog is open",
|
||||
trigger: "div.modal-dialog",
|
||||
},
|
||||
{
|
||||
// The parent company's contact must appear even though the statement line
|
||||
// belongs to a branch company — this validates the `parent_of` domain fix.
|
||||
content: "Parent company contact is visible in the results",
|
||||
trigger: "tbody > tr > td[name='display_name']:contains('AAAA Parent Partner')",
|
||||
},
|
||||
{
|
||||
content: "Select the parent company contact",
|
||||
trigger: "tbody > tr > td[name='display_name']:contains('AAAA Parent Partner')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Partner is set on the statement line",
|
||||
trigger: "span[name='statement_line_partner_name']:contains('AAAA Parent Partner')",
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -0,0 +1,267 @@
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_utils";
|
||||
import { accountTourSteps } from "@account/js/tours/account";
|
||||
|
||||
registry.category("web_tour.tours").add("account_accountant_bank_rec_widget", {
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
...accountTourSteps.goToAccountMenu("Open the accounting module"),
|
||||
|
||||
{
|
||||
content: "Open the bank reconciliation widget",
|
||||
trigger: "a.oe_kanban_action span:contains('Bank')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_kanban_renderer",
|
||||
},
|
||||
{
|
||||
content: "Create New statement",
|
||||
trigger: "button.o-kanban-button-new",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_quick_create",
|
||||
},
|
||||
{
|
||||
content: "Write Label",
|
||||
trigger: "div[name='payment_ref'] input",
|
||||
run: "edit test",
|
||||
},
|
||||
{
|
||||
content: "Add a amount",
|
||||
trigger: "div[name='amount'] input",
|
||||
run: "edit 100",
|
||||
},
|
||||
{
|
||||
content: "Save & close",
|
||||
trigger: "div.button_group button.o_kanban_edit",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Statement is created",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
},
|
||||
{
|
||||
content: "Unfold statement line",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "line is unfolded",
|
||||
trigger: "div.o_button_line",
|
||||
},
|
||||
{
|
||||
content: "Set Partner",
|
||||
trigger: "button.set-partner-btn",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Search view is opened",
|
||||
trigger: "div.modal-dialog",
|
||||
},
|
||||
{
|
||||
content: "Select first partner",
|
||||
trigger: "tbody > tr > td[name='display_name']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Partner is set",
|
||||
trigger: "span[name='statement_line_partner_name']",
|
||||
},
|
||||
{
|
||||
content: "Fold statement line",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Statement line is reconciled because move with same partner and amount",
|
||||
trigger: "div[name='reconciled_line_name']",
|
||||
},
|
||||
{
|
||||
content: "Create New statement",
|
||||
trigger: "button.o-kanban-button-new",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_quick_create",
|
||||
},
|
||||
{
|
||||
content: "Write Label",
|
||||
trigger: "div[name='payment_ref'] input",
|
||||
run: "edit test",
|
||||
},
|
||||
{
|
||||
content: "Add a amount",
|
||||
trigger: "div[name='amount'] input",
|
||||
run: "edit 150",
|
||||
},
|
||||
{
|
||||
content: "Save & close",
|
||||
trigger: "div.button_group button.o_kanban_edit",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Open Ellipsis button",
|
||||
trigger: "button.btn-secondary i[data-icon='more_vert']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Reconcile button",
|
||||
trigger: "span.btn-link:contains('Reconcile')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Search view is opened",
|
||||
trigger: "div.modal-dialog",
|
||||
},
|
||||
{
|
||||
content: "Select first move line",
|
||||
trigger: "tbody > tr > td[name='partner_id']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Statement line is reconciled",
|
||||
trigger: "div[name='reconciled_line_name']",
|
||||
},
|
||||
// ensure statement can be added for multiple statement lines at once
|
||||
{
|
||||
content: "Switch to list view",
|
||||
trigger: "button.o_switch_view.o_list",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Select the statement lines",
|
||||
trigger: "div.o-checkbox",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Open the Many2One to set statement",
|
||||
trigger: "td.o_bank_rec_list_many2one_multi_id_cell",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Search for the created statement",
|
||||
trigger: "input.o-autocomplete--input",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Select the created statement",
|
||||
trigger: "a.dropdown-item:contains('test')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Update setting statement on both lines",
|
||||
trigger: "button.btn-primary:contains('Update')",
|
||||
run: "click",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
registry.category("web_tour.tours").add("account_accountant_set_partner_with_child_contact", {
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
...accountTourSteps.goToAccountMenu("Open the accounting module"),
|
||||
|
||||
{
|
||||
content: "Open the bank reconciliation widget",
|
||||
trigger: "a.oe_kanban_action span:contains('Bank')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_kanban_renderer",
|
||||
},
|
||||
{
|
||||
content: "Create New statement",
|
||||
trigger: "button.o-kanban-button-new",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_quick_create",
|
||||
},
|
||||
{
|
||||
content: "Write Label",
|
||||
trigger: "div[name='payment_ref'] input",
|
||||
run: "edit test",
|
||||
},
|
||||
{
|
||||
content: "Add a amount",
|
||||
trigger: "div[name='amount'] input",
|
||||
run: "edit 100",
|
||||
},
|
||||
{
|
||||
content: "Save & close",
|
||||
trigger: "div.button_group button.o_kanban_edit",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Statement is created",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
},
|
||||
{
|
||||
content: "Set Partner",
|
||||
trigger: "button.set-partner-btn",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Search view is opened",
|
||||
trigger: "div.modal-dialog",
|
||||
},
|
||||
{
|
||||
content: "Select partner",
|
||||
trigger: "body:not(:has(tbody > tr > td[name='display_name']:contains('test child contact')))",
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
registry.category("web_tour.tours").add("account_accountant_bank_reconciliation_ui_context_keys", {
|
||||
steps: () => [
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_kanban_renderer",
|
||||
},
|
||||
{
|
||||
content: "Create New statement",
|
||||
trigger: "button.o-kanban-button-new",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_quick_create",
|
||||
},
|
||||
{
|
||||
content: "Write Label",
|
||||
trigger: "div[name='payment_ref'] input",
|
||||
run: "edit test",
|
||||
},
|
||||
{
|
||||
content: "Add a amount",
|
||||
trigger: "div[name='amount'] input",
|
||||
run: "edit 100",
|
||||
},
|
||||
{
|
||||
content: "Save & close",
|
||||
trigger: "div.button_group button.o_kanban_edit",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Statement is created",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
},
|
||||
{
|
||||
content: "Statement line is reconciled",
|
||||
trigger: "div[name='reconciled_line_name']",
|
||||
},
|
||||
{
|
||||
content: "Upload button is not shown for a synchronized journal (Kanban View)",
|
||||
trigger: "div.o_control_panel_main_buttons:not(:has(.o_button_upload_bill))",
|
||||
},
|
||||
{
|
||||
content: "Switch to List View",
|
||||
trigger: "button.o_switch_view.o_list",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Upload button is not shown for a synchronized journal (List View)",
|
||||
trigger: "div.o_control_panel_main_buttons:not(:has(.o_button_upload_bill))",
|
||||
},
|
||||
]
|
||||
});
|
||||
@@ -0,0 +1,53 @@
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_utils";
|
||||
import { accountTourSteps } from "@account/js/tours/account";
|
||||
|
||||
registry
|
||||
.category("web_tour.tours")
|
||||
.add("account_accountant_bank_reconciliation_widget_reload_activies_when_add_a_new_one", {
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
...accountTourSteps.goToAccountMenu("Open the accounting module"),
|
||||
|
||||
{
|
||||
content: "Open the bank reconciliation widget",
|
||||
trigger: "a.oe_kanban_action span:contains('Bank')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: "div.o_bank_reconciliation_kanban_renderer",
|
||||
},
|
||||
{
|
||||
content: "Select statement line",
|
||||
trigger: "div[name='bank_statement_line']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Open chatter",
|
||||
trigger: "i.oi.oi-lg[data-icon='forum']:not(:visible)",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Chatter is opened",
|
||||
trigger: "div.o_bank_rec_widget_chatter_container",
|
||||
},
|
||||
{
|
||||
content: "Create an activity",
|
||||
trigger: "button.o-mail-Chatter-activity",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Dialog activity is opened",
|
||||
trigger: "h4.modal-title:contains('Schedule Activity')",
|
||||
},
|
||||
{
|
||||
content: "Validate default activity",
|
||||
trigger: "button[name='action_schedule_activities']",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Activity is reloaded in the widget",
|
||||
trigger: "div.activity-container > i.oi.oi-lg[data-icon='schedule']",
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -0,0 +1,50 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
import { stepUtils } from "@web_tour/tour_utils";
|
||||
import { accountTourSteps } from "@account/js/tours/account";
|
||||
|
||||
registry.category("web_tour.tours").add("account_accountant_journal_items_export", {
|
||||
steps: () => [
|
||||
stepUtils.showAppsMenuItem(),
|
||||
...accountTourSteps.goToAccountMenu("Open the accounting module"),
|
||||
|
||||
{
|
||||
content: "Open journal items list view",
|
||||
trigger: 'button[data-menu-xmlid="account.menu_finance_entries"]',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Open journal items list view",
|
||||
trigger: 'a[data-menu-xmlid="account.menu_action_account_moves_all"]',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Select all items",
|
||||
trigger: 'thead tr th.o_list_record_selector',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Open export dialog",
|
||||
trigger: 'i[data-icon="more_vert"]',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Open export dialog",
|
||||
trigger: 'i[data-icon="upload"]',
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Click on the cancel button",
|
||||
trigger: 'button.o_form_button_cancel',
|
||||
run: "click",
|
||||
},
|
||||
// End
|
||||
...stepUtils.toggleHomeMenu(),
|
||||
...accountTourSteps.goToAccountMenu("Reset back to accounting module"),
|
||||
{
|
||||
content: "check that we're back on the dashboard",
|
||||
trigger: 'a:contains("Sales")',
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user