From 07aa38ee3e6f30a6ea554ff7568ec84246093580 Mon Sep 17 00:00:00 2001 From: Shadrak Gurupnor <30501401+shadrak98@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:49:52 +0530 Subject: [PATCH] fix(usage-record): Creation of duplicate usage record Invoice is not set until document is submitted and hence while validating duplicate usage record creation it fails --- press/press/doctype/usage_record/usage_record.py | 1 - 1 file changed, 1 deletion(-) diff --git a/press/press/doctype/usage_record/usage_record.py b/press/press/doctype/usage_record/usage_record.py index 128cfedee2..10aedfc8d1 100644 --- a/press/press/doctype/usage_record/usage_record.py +++ b/press/press/doctype/usage_record/usage_record.py @@ -87,7 +87,6 @@ def validate_duplicate_usage_record(self): "plan": self.plan, "docstatus": 1, "subscription": self.subscription, - "invoice": self.invoice, }, pluck="name", )