Merge lp:~team-cluster/openerp-venezuela-localization/ovl70-fiscal-requirements-eochoa-vat into lp:openerp-venezuela-localization
Proposed by
Eduardo Ochoa - Cluster Brands
Status: | Superseded |
---|---|
Proposed branch: | lp:~team-cluster/openerp-venezuela-localization/ovl70-fiscal-requirements-eochoa-vat |
Merge into: | lp:openerp-venezuela-localization |
Diff against target: |
140 lines (+27/-57) 2 files modified
l10n_ve_fiscal_requirements/model/partner.py (+12/-3) l10n_ve_fiscal_requirements/model/seniat_url.py (+15/-54) |
To merge this branch: | bzr merge lp:~team-cluster/openerp-venezuela-localization/ovl70-fiscal-requirements-eochoa-vat |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
hbto [Vauxoo] http://www.vauxoo.com | Needs Fixing | ||
Nhomar - Vauxoo | Pending | ||
Review via email: mp+170369@code.launchpad.net |
This proposal has been superseded by a proposal from 2013-06-27.
Description of the change
Reengineering l10nve_
To post a comment you must log in.
Hello Eduardo, I am reviewing your merge proposal,
Changing Method digit(self, cr, uid, ids, vat, context=None):
def _get_valid_
by vat(self, vat):
def _complete_
gives same result.
In Section
elif re.search( r'^([VE] [0-9]{1, 8})$', vat):
'' 'Checked vat is an ID''' .rjust( 8,'0') _complete_ vat(vat)
vat = vat[0] + vat[1:]
vat = vat+self.
return self._get_rif(cr, uid, vat, url1, url2, context=context)
Changing
vat = vat+self. _complete_ vat(vat)
by
vat = self._validate_ rif(cr, uid, ids, vat, context=context)
would render same result.
BTW, _validate_rif method has gotten replaced with _complete_vat method of yours
Though I do _not_ agree with this concept of _always_ given to a vat of 8 chars
the ninth char, the validating digit, thus we are agreeing that all 8 chars people are Tax Payers, and there are chance that 8 chars people are non-tax payers,
In the event that we are validating this with SENIAT portal, we would be falling
into a loop which would lead to not allowing non-tax payers to be recorded within Partners.
Regarding to added method:
def vies_vat_ check(self, cr, uid, country_code, vat_number, context=None):
if country_code != "ve":
The country_code should be upper-cased, to avoid mistakes when code be [VE,vE,Ve]
and the method should have a minimum docstring (Copy & Paste from base_vat :D )
You have renamed method
def button_ check_vat( self, cr, uid, ids, context=None):
to def check_vat(self, cr, uid, ids, context=None):
And it could look good to me, but
you have forgotten to change the name attribute of button used in the view in res.partner
which uses that same method name
<button name="button_ check_vat" string="Check Validity" type="object" icon="gtk-execute" class="oe_inline"/>
Thanks in advance for your contribution
Hbto