diff --git a/rattail_corepos/corepos/importing/rattail.py b/rattail_corepos/corepos/importing/rattail.py index a2dba7f..895a973 100644 --- a/rattail_corepos/corepos/importing/rattail.py +++ b/rattail_corepos/corepos/importing/rattail.py @@ -317,8 +317,9 @@ class ProductImporter(FromRattail, corepos_importing.model.ProductImporter): if corepos_product: # update our Rattail Product with the CORE ID - product.corepos_id = int(corepos_product['id']) - return corepos_product + if not self.dry_run: + product.corepos_id = int(corepos_product['id']) + return corepos_product def update_object(self, corepos_product, data, local_data=None):