Skip to content

Commit

Permalink
website_sale_vat_required: Improve tour
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestotejeda committed Jun 22, 2018
1 parent 7645680 commit e0531f9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ odoo.define('website_sale_vat_required.tour', function(require) {
run: function (actions) {
$('div.has-error input[name="vat"]').val("BE0477472701");
if ($('#div_phone').hasClass('has-error')){
$('#div_phone input[name="phone"]').val('11111111');
$('#div_phone input').val('11111111');
}
var input_accept_legal_terms = $('div.has-error input[name="accepted_legal_terms"]');
if (!_.isUndefined(input_accept_legal_terms && !input_accept_legal_terms== false)){
$('div.has-error input[name="accepted_legal_terms"]').prop( "checked", true );
}
}
},
Expand Down

0 comments on commit e0531f9

Please sign in to comment.