OCA / queue

Asynchronous Job Queue
GNU Affero General Public License v3.0
179 stars 456 forks source link

[13.0][FIX] base_import_async: add import context key as done in base_import #634

Closed AnizR closed 6 months ago

AnizR commented 6 months ago

The override of the method do is missing some context keys introduced when importing a file (by base_import) in "asynchronous mode".

This PR introduces those keys in the job context.

For example: When importing a product and changing its standard_price, Odoo will trigger the function "_change_standard_price" (code). But, doing the same operation asynchronously won't have the same effect since it is missing the context key "import_file" .

OCA-git-bot commented 6 months ago

This PR looks fantastic, let's merge it! Prepared branch 13.0-ocabot-merge-pr-634-by-guewen-bump-patch, awaiting test results.

OCA-git-bot commented 6 months ago

Congratulations, your PR was merged at 6b58a16935270a7151d3ac0410438e9ddcf58601. Thanks a lot for contributing to OCA. ❤️