diff --git a/app/models/repository_column.rb b/app/models/repository_column.rb index ef0e598d3..94239886a 100644 --- a/app/models/repository_column.rb +++ b/app/models/repository_column.rb @@ -87,7 +87,11 @@ class RepositoryColumn < ApplicationRecord end def importable? - Extends::REPOSITORY_IMPORTABLE_TYPES.include?(data_type.to_sym) + if data_type == 'RepositoryStockValue' + RepositoryBase.stock_management_enabled? + else + Extends::REPOSITORY_IMPORTABLE_TYPES.include?(data_type.to_sym) + end end def deep_dup