[FIX] l10n_ch : Correction made to look for customer invoices only on BVR import(Case 5493)
bzr revid: jvo@tinyerp.com-20110601122804-9m5x99h62nz9xcbs
This commit is contained in:
@@ -36,7 +36,7 @@ def _reconstruct_invoice_ref(cursor, user, reference, context=None):
|
||||
user_current=user_obj.browse(cursor, user, user)
|
||||
|
||||
##
|
||||
cursor.execute("SELECT inv.id,inv.number from account_invoice AS inv where inv.company_id = %s" ,(user_current.company_id.id,))
|
||||
cursor.execute("SELECT inv.id,inv.number from account_invoice AS inv where inv.company_id = %s and type='out_invoice'" ,(user_current.company_id.id,))
|
||||
result_invoice = cursor.fetchall()
|
||||
REF = re.compile('[^0-9]')
|
||||
for inv_id,inv_name in result_invoice:
|
||||
|
||||
Reference in New Issue
Block a user