Skip to content
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

[16.0] [ADD] shopinvader_api_quotation #1573

Open
wants to merge 13 commits into
base: 16.0
Choose a base branch
from

Conversation

paradoxxxzero
Copy link
Contributor

@paradoxxxzero paradoxxxzero commented Dec 3, 2024

And sale_quotation.

Supersedes #1471

Based on the work of @matthieusaison in #1471 with included requested changes : separate cart router, removal of customer_ref as client_order_ref is already in sale, removal of available_for_quotation as it does nothing in this module, I think another PR should be made for it.

Copy link
Collaborator

@lmignon lmignon left a comment

Choose a reason for hiding this comment

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

I'm really not a fan of the proposed approach. IMO it's a bad idea to mix quotation and cart into the same concept.... It will lead to the development of some conditional processing on the frontend depending of the type of cart you'll retrieve.
For an ongoing project, I'm currently defining a conceptual approach for an API to handle and manage quotations. The processes involved in managing a quote, and the lifespan of a quote, are very different from that of the shopping cart. Price management for products on quotation can also be different. For commercial reasons, the price will not be displayed on the site and will only be accessible after validation of the quote by a sales representative. The customer may have to modify his quotation or work on it for a long time, without being prevented from placing purchase orders.
🤔

store=True,
readonly=False,
)
shop_only_quotation = fields.Boolean(compute="_compute_shop_only_quotation")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Only quotation is too restrictive. A product could be only available

  • on quotation
  • on quotation and direct sale
  • on direct sale
    Sometimes, you could request a quotation for a set of products in order to get a better price due to the amount total of your order.

Comment on lines +26 to +28
sale = env["shopinvader_api_cart.cart_router.helper"]._request_quotation(
partner, uuid
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO a quotation should not be a cart. We should keep the concepts clearly independent since they are not governed by the same workflow. I don't see the point of starting to type the cart. It will introduce breakage in the way you can get your current cart when you want to create a new cart for an immediate purchase while a quotation is pending.

@sebastienbeau sebastienbeau added this to the 16.0 milestone Dec 5, 2024
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.

4 participants