[FIX] l10n_ar: remove patch tour
Since we now make the fields of l10n_ar invisible for other companies, the accounting tour is failing and the test is no really useful, so we decided to delete it task: 3270458 Part-of: odoo/odoo#134617
This commit is contained in:
@@ -111,11 +111,5 @@ Master Data:
|
||||
'demo/account_supplier_refund_demo.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
'l10n_ar/static/src/**/*',
|
||||
],
|
||||
}
|
||||
,
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
/** @odoo-module **/
|
||||
import { patch } from "@web/core/utils/patch";
|
||||
import { registry } from "@web/core/registry";
|
||||
import "@account/js/tours/account";
|
||||
|
||||
patch(registry.category("web_tour.tours").get("account_tour"), {
|
||||
steps() {
|
||||
const originalSteps = super.steps();
|
||||
// Remove the step suggesting to change the name as it is done another way (document number)
|
||||
const filteredSteps = originalSteps.filter((step) => step.trigger != "input[name=name]");
|
||||
const stepIndex = filteredSteps.findIndex((step) => step.trigger == 'div[name=partner_id] input');
|
||||
filteredSteps.splice(stepIndex + 2, 0, {
|
||||
trigger: "div[name=l10n_ar_afip_responsibility_type_id] input",
|
||||
extra_trigger: "[name=move_type] [raw-value=out_invoice]",
|
||||
position: "bottom",
|
||||
content: "Set the AFIP Responsability",
|
||||
run: "text IVA",
|
||||
})
|
||||
filteredSteps.splice(stepIndex + 3, 0, {
|
||||
trigger: ".ui-menu-item > a:contains('IVA').ui-state-active",
|
||||
auto: true,
|
||||
in_modal: false,
|
||||
});
|
||||
return filteredSteps;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user