I created my customize report and I need to override the financial_statement.js. Could someone help me?
Update: I already override the financial_statements.js, but when I add default value for finance book. It doesn’t display in the report.
Any luck with this? Having thesame issue when trying to set the finance book default.
Still haven’t resolve this but my alternative solution for this is I added another finance book filter and just hide it. Hope this would help you.
Hi @abrarpv97 I haven’t been able to get any solution for overriding the financial_statement but I think using monkey patch would be effective.
@Kiranmai_M Thanks for your response.but In my case it is not a class, i just want to override get_filters()
@abrarpv97 Try below steps :
- Add a file in public/js/filename.js in your custom app.
- In that js file, add below :
core_class_name.prototype.core_function_name = function(){
// write your custom logic here
} - Add the path in hooks.py under app_include_js hook in your custom app.