fix: mandatory depends on for the rejected inventory dimension field

This commit is contained in:
Rohit Waghchaure
2025-12-02 20:21:07 +05:30
parent cd5b913750
commit 5daa625fe8

View File

@@ -197,8 +197,7 @@ class InventoryDimension(Document):
options=self.reference_document, options=self.reference_document,
label=_("Rejected " + self.dimension_name), label=_("Rejected " + self.dimension_name),
search_index=1, search_index=1,
reqd=self.reqd, mandatory_depends_on="eval:doc.rejected_qty > 0",
mandatory_depends_on=self.mandatory_depends_on,
) )
) )