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.
PR adds support for Plugins. Plugins allow extending Frappe Books by using third-party authors. For a dummy template plugin, check the folder Plugin Template
schemas/index.ts
: builds to export schema extensionsmodels/index.ts
: builds to extend renderer code using an initialize function:fyo
methods, such as callingfyo.doc.registerModels
to register models.Development
Plugins that are being developed should be in the
plugins
subfolder. After it's done developing,yarn plugin --build
can be used to build the plugin, this will create abooks_plugin
file.Usage
Tentative installation of plugins is to be done by going to the plugin list view (open Quick Search and type Plugin), click on add and select the built
books_plugin
file.After a plugin has been saved, changes will be visible on reloading the app.
Several additional things are required to incorporate this feature to the extent envisioned.