[IMP] base_vat: clearer labels for VIES check

This commit is contained in:
dip-odoo
2017-08-08 13:58:39 +02:00
committed by Richard Mathot
parent ff47130bc4
commit cfdc76d758
4 changed files with 5 additions and 5 deletions
@@ -7,4 +7,4 @@ class AccountConfigSettings(models.TransientModel):
_inherit = 'account.config.settings'
vat_check_vies = fields.Boolean(related='company_id.vat_check_vies',
string='VIES VAT Check')
string='Verify VAT Numbers')
+1 -1
View File
@@ -7,4 +7,4 @@ from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
vat_check_vies = fields.Boolean(string='VIES VAT Check')
vat_check_vies = fields.Boolean(string='Verify VAT Numbers')
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="account.account_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="eu_service" position="after">
<div class="col-xs-12 col-md-6 o_setting_box" title="Use VIES service to check VAT # of your customers rather than a simple format validation.">
<div class="col-xs-12 col-md-6 o_setting_box" title="If this checkbox is ticked, you will not be able to save a contact if its VAT number cannot be verified by the European VIES service.">
<div class="o_setting_left_pane">
<field name="vat_check_vies"/>
</div>
@@ -15,7 +15,7 @@
<label for="vat_check_vies"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="text-muted">
VAT # check with European VIES service
Verify VAT numbers using the European VIES service
</div>
</div>
</div>
+1 -1
View File
@@ -6,7 +6,7 @@
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="vat_check_vies" />
<field name="vat_check_vies" help="If this checkbox is ticked, you will not be able to save a contact if its VAT number cannot be verified by the European VIES service." />
</field>
<xpath expr="//field[@name='vat']" position="attributes">
<attribute name="string">VAT</attribute>