Skip to content

Commit

Permalink
ADD function for plm_box
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Dec 15, 2024
1 parent 6354e5c commit 762a6aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plm/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,11 @@ def nodeResursionUpdate(node, isRoot=False):
nodeResursionUpdate(updatedNode, True)
return json.dumps(updatedNode)

@api.model
def getUuid(self):
param = self.env['ir.config_parameter'].sudo()
return param.get_param('database.uuid')

def getDocBrws(self, docId, docProps):
docEnv = self.env['ir.attachment']
oldDocBrws = False
Expand Down

0 comments on commit 762a6aa

Please sign in to comment.