diff --git a/addons/l10n_ch/wizard/bvr_import.py b/addons/l10n_ch/wizard/bvr_import.py index 5fb7bda2a12..1fe8380b033 100644 --- a/addons/l10n_ch/wizard/bvr_import.py +++ b/addons/l10n_ch/wizard/bvr_import.py @@ -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: