DEV Community

Cover image for INSIGHT ON FRAPPE FRAMEWORK
sammie
sammie

Posted on

INSIGHT ON FRAPPE FRAMEWORK

What Frappe's ERPNext
Frappe is a major open-source software company that offers a variety of tools and solutions to assist businesses in properly managing their operations. ERPNext, a comprehensive, cloud-based enterprise resource planning (ERP) software that helps organizations of all sizes to manage their finances, operations, and resources with ease, is one of Frappe's core solutions.

A collection of materials to help you get started designing apps with Frappe.

  • Python: Frappe's server-side programming is done in Python 3.

  • MariaDB/Postgres: To construct database-driven apps with Frappe, you must first learn database administration fundamentals and common SQL queries.

  • HTML/CSS: To create user interfaces with the Frappe Framework, you must first master fundamental HTML/CSS and the Bootstrap CSS Framework.

  • JavaScript/jQuery: You'll need to learn JavaScript and the jQuery library to alter forms and develop dynamic user interfaces.

  • Jinja Templating: You'll need to learn the Jinja Templating language to create Web Views and Print Templates.

  • Git/GitHub: Learn how to contribute to an open source project by utilizing Git and GitHub, two outstanding code management and sharing services.

To understand the purpose and benefits of Frappe's ERP, it's important to first define some of the key concepts and
terminology used in the Frappe framework. These include:

1.Doctype:
A DocType is the foundation of any application built on the Frappe Framework. It describes your data's Model and View. It describes what fields are saved for your data and how they interact with one another. It includes information about how your data is named. We must first enable developer mode on our bench before we can construct DocTypes.

Enable Developer Mode
$ bench set-config -g developer_mode true
$ bench start

Creating a DocType

The first doctype we will create is Article. To create it, click on New.

  • Enter Name as Article

  • Select Library Management in Module

  • Add the following fields in the Fields table:
    Article Name (Data, Mandatory)
    Image (Attach Image)
    Author (Data)
    Description (Text Editor)
    ISBN (Data)
    Status (Select) - Enter two options: Issued and Available (Type Issued, hit enter, then type Available)
    Publisher (Data)

After clicking

Create new Article

DocType Features

Naming
If you used the Form to create a document, you may have observed that the name value of the document was a randomly generated hash. Let us make a tweak so that the Article Name we specify becomes the document's name.

Form Layout
Let's rearrange the fields in the form to make the most of the available space. Scroll down to the Fields section of the Article doctype and add two new Column Break and Section Break fields. Form Settings can also be modified.

Permissions
For a DocType, you can also specify which roles and actions are permitted and which are not. Scroll down to the Permission Rules section and add the roles to the Article doctype.

2.Workflow:
A workflow is a set of processes that must be followed to perform a certain task. Workflows for various doctypes can be defined and can contain approval processes, notifications, and other activities. Once a Workflow is created, you can take action on it via Workflow Actions.

How to Create a Workflow

  • Go to the Workflow list, click on New.

  • Enter a name for the Workflow and select the DocType on
    which to be applied.

  • Enter the different states of the Workflow. Enter Doc
    Status for them, select which field to update from the
    Update Field column, enter what the value will be updated
    to under Update Value.

The Workflow States can have different colors according to
the state. Eg: Green for success. Document statuses: Saved
= 0, Submitted = 1, Cancelled = 2.

workflow

  • Enter the Transition Rules.

Transition rules

3.Module:
A DocType will always belong to a module, to enable easier grouping of related models. Frappe comes with a lot of built-in modules. For e.g

Core - contains doctypes like DocType, DocField, Report, System Settings, etc
Desk - contains doctypes like ToDo, Event, Note, Kanban Board, etc
Email - contains doctypes like Email Account,
Newsletter, Email Group, etc
Modules also help in grouping code files in directories. The controller files generated by a DocType will live in its respective Module directory.
.

file directory

4.Client Script
A client script is a piece of code that can be applied to a doctype or form to enhance its functionality. Validation, automation, and other client behavior can be added to a doctype or form using client scripts. make sure to test them on different browsers to ensure compatibility across your user base. Client Script was renamed from custom scripts in version 13.

We may better appreciate the purpose and benefits of Frappe's ERP now that we've identified some of the important concepts and terminology utilized in the Frappe architecture. The goal of Frappe's ERP is to deliver robust, flexible, and customized solutions for businesses of all sizes to manage their operations in a streamlined and efficient manner. Frappe's ERP enables organizations to manage their processes more effectively, decrease manual data entry and errors, and gain real-time visibility into their operations by integrating all of the essential business tasks onto a single platform.

Benefits of using Frappe's ERP include:

  • Customization: Frappe's ERP can be tailored to a company's exact requirements. It provides a versatile architecture that enables developers to design and alter modules based on their needs.

  • Scalability: The software is meant to be scalable, which means it can easily accommodate a growing firm. It supports the addition of new modules and users, making it an excellent alternative for enterprises of all sizes.

  • Integration: Frappe's ERP can be coupled with third-party software such as accounting software, CRM software, and e-commerce platforms. This makes managing multiple business functions from a single system easier.

  • Data Security: The program includes strong security protections to safeguard important corporate data. To ensure that only authorized users may access the system, it includes role-based access control, data encryption, and user authentication.

  • Real-time Reporting: Real-time reporting capabilities are provided by Frappe's ERP, allowing organizations to make informed decisions based on accurate and up-to-date data. The software includes customizable dashboards, graphs, and charts for analyzing business performance.

  • Cost-effective: Frappe's ERP is open-source software, which means it is free to use and may be customized and distributed to meet the needs of the business. It saves businesses a large amount of money that they would otherwise have to spend on pricey proprietary software licenses.

  • User-friendly: The program is user-friendly, making it simple for staff to use and navigate. It offers a modern, user-friendly interface that takes little training to get started.

  • Better collaboration: Frappe's ERP fosters cooperation across teams and departments, allowing employees to share information and operate more efficiently together.

Finally, Frappe's ERP is a robust and adaptable solution for organizations wishing to streamline operations, cut expenses, and enhance their bottom line. Businesses of all sizes can benefit from higher productivity, improved accuracy, better cooperation, more exposure, and customizability by providing a range of configurable and flexible essential concepts and terminology.

Top comments (1)

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Very well explained 👏