diff --git a/apps/xero/utils.py b/apps/xero/utils.py index bf026c91..b68b628b 100644 --- a/apps/xero/utils.py +++ b/apps/xero/utils.py @@ -143,6 +143,7 @@ def sync_tenants(self): "display_name": "Tenant", "value": tenant["tenantName"], "destination_id": tenant["tenantId"], + "active": True } ) @@ -194,6 +195,7 @@ def sync_tax_codes(self): "tax_rate": effective_tax_rate, "tax_refs": tax_code["TaxComponents"], }, + "active": True } ) @@ -386,6 +388,7 @@ def sync_tracking_categories(self): "display_name": tracking_category["Name"], "value": option["Name"], "destination_id": option["TrackingOptionID"], + "active": True if option["Status"] == "ACTIVE" else False, } ) @@ -419,6 +422,7 @@ def sync_items(self): "display_name": "Item", "value": item["Code"], "destination_id": item["ItemID"], + "active": True } ) DestinationAttribute.bulk_create_or_update_destination_attributes( @@ -438,6 +442,7 @@ def create_contact_destination_attribute(self, contact): if "EmailAddress" in contact else None }, + "active": True }, self.workspace_id, )