mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-26 06:12:05 +02:00
Initial commit: L10N_Americas packages
This commit is contained in:
commit
12b27ce151
714 changed files with 79328 additions and 0 deletions
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 13 KiB |
|
|
@ -0,0 +1,25 @@
|
|||
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, {
|
||||
// FIXME WOWL: this selector needs to work in both legacy and non-legacy views
|
||||
trigger: "div[name=l10n_ar_afip_responsibility_type_id] input",
|
||||
extra_trigger: "[name=move_type] [raw-value=out_invoice], [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,
|
||||
})
|
||||
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue