Skip to content

pattern_import_export_xlsx: support date/datetime#113

Open
sebastienbeau wants to merge 1 commit intoshopinvader:14.0from
akretion:14.0-date-datetime-support
Open

pattern_import_export_xlsx: support date/datetime#113
sebastienbeau wants to merge 1 commit intoshopinvader:14.0from
akretion:14.0-date-datetime-support

Conversation

@sebastienbeau
Copy link
Contributor

No description provided.

if isinstance(value, datetime):
return fields.Datetime.to_string(value)
elif isinstance(value, date):
return fields.Date.to_string(value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typeof may be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants