Skip to content

[IMP] sale_amazon: sell FBA and FBM at the same time #12796

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

Closed
wants to merge 1 commit into from

Conversation

lipiraux
Copy link
Contributor

@lipiraux lipiraux commented Apr 4, 2025

Previously, Odoo limited offers of the same product to be sold in either FBM or FBA. This limitation was caused by a lack of information on the Odoo side that distinguished fulfillment channels on a per-product basis, which did not permit the creation of multiple offers with different channels.

With odoo/enterprise#78293, the fulfillmment channel of an offer is tracked with each new orders coming in. This allows a product to be sold in both FBA and FBM at the same time.

task-4092410

@robodoo
Copy link
Collaborator

robodoo commented Apr 4, 2025

Pull request status dashboard

@lipiraux lipiraux force-pushed the master-amazon-is-offer-fbm-lipi branch 4 times, most recently from 40e17b6 to 1d5b7ad Compare April 4, 2025 10:58
@C3POdoo C3POdoo requested a review from a team April 4, 2025 11:04
@lipiraux lipiraux force-pushed the master-amazon-is-offer-fbm-lipi branch 3 times, most recently from a8be108 to 04772a3 Compare April 11, 2025 14:54
@StraubCreative StraubCreative self-requested a review April 12, 2025 18:48
@StraubCreative StraubCreative force-pushed the master-amazon-is-offer-fbm-lipi branch 2 times, most recently from f7b2142 to 8d58a95 Compare April 14, 2025 21:14
@StraubCreative
Copy link
Contributor

f7b2142: line 20: early line break
8d58a95: fresh rebase on master, awaiting CI checks...

@StraubCreative StraubCreative force-pushed the master-amazon-is-offer-fbm-lipi branch from 8d58a95 to 1a0495d Compare April 14, 2025 21:18
@StraubCreative
Copy link
Contributor

1a0495d: address failed ci/minimal

@StraubCreative StraubCreative force-pushed the master-amazon-is-offer-fbm-lipi branch from 1a0495d to 41dede9 Compare April 14, 2025 21:25
@StraubCreative
Copy link
Contributor

41dede9: ci/minimal fix no.2 per Build 78401152 resolution

Copy link
Contributor

@StraubCreative StraubCreative left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you for your contribution @lipiraux!

⚠️ Warning : The CI checks pass now, but the Documentation commit history is missing recent additions 85b197e1c and 92310c53f since this PR was created. ci/minimal wouldn't pass with these two commits included.

  • May have to manually rebase all branches (including Community and Enterprise) before merging, or set the merge method here to "rebase on merge" ?

Delegating to you:
@robodoo delegate=lipiraux

Previously, Odoo limited offers of the same product to be sold in either
FBM or FBA. This limitation was caused by a lack of information on the
Odoo side that distinguished fulfillment channels on a per-product
basis, which did not permit the creation of multiple offers with
different channels.

With odoo/enterprise#78293, the fulfillmment channel of an offer is
tracked with each new orders coming in. This allows a product to be sold
in both FBA and FBM at the same time.

task-4092410

Co-authored-by: StraubCreative <zst@odoo.com>
@lipiraux lipiraux force-pushed the master-amazon-is-offer-fbm-lipi branch from 41dede9 to f5daf69 Compare April 15, 2025 09:23
@lipiraux
Copy link
Contributor Author

Hello @StraubCreative , thanks for your review.

I’m very sorry, but I need to make a small correction. It turns out that the information I added is not necessary because it’s a corner case that most users won’t encounter. Therefore, we only need to remove the part that states that the product could only be sold in one of FBA or FBM at the time.

Could you please confirm that everything is good to go? Again, sorry to ask again.

Note that the ci/minimal is failing again cause I did not rebase the enterprise version. Im waiting for a final review, and I will rebase everything afterward.

Copy link
Contributor

@Demesmaeker Demesmaeker left a comment

Choose a reason for hiding this comment

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

Hello @lipiraux 🦆

TBH, this could be done in 17.0 and forward-ported, as even there, since the API changes, it's now supported.

@lipiraux
Copy link
Contributor Author

Closing in favor of #12901

@lipiraux lipiraux closed this Apr 15, 2025
@lipiraux lipiraux deleted the master-amazon-is-offer-fbm-lipi branch April 16, 2025 08:56
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.

None yet

4 participants