From 0a13c91eb07c7fb9b124f81b94ba9ef9e07761ba Mon Sep 17 00:00:00 2001 From: ruuushhh Date: Wed, 8 Nov 2023 16:36:00 +0530 Subject: [PATCH] flake8 resolved --- apps/business_central/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/business_central/utils.py b/apps/business_central/utils.py index 2906401..4078360 100644 --- a/apps/business_central/utils.py +++ b/apps/business_central/utils.py @@ -88,7 +88,7 @@ def sync_accounts(self): Synchronize accounts from MS Dynamics SDK to your application """ workspace = Workspace.objects.get(id=self.workspace_id) - self.company_id = workspace.business_central_company_id + self.connection.company_id = workspace.business_central_company_id accounts = self.connection.accounts.get_all() self._sync_data(accounts, 'ACCOUNT', 'accounts', self.workspace_id) @@ -99,7 +99,7 @@ def sync_vendors(self): Synchronize vendors from MS Dynamics SDK to your application """ workspace = Workspace.objects.get(id=self.workspace_id) - self.company_id = workspace.business_central_company_id + self.connection.company_id = workspace.business_central_company_id vendors = self.connection.vendors.get_all() self._sync_data(vendors, 'VENDOR', 'vendor', self.workspace_id) @@ -110,7 +110,7 @@ def sync_employees(self): Synchronize employees from MS Dynamics SDK to your application """ workspace = Workspace.objects.get(id=self.workspace_id) - self.company_id = workspace.business_central_company_id + self.connection.company_id = workspace.business_central_company_id employees = self.connection.employees.get_all() self._sync_data(employees, 'EMPLOYEE', 'employee', self.workspace_id) @@ -121,7 +121,7 @@ def sync_locations(self): Synchronize locations from MS Dynamics SDK to your application """ workspace = Workspace.objects.get(id=self.workspace_id) - self.company_id = workspace.business_central_company_id + self.connection.company_id = workspace.business_central_company_id locations = self.connection.locations.get_all() self._sync_data(locations, 'LOCATION', 'location', self.workspace_id)