How to override the filter so that I can include my new doctype in reference_doctype

Hi, can somebody help me on this issue, I created a new doctype “Lot Reservation Entry” to manage and accept reservations. Now, i want to use the payment entry “Receive” to record payment on reservations. My question is, how can i include the new doctype “Lot Reservation Entry” so that payment entry can reference to this doctype, currently the standard doctype in filters are Sales Invoice, Sales Order, Journal Entry, Dunning. I wanted to include the Lot Reservation Entry in the filter. Is there a way to override the standard filter to include my new doctype? Thanks in advance.

Hi @EdmundDelima,

Here, we share the code reference of the Payment Entry filter.

I hope this helps.
Thank You!

Hi @NCP ,

Thank you for your help, it worked, the “Lot Reservation Entry” is now included in the list of options as shown in the photo “error message 1” however, there is a validation error message as shown in the photo “error message 2”, how can we override that validation error? Thanks in advance.


Hmm :thinking:,

Because by default doctype link with accounts so use can’t add another option.

Thank You!

oh okay so it is not possible? :slightly_frowning_face: :slightly_frowning_face:

perhaps, not possible.
if you change all account-related scenarios then possible, perhaps.

Thank You!