Search 1.9 billion lines of Odoo code on GitHub

pricelist_cache_rest

Author: Odoo Community Association (OCA), Camptocamp
License: AGPL-3
Branch: 14.0
Repository: acsone/sale-workflow
Dependencies: auth_api_key, base_jsonify, base_setup, and pricelist_cache
Languages: HTML (366, 55.1%), Python (161, 24.2%), XML (65, 9.8%), and reStructuredText (72, 10.8%)
Other branches: 14-sale_automatic_workflow-xbo, 14-sale_order_restrict_cancel_existing_invoice, 14-sale_promotion_rule, 14-sale_promotion_rule_delivery, 14-sale_promotion_rule_delivery-xbo, 14.0-abi_master, 14.0-add-sale_order_line_unit_price_no_tax-dro, 14.0-add-sale_order_option_product_group-dro, 14.0-fix-sale-product_set-dro, 14.0-fwd-1739-dro, 14.0-imp-sale-mass_action-dro, 14.0-mig-sale-procurement-amendment-dro, 14.0-mig-sale_order_mass_action-dro, 14.0-mig-sale_product_set_layout-dro, and sale_quotation_delivery_mandatory-xbo
Other repositories: BenjaHe/sale-workflow, Change2improve/sale-workflow, Comunitea/sale-workflow, Darknroses/sale-workflow, Digital5-Odoo/sale-workflow, ForgeFlow/sale-workflow, Ingeos/sale-workflow, JuaniFreedoo/sale-workflow, LevelPrime/sale-workflow, MindAndGo/sale-workflow, OCA/sale-workflow, SeuMarco/sale-workflow, SodexisTeam/sale-workflow, Studio73/sale-workflow, TRESCLOUD/sale-workflow, Tecnativa/sale-workflow, akretion/sale-workflow, angelmoya/sale-workflow, aurestic/sale-workflow, bmya/sale-workflow, brain-tec/sale-workflow, camptocamp/sale-workflow, coopiteasy/sale-workflow, damdam-s/sale-workflow, daramousk/sale-workflow, ecosoft-odoo/sale-workflow, elego/sale-workflow, florian-dacosta/sale-workflow, grindtildeath/sale-workflow, hibou-io/oca-sale-workflow, hurrinico/sale-workflow, igallart/sale-workflow, initOS/sale-workflow, jado95/sale-workflow, kmee/sale-workflow, petrus-v/sale-workflow, saxomanu/sale-workflow, sodexis/sale-workflow, sygel-technology/sale-workflow, ursais/sale-workflow, versada/sale-workflow, vialaurea/OCA-sale-workflow, and xtendoo-corporation/sale-workflow

<h1 class="title">Pricelist Cache Rest</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/14.0/pricelist_cache_rest"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-pricelist_cache_rest"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/167/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>Provides an endpoint to expose product prices cached by <cite>pricelist_cache</cite>. Endpoint authorization is based on <cite>auth_api_key</cite>.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#other-credits" id="id6">Other credits</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>The endpoint requires the partner ID of the customer prices for which you want to retrieve prices. It should be called like this:</p> <pre> <code>curl -X GET &quot;http://your.odoo/pricelist/$partner_id&quot; -H &quot;accept: /&quot; -H &quot;API-KEY: XYZ&quot;</code> </pre> <p>By default you'll get a list of dict like this:</p> <pre> <code>[ {&quot;id&quot;: $product_id, &quot;price&quot;: $price}, {&quot;id&quot;: $product_id, &quot;price&quot;: $price}, {&quot;id&quot;: $product_id, &quot;price&quot;: $price}, ]</code> </pre> <p>You can modify the <cite>ir.exports</cite> configuration named &quot;Pricelist Cache Parser&quot; to change this schema.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20pricelist_cache_rest%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>Camptocamp</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Simone Orsi &lt;<a class="reference external" href="mailto:simone.orsi&#64;camptocamp.com">simone.orsi&#64;camptocamp.com</a>&gt;</li> <li>Matthieu Méquignon &lt;<a class="reference external" href="mailto:matthieu.mequignon&#64;camptocamp.com">matthieu.mequignon&#64;camptocamp.com</a>&gt;</li> <li><dl class="first docutils"> <dt><a class="reference external" href="https://trobz.com">Trobz</a>:</dt> <dd><ul class="first last"> <li>Khoi Vo &lt;<a class="reference external" href="mailto:khoivha&#64;trobz.com">khoivha&#64;trobz.com</a>&gt;</li> </ul> </dd> </dl> </li> </ul> <a name="other-credits"></a> <h3><a class="toc-backref" href="#id6">Other credits</a></h3> <p><strong>Financial support</strong></p> <ul class="simple"> <li>Cosanum</li> <li>Camptocamp R&amp;D</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/14.0/pricelist_cache_rest">OCA/sale-workflow</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>