Commit 8c5e8f8e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_computer_immobilisation: jio api revision depend on jIO Web Section

parent d10b10c4
...@@ -76,8 +76,11 @@ class Computer(Machine, JSONType): ...@@ -76,8 +76,11 @@ class Computer(Machine, JSONType):
"compute_node_id": self.getReference().decode("UTF-8"), "compute_node_id": self.getReference().decode("UTF-8"),
"title": self.getTitle().decode("UTF-8"), "title": self.getTitle().decode("UTF-8"),
"compute_partition_list": [], "compute_partition_list": [],
"api_revision": self.getJIOAPIRevision(),
} }
web_section = self.getWebSectionValue()
web_section = web_section.getRelativeUrl() if web_section else self.REQUEST.get("web_section_relative_url", None)
if web_section:
compute_node_dict["api_revision"] = self.getJIOAPIRevision(web_section)
compute_partition_list = self.contentValues( compute_partition_list = self.contentValues(
portal_type="Compute Partition", portal_type="Compute Partition",
checked_permission="View" checked_permission="View"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment