Prevent importing zero as department number, from CORE API
This commit is contained in:
parent
ba31725ad1
commit
10c119ea60
|
@ -509,7 +509,7 @@ class ProductImporter(FromCOREPOSAPI, corepos_importing.model.ProductImporter):
|
||||||
|
|
||||||
department_number = None
|
department_number = None
|
||||||
if 'department' in product:
|
if 'department' in product:
|
||||||
department_number = int(product['department'])
|
department_number = int(product['department']) or None
|
||||||
|
|
||||||
subdepartment_number = None
|
subdepartment_number = None
|
||||||
if 'subdept' in product:
|
if 'subdept' in product:
|
||||||
|
|
Loading…
Reference in a new issue