update the check of vat copyrights
bzr revid: christophe@tinyerp.com-20080826082315-w8tj7t2n0i7t2eir
This commit is contained in:
parent
04d097ed47
commit
51c6c66a7c
|
@ -28,7 +28,7 @@
|
|||
###############################################################################
|
||||
{
|
||||
"name" : "VAT",
|
||||
"description": "Enable the VAT Number for the partner. Check the validity of that VAT Number (idea and code from Tryton (c2bk)).",
|
||||
"description": "Enable the VAT Number for the partner. Check the validity of that VAT Number (idea and code from Tryton (B2CK)).",
|
||||
"version" : "1.0",
|
||||
"author" : "Tiny",
|
||||
"category" : "Generic Modules/Base",
|
||||
|
|
|
@ -26,6 +26,12 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
###############################################################################
|
||||
#
|
||||
# The methods "check_vat_[a-z]{2}" are copyrighted:
|
||||
# - Cedric Krier.
|
||||
# - Bertrand Chenal
|
||||
# - B2CK
|
||||
#
|
||||
|
||||
from osv import osv
|
||||
|
||||
|
@ -52,7 +58,7 @@ class res_partner(osv.osv):
|
|||
|
||||
_constraints = [(check_vat, "The VAT doesn't seem to be correct.", ["vat"])]
|
||||
|
||||
# code from the following methods come from Tryton (c2bk)
|
||||
# code from the following methods come from Tryton (B2CK)
|
||||
# http://www.tryton.org/hgwebdir.cgi/modules/relationship/file/544d1de586d9/party.py
|
||||
def check_vat_at(self, vat):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue