Docparser Integration with Odoo ERP

What is Docparser?

Docparser is a well-known third party application for document analysis. It's based on Lisp systems and a great tool to analyze a number of documents in a specified manner. In other words, when we need well-structured data information’s (e.g. Date, Register Number, Date, Address,) from a number of pdf, we can use Docparser to parse it so easily. It can be integrated with trending ERP solutions like Odoo for document analysis. This blog describes the Docparser usage and its integration with Odoo using python api calls.

To use Docparser, we have to define a parser and it consists of one or more parsing rules to handle the incoming documents. Parser rules are nothing but a position with its data type. It can be defined based on the way of output data. So basic thing is that we can upload a number of the document to Docparser and retrieve (with the help of parser) the data as per our needs.

Parsing Rules:

The user can define some rules for fetching data from an uploaded document. Normally this can be defined by the user by selecting an area on an uploaded document from the document parser user interface. This parser rule will save the positions with custom label and when a document comes to parse, it will fetch the data from input document based on the selected position and it will save the content to the user-defined label (if data exist in that area). A number of parsing rules can configure under a single parser.

Parsers:

These are the moto engines in Docparser. Parsers may exist in a number of parsing rules. The user can configure the number of parsers based on their usage. Docparser has their own inbuilt/ready-made general-purpose parser like invoice parser.

e.g. for parsers:

* Invoice Details Parser

* Student Details Parser

* Etc.

Now, we are going through Docparser account creation & the parser creation:

We can create a Docparser account for free of cost with a username and password. After that, we have to create a parser.

1) Create Parser:

The colored area (the given below image) shows you a button to create a user-defined parser.

Image 1: Creating User-defined Parser.

Then, we can select any inbuilt type for our parser or select the “Miscellaneous” as below.

Now, we can go through Odoo Perspective. We already know Odoo using Python language, we can use Docparser in Odoo for document analyzing. If we clear with Python as codes with Docparser, we can create some forms and settings in Odoo, then add api keys, its parser keys and analyze thousands of documents within minutes. The Python stuff is describing below:

Docparser Python api:

we can use Docparser api for:

To list Document Parsers.

To upload documents to a Document Parser with its ID.

To obtain our parsed data in the desired format.

These are described below with python code.

1) Authentication:

An authentication process is the first process with api, It can be done with our Docparser account’s secret api key. See the code below:

These are the basic api operations in Python for managing Docparser. So this blog concludes that Odoo can use Docparser for document management industry, OMR analysis, feedback marking system, any other industry that process a wide range of documents for running efficiently and automatically. Click here for more features