[FIX] analytic: remove useless query

This query itself is useless and its result is never watched.

X-original-commit: 1e15dff32d224ed0dafc32d1b7bab37c56d58fba
Part-of: odoo/odoo#105259
This commit is contained in:
gawa-odoo
2022-11-08 01:28:16 +01:00
parent 2ea10e2942
commit cee5a63349
@@ -102,9 +102,6 @@ class AccountAnalyticAccount(models.Model):
self.flush_recordset(['company_id'])
self.env['account.analytic.line'].flush_model(['account_id', 'company_id'])
self._cr.execute('''
SELECT line.id, line.company_id, line.account_id FROM account_analytic_line line''')
self._cr.execute('''
SELECT line.account_id
FROM account_analytic_line line