For an arbitrary set or multiset A of positive integers, we associate the A-partition function pA(n) (that is the number of partitions of n whose parts belong to A). We also consider the analogue of the k-colored partition function, namely, pA,−k(n). Further, we define a family of polynomials fA,n(x) which satisfy the equality fA,n(k)=pA,−k(n) for all n∈Z≥0 and k∈N. This paper concerns the polynomization of the Bessenrodt--Ono type inequality for fA,n(x): \begin{align*} f_{A,a}(x)f_{A,b}(x)>f_{A,a+b}(x), \end{align*} where a and b are arbitrary positive integers; and delivers some efficient criteria for its solutions. Moreover, we also investigate a few basic properties related to both functions fA,n(x) and fA,n′(x).