diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_ar/static/src | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/l10n_ar/static/src')
| -rw-r--r-- | addons/l10n_ar/static/src/js/tours/account.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/l10n_ar/static/src/js/tours/account.js b/addons/l10n_ar/static/src/js/tours/account.js new file mode 100644 index 00000000..ca3e4467 --- /dev/null +++ b/addons/l10n_ar/static/src/js/tours/account.js @@ -0,0 +1,24 @@ +odoo.define('l10n_ar.account_tour', function(require) { +"use strict"; + + let tour = require('web_tour.tour'); + let account_tour = tour.tours.account_tour; + // Remove the step suggesting to change the name as it is done another way (document number) + account_tour.steps = _.filter(account_tour.steps, step => step.trigger != "input[name=name]"); + + // Configure the AFIP Responsibility + let partner_step_idx = _.findIndex(account_tour.steps, step => step.trigger == 'div[name=partner_id] input'); + account_tour.steps.splice(partner_step_idx + 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", + }) + account_tour.steps.splice(partner_step_idx + 3, 0, { + trigger: ".ui-menu-item > a:contains('IVA').ui-state-active", + auto: true, + in_modal: false, + }) + +}) |
