diff --git a/libqfieldsync/offline_converter.py b/libqfieldsync/offline_converter.py index 095e1a0..973ffcd 100644 --- a/libqfieldsync/offline_converter.py +++ b/libqfieldsync/offline_converter.py @@ -367,7 +367,11 @@ def remove_empty_groups_from_layer_tree_group( def post_process_offline_layers(self): project = QgsProject.instance() - project.setEvaluateDefaultValues(False) + + if Qgis.QGIS_VERSION_INT >= 34000: + project.setFlag(Qgis.ProjectFlag.EvaluateDefaultValuesOnProviderSide, False) + else: + project.setEvaluateDefaultValues(False) if Qgis.QGIS_VERSION_INT >= 32600: project.setTransactionMode(Qgis.TransactionMode.Disabled)