refactor: rename primary_category to external_category

This commit is contained in:
2026-01-14 02:59:11 +03:00
parent 1fb280607a
commit e7672588c6
12 changed files with 306 additions and 85 deletions

View File

@@ -48,7 +48,7 @@ def to_api_product(
data['name'] = product.name
if 'parent_category_sku' in fields:
# Получаем категорию через primary_category или fallback на M2M categories
# Получаем категорию через external_category или fallback на M2M categories
_, category_sku = product.get_category_for_integration('recommerce')
if category_sku:
data['parent_category_sku'] = category_sku