public function Insert()
    {
        if ($this->isNewVariant()) {
            $this->sId = $this->sRestriction;
            $variant = $this->DatabaseCopy();
            /** @var TdbShopArticle $product */
            $product = $this->oTable;
            if (!$product->fieldActive) {
                $variantTableEditor = TTools::GetTableEditorManager('shop_article', $variant->id);
                $variantTableEditor->SaveField('variant_parent_is_active', '0');
            }
        } else {
            parent::Insert();
        }
    }