draft: [16.0][ADD] connector_amazon_spapi 2#513
Open
kobros-tech wants to merge 30 commits intoOCA:16.0from
Open
draft: [16.0][ADD] connector_amazon_spapi 2#513kobros-tech wants to merge 30 commits intoOCA:16.0from
kobros-tech wants to merge 30 commits intoOCA:16.0from
Conversation
The @job decorator from queue_job is not needed when using the with_delay() pattern. Removed the import and decorator usage to fix ImportError in CI environment.
The view uses mail chatter with message_follower_ids and message_ids fields, which require mail.thread and mail.activity.mixin. Adding these mixins enables the mail chatter functionality in the form view.
The amazon.feed model has a 'state' field, not 'status'. Updated both tree and form views to use the correct field name.
- test_feed.py: Complete feed submission workflow tests - Happy path: 4-step submission (document, upload, feed, status) - Error handling: API errors, S3 upload failures - Status checking: IN_PROGRESS, DONE, FATAL, CANCELLED - Retry logic and multiple feed types - test_shop.py: Stock push and competitive pricing tests - push_stock() creates and submits inventory feeds - _build_inventory_feed_xml() generates valid XML structure - Negative stock handling (sends 0, not negative) - cron_push_stock() processes hourly/daily shops - cron_push_shipments() queues shipment jobs - Timestamp updates for sync operations Refs: COVERAGE_IMPROVEMENT_PLAN.md items 4-5
…ns in order.py - Remove duplicate _get_last_done_picking at line 53 (simpler filter-based version) - Remove duplicate push_shipment at line 63 (basic implementation version) - Keep robust implementations with better error handling and test compatibility - Fixes flake8 F811 redefinition errors blocking pre-commit validation
Author
|
here is an update using third party connector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
using python-amazon-sp-api