Skip to main content

Expose customer's specific prices.

Project description

Beta License: AGPL-3 shopinvader/odoo-shopinvader

Handle customer specific prices.

Provides:

  • endpoint /customer_price/products to fetch customer prices for products.

  • backend configuration to state which pricelist should be used by partner (by selecting a partner field that relates to pricelists)

Use case

Thousands of customers and at least 1 pricelist per each customer. You want to display customer specific prices in the frontend on demand. For instance: product page, wishlists, etc.

Rationale

One of the key points of Shopinvader’s speed is the delegation of products’ data indexing to external search engines.

While this is perfect for generic data and not so complex price rules, if you have very special prices per each customer that’s a blocker, and you’d need to index all prices for all customers to make it work seemlessly.

Warning

It’s strongly recommended to not call the endpoint for each product on search results otherwise you’ll get potentially thousands of requests to Odoo.

Also, when setting the pricelist field for the partner, beware that prices in the indexes might differ from the prices in the cart.

Table of contents

Known issues / Roadmap

Probably the best option would be to have 1 index per customer which would even allow to sort and filter products by customer’s prices but this requires a lot of work with current implementation of search engine machinery.

If you use Algolia this is probably a no-go as it would cost too much. In the context of ElasticSearch instead you could afford it.

Things that would be needed to go for an indexed solution:

  • make language not required on indexes (at the momemt the whole SE machinery relies on languages)

  • automatically generate one index per each pricelist/customer

  • make the frontend capable of switching indexes depending on the customer

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Contributors

Other credits

The development of this module has been financially supported by:

  • Camptocamp

  • Cosanum

Maintainers

This module is part of the shopinvader/odoo-shopinvader project on GitHub.

You are welcome to contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo13_addon_shopinvader_customer_price-13.0.1.0.2.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo13_addon_shopinvader_customer_price-13.0.1.0.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cf44d6f000e22543c6ad554a0b27f868788206e9b6a323bbf4990c32cef3510
MD5 a47b8b4eea4d24f3b3f11ea302f1eeb3
BLAKE2b-256 9c2b01e70bb6cce593cd4d27d7b17808f51562b1466c426f9c41d6f8b0459f87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page