Use direct access to backend classes.

This commit is contained in:
Juanjo Garcia 2019-12-10 15:24:45 +01:00
parent b0093f8be2
commit d8cd27df3d
1 changed files with 1 additions and 2 deletions

View File

@ -72,12 +72,11 @@ class LocationCompany(AnalyticMixin, ModelSQL, ModelView):
AccountEntry = pool.get('analytic.account.entry')
Company = pool.get('company.company')
Location = pool.get('stock.location')
TableHandler = backend.get('TableHandler')
cursor = Transaction().connection.cursor()
super(LocationCompany, cls).__register__(module_name)
location_handler = TableHandler(Location, module_name)
location_handler = backend.TableHandler(Location, module_name)
# Migration from 3.4 from analytic_account_warehouse and analytic_stock
# modules: analytic accounting in stock.location changed to reference
# field to new stock.location.company model