Import the Product.not_for_sale flag from CORE-POS

This commit is contained in:
Lance Edgar 2023-10-19 19:13:22 -05:00
parent 5ac3a3d82c
commit 67861522eb

View file

@ -548,6 +548,7 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter):
'food_stampable',
# 'tax1',
'tax_code',
'not_for_sale',
]
def setup(self):
@ -627,6 +628,8 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter):
'sale_price_starts': None,
'sale_price_ends': None,
'sale_price_current': False,
'not_for_sale': not product.in_use,
}
if 'tax_code' in self.fields: