Skip to content

Comments

[FIX] export_bg: Handle import_compat parameter correctly in background export#368

Closed
fw-bot-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-18.0-h-109374-rov-3758-fw
Closed

[FIX] export_bg: Handle import_compat parameter correctly in background export#368
fw-bot-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-18.0-h-109374-rov-3758-fw

Conversation

@fw-bot-adhoc
Copy link
Contributor

When import_compat=False, avoid using field 'value' for data extraction to prevent issues when the exported data is used for record updates.

  • In import_compat mode: use name -> value -> id fallback chain
  • In regular export mode: use only name -> id (skip 'value')
  • Field labels (headers) are handled appropriately for each mode

This ensures exported data maintains proper field references based on the intended use case (import vs display/update).

Forward-Port-Of: #367

…nd export

When import_compat=False, avoid using field 'value' for data extraction
to prevent issues when the exported data is used for record updates.

- In import_compat mode: use name -> value -> id fallback chain
- In regular export mode: use only name -> id (skip 'value')
- Field labels (headers) are handled appropriately for each mode

This ensures exported data maintains proper field references based on
the intended use case (import vs display/update).

X-original-commit: 6b4b4ea
@roboadhoc
Copy link
Contributor

Pull request status dashboard

@fw-bot-adhoc
Copy link
Contributor Author

@rov-adhoc @lef-adhoc this PR targets 19.0 and is the last of the forward-port chain.

To merge the full chain, use

@roboadhoc r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@rov-adhoc
Copy link
Contributor

@roboadhoc r+ nobump

@roboadhoc
Copy link
Contributor

Bump policy set to nobump. Modules: all

@rov-adhoc
Copy link
Contributor

@roboadhoc r+

@roboadhoc
Copy link
Contributor

This PR is already reviewed, reviewing it again is useless.

@roboadhoc roboadhoc closed this in 6496920 Feb 9, 2026
@roboadhoc roboadhoc added the 18.1 label Feb 9, 2026
@roboadhoc roboadhoc deleted the 19.0-18.0-h-109374-rov-3758-fw branch February 9, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants