[FIX]:pms_api_rest: user without userImage -> userImageBase64 to none

This commit is contained in:
Darío Lodeiros
2022-10-11 09:47:50 +02:00
parent 2ac82bbbb1
commit 08cf976977

View File

@@ -71,6 +71,6 @@ class PmsLoginService(Component):
userName=user_record.name,
defaultPropertyId=user_record.pms_property_id.id,
defaultPropertyName=user_record.pms_property_id.name,
userImageBase64=user_record.partner_id.image_1024,
userImageBase64=user_record.partner_id.image_1024 or None,
availabilityRuleFields=avail_rule_names,
)