Import the Product.not_for_sale
flag from CORE-POS
This commit is contained in:
parent
5ac3a3d82c
commit
67861522eb
|
@ -548,6 +548,7 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter):
|
||||||
'food_stampable',
|
'food_stampable',
|
||||||
# 'tax1',
|
# 'tax1',
|
||||||
'tax_code',
|
'tax_code',
|
||||||
|
'not_for_sale',
|
||||||
]
|
]
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
@ -627,6 +628,8 @@ class ProductImporter(FromCOREPOS, corepos_importing.model.ProductImporter):
|
||||||
'sale_price_starts': None,
|
'sale_price_starts': None,
|
||||||
'sale_price_ends': None,
|
'sale_price_ends': None,
|
||||||
'sale_price_current': False,
|
'sale_price_current': False,
|
||||||
|
|
||||||
|
'not_for_sale': not product.in_use,
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'tax_code' in self.fields:
|
if 'tax_code' in self.fields:
|
||||||
|
|
Loading…
Reference in a new issue