deisy 5 vuotta sitten
vanhempi
commit
f8de8e4b1a
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      controllers/helpers/account_invoice.py

+ 1 - 2
controllers/helpers/account_invoice.py

@@ -3,7 +3,6 @@ from openerp.http import request as r
 
 def get_account_invoice():
     user_store = r.env.user.store_id.id
-    user_id = r.env.user.id
     company_currency_rate = r.env.user.company_id.currency_id.rate
     query = '''
         SELECT
@@ -24,7 +23,7 @@ def get_account_invoice():
         LEFT JOIN res_company AS company
         ON company.id = invoice.company_id
         WHERE invoice.state = 'open'
-        AND journal.store_id = ''' + str(user_store) + ''' AND invoice.user_id = ''' + str(user_id) + '''
+        AND journal.store_id = ''' + str(user_store) + '''
         GROUP BY
         	invoice.id,
         	rate.currency_id,