|
@@ -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,
|