Skip to main content

Quotations in quantity available to promise

Project description

License: AGPL-3

Quotations in quantity available to promise

This module computes the quoted quantity of each Product, and subtracts it from the quantity available to promise.

“Quoted” is defined as the sum of the quantities of this Product in Sale Quotations, taking the context’s shop or warehouse into account.

Usage

Warning for salespersons

If you want to keep salespersons from concluding sales that you may not be able to deliver, you may block the quotations using the module sale_exception. Once this module is installed, go to “Sales > Configuration > Sales > Exceptions rules” and create a new rule using the following code:

if (line.product_id and line.product_id.type == 'product' and
        line.product_id.immediately_usable_qty > line.product_uom_qty):
    failed=True
Try me on Runbot

Known issues / Roadmap

Changed features

The quoted quantity is now returned as a positive value, whereas it was returned as a negative value before v8.0.

This change was made to ensure consistency with the standard, which used to present outgoing quantities as negative numbers until v8.0, and now presents them as positive numbers instead.

Removed features

Previous versions of this module used to let programmers demand to get the quoted quantity in an arbitrary Unit of Measure using the context. This feature was present in the standard computations too until v8.0, but it has been dropped from the standard from v8.0 on.

For the sake of consistency the quoted quantity is now always reported in the product’s main Unit of Measure too.

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 smash it by providing detailed and welcomed feedback.

Credits

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.

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

File details

Details for the file odoo10_addon_stock_available_sale-10.0.1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo10_addon_stock_available_sale-10.0.1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2900cfaefe1a2141ad43eb95669e2bc413cb1b1a13148848bac26d6ca75bd419
MD5 b581fe4c7811ca081f8da7ee39ad440c
BLAKE2b-256 c98eb100bd5c8ed8afc13785601ec7d383e7dbec2f088fa92247a534416572f1

See more details on using hashes here.

Supported by

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