Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][ADD] edi_exchange_template_oca_json #136

Closed
wants to merge 2 commits into from

Conversation

imlopes
Copy link

@imlopes imlopes commented Jan 23, 2025

No description provided.

@imlopes imlopes force-pushed the 18.0-add-edi_exchange_template_json branch from 3605825 to 7208826 Compare January 23, 2025 17:48
@imlopes imlopes force-pushed the 18.0-add-edi_exchange_template_json branch 2 times, most recently from 611b2c8 to cc00018 Compare January 23, 2025 18:47
@imlopes imlopes force-pushed the 18.0-add-edi_exchange_template_json branch from cc00018 to df9e01a Compare January 23, 2025 19:07
@imlopes imlopes marked this pull request as ready for review January 23, 2025 19:10
result = self._post_process_json_output(result)
return result

def _render_json_values(self, exchange_record, **kw):
Copy link
Contributor

Choose a reason for hiding this comment

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

this module shouldn't rely on jsonifier.
You should be able to generate JSOn as you prefer.

The snippet can simply be something like

exporter = env.ref(...)
parser = exporter.get_json_parser()
result = record.jsonifier(parser, [one=True])

The role of this module is only to handle and validate the JSON result.

@simahawk
Copy link
Contributor

Additionally, please, drop the odoo version from the commit. Thanks :)

@wouitmil
Copy link

Hello, Italo, as I wasn't able to push on you're branch during your timeoff, I created this PR instead: #137

@simahawk simahawk closed this Feb 4, 2025
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.

3 participants