Closed dvdl16 closed 4 months ago
Also fix
Traceback (most recent call last):
File "apps/woocommerce_fusion/woocommerce_fusion/tasks/sync_items.py", line 142, in run
self.sync_wc_product_with_erpnext_item()
File "apps/woocommerce_fusion/woocommerce_fusion/tasks/sync_items.py", line 234, in sync_wc_product_with_erpnext_item
self.update_woocommerce_product(self.woocommerce_product, self.item)
File "apps/woocommerce_fusion/woocommerce_fusion/tasks/sync_items.py", line 259, in update_woocommerce_product
if self.set_product_fields(wc_product, item):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/woocommerce_fusion/woocommerce_fusion/tasks/sync_items.py", line 481, in set_product_fields
return wc_product_dirty
^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'wc_product_dirty' where it is not associated with a value
Current Behavior
Scheduled job
woocommerce_fusion.tasks.sync_items.clear_sync_hash_and_run_item_sync
fails for items without links to WooCommerce ProductsSteps To Reproduce
woocommerce_fusion.tasks.sync_items.clear_sync_hash_and_run_item_sync
Expected Behavior
Job should not fail
Anything else?
Environment and Versions
Operating System
Windows
What browsers are you seeing the problem on?
Chrome, Firefox