Skip to content

[18.0][ADD] edi_exchange_template_oca_json#136

Closed
imlopes wants to merge 2 commits intoOCA:18.0from
imlopes:18.0-add-edi_exchange_template_json
Closed

[18.0][ADD] edi_exchange_template_oca_json#136
imlopes wants to merge 2 commits intoOCA:18.0from
imlopes:18.0-add-edi_exchange_template_json

Conversation

@imlopes
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Contributor

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

@wouitmil
Copy link
Copy Markdown

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