feat: ability to set default desk page #12214
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, if user has to display customisations across users, he has to edit the Standard Desk Pages for eg. Accounting Page in ERPNext.
Now for standard pages, the changes are stored in JSON rather than database, on migrate or new releases these customisations on standard pages gets reset since JSON is reset.
The above problem can be rectified by creating a new Desk Page extending the standard one, but this won't replace the standard one, but it will be shown beside it.
This PR introduces a check called 'Is Default' which can be checked if a desk page is extended from another, this check behaves same as, user-defined customised page but it is for all users.
i.e a Custom Accounting Page extending standard Accounting with Is Default checked will be shown to all users.
To customise a standard page:
Now reload the desk and check if the standard page shows the above customised version.
Docs: frappe/erpnext_documentation#244