@makarand_b actually I want to add logics in get_items method inside stock_entry.py. this method is executed by many triggers e.g. User start production, manufacture an item etc… not just when user click get_items button. How to append this server side?
Actually what I need is…I just want to add some lines of **if** logic inside stock_entry.py in method get_items This method is triggered when production_order with BOM is filled or the user click the '‘Get Items’ button.
How to add logic or override this method through our own app?
What I did is copy paste stock_entry.py into testdoctype.py:
if not self.posting_date or not self.posting_time:
frappe.throw(_("Posting date and posting time is mandatory"))
I have a custom app I have created. I have properly configured its methods, and it finds the route when run directly from python console. However, when I set up a custom script for Sales Invoice to find the method specified and imported within the custom app (which has also been successfully installed) I get the following message:
The resource you are looking for is not available
So, I need help in the following: