From Stock Entry I’m fething a field value to Purchase Invoice ( Submitted ), Which is getting populated but I have to Manually update the Purchase Invoice after script runs. The stock_entry.py is a script in my Custom App.
I treid these funtions but none of them are working for me,
pi_doc.save(ignore_permission=True),
pi_doc.db_set({‘custom_expenses_new\_’: new_expense_total,
‘custom_expense_detail’: new_detail_text
}),
None of them are working which update function should I used.
The Field are Allow on Submit.
