shopinvader / odoo-shopinvader

Odoo Modules. Sorry Magento, Shopinvader is coming
GNU Affero General Public License v3.0
121 stars 105 forks source link

[16?0][FIX] shopinvader_search_engine: Dump pydantic model in json #1478

Closed lmignon closed 1 year ago

lmignon commented 1 year ago

When we serialize a product or a category with a pydantic serializer, we must dump the mode in json mode. If mode is 'json', the dictionary will only contain JSON serializable types. If mode is 'python' (the default), the dictionary may contain any Python objects and will therefore not be serializable in json

lmignon commented 1 year ago

cc @sebastienbeau @sbejaoui

lmignon commented 1 year ago

/ocabot merge patch

shopinvader-git-bot commented 1 year ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-1478-by-lmignon-bump-patch, awaiting test results.

shopinvader-git-bot commented 1 year ago

Congratulations, your PR was merged at bf281b83bab4a9fe2d76a98a71301a17fe7f8026. Thanks a lot for contributing to shopinvader. ❤️