Skip to content
Snippets Groups Projects

:sparkles: Added Writeonly converter. (features & fixes)

Merged Vincent Hatakeyama requested to merge topic/18.0/new-and-fix into branch/18.0
Files
3
+ 2
2
@@ -187,7 +187,7 @@
message_value: Any,
instance: models.BaseModel,
value_present: bool = True,
) -> dict:
) -> dict | SkipType:
message = super().message_to_odoo(
odoo_env, phase, message_value, instance, value_present
)
@@ -191,7 +191,7 @@
message = super().message_to_odoo(
odoo_env, phase, message_value, instance, value_present
)
if self.field_name in message:
if not isinstance(message, SkipType) and self.field_name in message:
self._lazy_dicts(instance)
message[self.field_name] = self._lazy_dict_message_to_odoo.get(
message[self.field_name]
Loading