From 88cd73622a6b7fbc454478b4bb13a703cf2dd34b Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Tue, 16 Dec 2025 21:18:44 +0530 Subject: [PATCH] [FIX] Bug Fixed 'bill_digitization' --- bill_digitization/doc/RELEASE_NOTES.md | 5 +++++ .../static/description/index.html | 21 +++++++++++++++++++ bill_digitization/wizard/digitize_bill.py | 9 ++++---- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/bill_digitization/doc/RELEASE_NOTES.md b/bill_digitization/doc/RELEASE_NOTES.md index 974cee965..4ab8b4275 100755 --- a/bill_digitization/doc/RELEASE_NOTES.md +++ b/bill_digitization/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 18.0.1.0.0 #### ADD - Initial commit for Bill Digitization + +#### 15.12.2025 +#### Version 18.0.1.0.0 +#### UPDT +- Index updated with required Python package information diff --git a/bill_digitization/static/description/index.html b/bill_digitization/static/description/index.html index 2f87737e8..42553e6d4 100644 --- a/bill_digitization/static/description/index.html +++ b/bill_digitization/static/description/index.html @@ -370,6 +370,27 @@ style=""> +
+
+
+
+

+ Install + + Python Packages +

+
+
+

+ Make sure the following Python packages are installed on your system:

+

+ PIL (pip3 install PIL),pytesseract (pip3 install pytesseract),tesseract-ocr (sudo apt-get install tesseract-ocr)

+
+
+
+
diff --git a/bill_digitization/wizard/digitize_bill.py b/bill_digitization/wizard/digitize_bill.py index 0fc631e95..c3706335e 100644 --- a/bill_digitization/wizard/digitize_bill.py +++ b/bill_digitization/wizard/digitize_bill.py @@ -381,10 +381,11 @@ class DigitizeBill(models.TransientModel): raise ValidationError(_("Cannot identify data")) # Converting the image into text using OCR python package # pytesseract - try: - text = pytesseract.image_to_string(resized_img) - except Exception: - raise ValidationError(_("Data cannot read")) + # try: + text = pytesseract.image_to_string(resized_img) + # except Exception: + # print('Exception',Exception) + # raise ValidationError(_("Data cannot read")) # Calling the function to create vendor bill bill_record = self.create_record(text) # Opening the vendor bill using its id