← Back to team overview

account-payment-team team mailing list archive

[Merge] lp:~avanzosc/account-payment/6.1 into lp:account-payment

 

Daniel Campos (Avanzosc) has proposed merging lp:~avanzosc/account-payment/6.1 into lp:account-payment.

Requested reviews:
  Account Payment (account-payment-team)

For more details, see:
https://code.launchpad.net/~avanzosc/account-payment/6.1/+merge/147613

VAT validation now is a web service function.
-- 
https://code.launchpad.net/~avanzosc/account-payment/6.1/+merge/147613
Your team Account Payment is requested to review the proposed merge of lp:~avanzosc/account-payment/6.1 into lp:account-payment.
=== modified file 'nan_account_bank_statement/__init__.py'
--- nan_account_bank_statement/__init__.py	2012-01-20 10:41:21 +0000
+++ nan_account_bank_statement/__init__.py	2013-02-11 09:07:25 +0000
@@ -2,6 +2,9 @@
 ##############################################################################
 #
 # Copyright (c) 2009  �gel �varez - NaN  (http://www.nan-tic.com) All Rights Reserved.
+# AvanzOSC, Advanced Open Source Consulting 
+# Copyright (C) 2011-2012 Iker Coranti (www.avanzosc.com). All Rights Reserved
+# Update to OpenERP 6.1 Iker Coranti
 #
 #
 # WARNING: This program as such is intended to be used by professional

=== modified file 'nan_account_bank_statement/account_statement.py'
--- nan_account_bank_statement/account_statement.py	2012-09-20 10:19:26 +0000
+++ nan_account_bank_statement/account_statement.py	2013-02-11 09:07:25 +0000
@@ -426,13 +426,16 @@
         partner_facade = self.pool.get('res.partner')
         partner = None
 
-        partner_ids = partner_facade.search(cr, uid, [
-                                ('vat', 'like', '%s' % vat),
-                                ('active', '=', True),
-                            ], context=context)
-        if len(partner_ids) == 1:
-            # We found a partner with that VAT number
-            partner = partner_facade.browse(cr, uid, partner_ids[0], context)
+        #if partner_facade.check_vat_es( vat.replace(' ', '') ):
+        code, number = vat[:2].lower(), vat[2:].replace(' ', '')
+        if partner_facade.simple_vat_check( cr, uid, code, number, context):
+            partner_ids = partner_facade.search(cr, uid, [
+                                    ('vat', 'like', '%s' % vat),
+                                    ('active', '=', True),
+                                ], context=context)
+            if len(partner_ids) == 1:
+                # We found a partner with that VAT number
+                partner = partner_facade.browse(cr, uid, partner_ids[0], context)
         return partner
 
 

=== modified file 'nan_account_bank_statement/i18n/ca.po'
--- nan_account_bank_statement/i18n/ca.po	2013-01-08 05:54:50 +0000
+++ nan_account_bank_statement/i18n/ca.po	2013-02-11 09:07:25 +0000
@@ -8,15 +8,15 @@
 "Project-Id-Version: OpenERP Server 5.0.14\n"
 "Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
 "POT-Creation-Date: 2011-03-27 01:57+0000\n"
-"PO-Revision-Date: 2012-11-22 18:54+0000\n"
+"PO-Revision-Date: 2011-03-27 17:23+0000\n"
 "Last-Translator: Albert Cervera i Areny - http://www.NaN-tic.com <albert@nan-"
 "tic.com>\n"
 "Language-Team: Catalan <kde-i18n-ca@xxxxxxx>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-01-08 05:54+0000\n"
-"X-Generator: Launchpad (build 16402)\n"
+"X-Launchpad-Export-Date: 2011-10-28 05:57+0000\n"
+"X-Generator: Launchpad (build 14197)\n"
 "Language: ca\n"
 
 #. module: nan_account_bank_statement
@@ -372,3 +372,51 @@
 msgstr ""
 "Company for account %(account)s does not match rule's company for rule "
 "%(rule)s."
