diff --git a/plm/__manifest__.py b/plm/__manifest__.py index 2fb70698..ace98fb6 100644 --- a/plm/__manifest__.py +++ b/plm/__manifest__.py @@ -20,7 +20,7 @@ ############################################################################## { "name": "Product Lifecycle Management", - "version": "17.0.0.8", + "version": "17.0.0.9", "author": "OmniaSolutions", "website": "https://odooplm.omniasolutions.website", "category": "Manufacturing/Product Lifecycle Management (PLM)", diff --git a/plm/models/ir_attachment.py b/plm/models/ir_attachment.py index 865a3425..d3576bc7 100755 --- a/plm/models/ir_attachment.py +++ b/plm/models/ir_attachment.py @@ -1239,9 +1239,9 @@ def _is_checkout(self): for ir_attachment_id in self: _docName, _docRev, chekOutUser, _hostName = self.env['ir.attachment'].getCheckedOut(ir_attachment_id.id, None) if chekOutUser: - ir_attachment_id.is_checkout = True + ir_attachment_id.with_context(check=False).is_checkout = True else: - ir_attachment_id.is_checkout = False + ir_attachment_id.with_context(check=False).is_checkout = False def getFileExtension(self, docBrws): fileExtension = ''