Skip to content

Commit

Permalink
FIX: check in on non admin user
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Oct 15, 2024
1 parent e6afb8e commit 1f49e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plm/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
4 changes: 2 additions & 2 deletions plm/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 1f49e3b

Please sign in to comment.