+
+#~ msgid ""
+#~ "The Object name must start with x_ and not contain any special character !"
+#~ msgstr ""
+#~ "El nom de l'objecte ha de començar per x_ i no pot contenir cap caràcter "
+#~ "especial !"
+
+#~ msgid "NaN account bank statement"
+#~ msgstr "NaN extractes bancaris"
+
+#~ msgid "Invalid model name in the action definition."
+#~ msgstr "Nom de model no vàlid en la definició de l'acció."
+
+#, python-format
+#~ msgid ""
+#~ "You cannot search by reference because it seems this line has not been "
+#~ "imported from a bank statement file. The system expected a \"reference\" key "
+#~ "in the line with amount %.2f in statement %s."
+#~ msgstr ""
+#~ "No podeu buscar per referència perquè sembla que la línia no ha estat "
+#~ "importada des d'un fitxer d'extracte bancari. El sistema espera una clau "
+#~ "\"reference\" en la línia amb import %.2f en l'extracte %s."
+
+#~ msgid "Invalid XML for View Architecture!"
+#~ msgstr "XML no vàlid per l'estructura de la vista!"
+
+#, python-format
+#~ msgid ""
+#~ "You cannot search by VAT because it seems this line has not been imported "
+#~ "from a bank statement file. The system expected a \"vat\" key in the line "
+#~ "with amount %.2f in statement %s."
+#~ msgstr ""
+#~ "No podeu buscar per CIF/NIF perquè sembla que la línia no ha estat importada "
+#~ "des d'un fitxer d'extracte bancari. El sistema espera una clau \"vat\" en la "
+#~ "línia amb import %.2f en l'extracte %s."
+
+#, python-format
+#~ msgid ""
+#~ "You cannot search by invoice because it seems this line has not been "
+#~ "imported from a bank statement file. The system expected an \"invoice\" key "
+#~ "in the line with amount %.2f in statement %s."
+#~ msgstr ""
+#~ "No podeu buscar per factura perquè sembla que la línia no ha estat importada "
+#~ "des d'un fitxer d'extracte bancari. El sistema espera una clau \"invoice\" "
+#~ "en la línia amb import %.2f en l'extracte %s."
+
+#~ msgid "Invoice"
+#~ msgstr "Factura"

=== modified file 'nan_account_bank_statement/i18n/es.po'
--- nan_account_bank_statement/i18n/es.po	2013-01-08 05:54:50 +0000
+++ nan_account_bank_statement/i18n/es.po	2013-02-11 09:07:25 +0000
@@ -8,15 +8,15 @@
 "Project-Id-Version: OpenERP Server 5.0.14\n"
 "Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
 "POT-Creation-Date: 2011-03-27 01:57+0000\n"
-"PO-Revision-Date: 2012-11-22 18:54+0000\n"
+"PO-Revision-Date: 2011-03-27 17:22+0000\n"
 "Last-Translator: Albert Cervera i Areny - http://www.NaN-tic.com <albert@nan-"
 "tic.com>\n"
 "Language-Team: Catalan <kde-i18n-ca@xxxxxxx>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-01-08 05:54+0000\n"
-"X-Generator: Launchpad (build 16402)\n"
+"X-Launchpad-Export-Date: 2011-10-28 05:57+0000\n"
+"X-Generator: Launchpad (build 14197)\n"
 "Language: ca\n"
 
 #. module: nan_account_bank_statement
@@ -372,3 +372,51 @@
 msgstr ""
 "Company for account %(account)s does not match rule's company for rule "
 "%(rule)s."
+
+#~ msgid ""
+#~ "The Object name must start with x_ and not contain any special character !"
+#~ msgstr ""
+#~ "El nombre de objeto debe empezar por x_ y no puede contener ningún carácter "
+#~ "especial !"
+
+#~ msgid "NaN account bank statement"
+#~ msgstr "NaN extractos bancarios"
+
+#~ msgid "Invalid model name in the action definition."
+#~ msgstr "Modelo no válido en la definición de la acción."
+
+#, python-format
+#~ msgid ""
+#~ "You cannot search by reference because it seems this line has not been "
+#~ "imported from a bank statement file. The system expected a \"reference\" key "
+#~ "in the line with amount %.2f in statement %s."
+#~ msgstr ""
+#~ "No puede buscar por referencia porqué parece que la línea no se ha importado "
+#~ "des de un fichero de extracto bancario. El sistema espera una clave "
+#~ "\"reference\" en la línea con importe %.2f en el extracto %s."
+
+#~ msgid "Invalid XML for View Architecture!"
+#~ msgstr "XML no válido para la estructura de la vista!"
+
+#, python-format
+#~ msgid ""
+#~ "You cannot search by VAT because it seems this line has not been imported "
+#~ "from a bank statement file. The system expected a \"vat\" key in the line "
+#~ "with amount %.2f in statement %s."
+#~ msgstr ""
+#~ "No puede buscar por CIF/NIF porqué parece que la línea no se ha importado a "
+#~ "partir de un fichero de extracto bancario. El sistema espera una clave "
+#~ "\"vat\" en la línea con importe %.2f en el extracto %s."
+
+#, python-format
+#~ msgid ""
+#~ "You cannot search by invoice because it seems this line has not been "
+#~ "imported from a bank statement file. The system expected an \"invoice\" key "
+#~ "in the line with amount %.2f in statement %s."
+#~ msgstr ""
+#~ "No puede buscar por factura porqué parece que la línea no se ha importado a "
+#~ "partir de un fichero de extracto bancario. El sistema espera una clave "
+#~ "\"invoice\" en la línea con importe %.2f en el extracto %s."
+
+#~ msgid "Invoice"
+#~ msgstr "Factura"


Follow ups