Browse Source

July 10: [FIX] Bug Fixed 'import_lots'

pull/331/head
RisvanaCybro 10 months ago
parent
commit
cd23e50763
  1. 5
      import_lots/doc/RELEASE_NOTES.md
  2. 6
      import_lots/wizard/lots_attachment.py

5
import_lots/doc/RELEASE_NOTES.md

@ -4,3 +4,8 @@
#### Version 17.0.1.0.0 #### Version 17.0.1.0.0
#### ADD #### ADD
- Initial commit for Import Lot from Excel - Initial commit for Import Lot from Excel
#### 05.07.2024
#### Version 15.0.1.0.2
##### Fix on the validation for import
- Bug Fix

6
import_lots/wizard/lots_attachment.py

@ -21,7 +21,7 @@
############################################################################### ###############################################################################
from odoo import fields, models from odoo import fields, models
from odoo import _ from odoo import _
from odoo.exceptions import UserError from odoo.exceptions import UserError, ValidationError
import openpyxl import openpyxl
import base64 import base64
from io import BytesIO from io import BytesIO
@ -29,7 +29,6 @@ from io import BytesIO
class LotsAttachment(models.TransientModel): class LotsAttachment(models.TransientModel):
"""Class for lots wizard""" """Class for lots wizard"""
_name = 'lot.attachment' _name = 'lot.attachment'
_description = "Lots Attachment" _description = "Lots Attachment"
@ -105,6 +104,9 @@ class LotsAttachment(models.TransientModel):
'type': 'ir.actions.client', 'type': 'ir.actions.client',
'tag': 'reload', 'tag': 'reload',
} }
else:
raise ValidationError(
_('Check whether you upload the document'))
def action_download_sample(self): def action_download_sample(self):
"""For downloading a sample excel file""" """For downloading a sample excel file"""

Loading…
Cancel
Save