Skip to content

Commit cd5bf0a

Browse files
committed
Temporary disable
1 parent ab6d175 commit cd5bf0a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cetmix_tower_yaml/models/cx_tower_yaml_mixin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ class CxTowerYamlMixin(models.AbstractModel):
7676

7777
def _compute_yaml_code(self):
7878
"""Compute YAML code based on model record data"""
79-
collector = YamlExportCollector()
79+
# collector = YamlExportCollector()
8080

8181
# This is used for the file name.
8282
# Eg cx.tower.command record will have 'command_' prefix.
8383
for record in self:
8484
# We are reading field list for each record
8585
# because list of fields can differ from record to record
8686
record.yaml_code = self._convert_dict_to_yaml(
87-
record.with_context(yaml_collector=collector)._prepare_record_for_yaml()
87+
record._prepare_record_for_yaml()
8888
)
8989

9090
def _inverse_yaml_code(self):
@@ -229,8 +229,8 @@ def _post_process_record_values(self, values):
229229
if collector and collector_key and collector.is_added(collector_key):
230230
return {"reference": ref}
231231

232-
if collector and collector_key:
233-
collector.add(collector_key)
232+
# if collector and collector_key:
233+
# collector.add(collector_key)
234234

235235
# We don't need id because we are not using it
236236
values.pop("id", None)

0 commit comments

Comments
 (0)