diff --git a/.DS_Store b/.DS_Store old mode 100644 new mode 100755 diff --git a/static/src/js/frontend.js b/static/src/js/frontend.js index a66993e..3d2b43e 100755 --- a/static/src/js/frontend.js +++ b/static/src/js/frontend.js @@ -76,10 +76,13 @@ odoo.define('module.DianInvoice', function(require) { if(String(company_name)=="") { $("select[name='doctype']").val(13); + $("input[name='verificationDigit']").val(''); + $("input[name='is_company']").prop( "checked", false ); } if(String(company_name).length > 0 ) { $("select[name='doctype']").val(31); + $("input[name='is_company']").prop( "checked", true ); } } function update_customer_full_name() diff --git a/views/l10n_co_res_partner.xml b/views/l10n_co_res_partner.xml index 3c6fe15..c57b87a 100755 --- a/views/l10n_co_res_partner.xml +++ b/views/l10n_co_res_partner.xml @@ -222,7 +222,7 @@ 'city', 'zip', 'street', 'street2', 'state_id', 'country_id', 'vat', 'company_name', 'district_id','mobile','partner_id', 'x_name1','x_name2','x_lastname1','x_lastname2', - 'xidentification','xcity', 'doctype', 'verificationDigit', 'pos_name', 'companyBrandName' + 'xidentification','xcity', 'doctype', 'verificationDigit', 'pos_name', 'companyBrandName', 'is_company' ]"/> diff --git a/views/website.xml b/views/website.xml index a4a271b..c7f6dd0 100755 --- a/views/website.xml +++ b/views/website.xml @@ -44,6 +44,7 @@
+ @@ -51,11 +52,11 @@ - + - +