Skip to main content

Enforce ownership on stock availability

Project description

License: AGPL-3

Stock Ownership Availability Rules

This module extends the core behaviour to manage ownership of stock. It is useful when we want to keep stock that belongs to someone other than our company.

This functionality is partially implemented in Odoo, with some missing behaviour (e.g. it will silently deliver someone else’s stock if that’s all we’ve got).

The purpose of this module is also to add tests that are missing in the Odoo core.

With this module, the owner of quants becomes required, and is set by default as follows:

  • If the location of the quant has a partner, it is used.

  • Otherwise, if the location of the quant has a company, the related partner is used.

  • Otherwise, the partner related to the default company for quants is used.

The tests make sure that the quants reservation always respect owners:

  • Outgoing pickings without owner or with company owner only reserve quants with company owner, otherwise they remain unreserved.

  • Outgoing pickings with owner only reserve quants with the same owner, otherwise they remain unreserved.

To understand stock owners more easily, now the “On Hand” button on the product form view opens a stock view grouped by location and owner (instead of location only).

Partially related to this is issue https://github.com/odoo/odoo/issues/4136.

Usage

To use this module, you need to:

  • Go to …

Try me on Runbot

Known issues / Roadmap

  • You can’t use this module with real time accounting valuation, because the entry generation gets disabled when having an owner.

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

Credits

Images

  • Odoo Community Association: Icon.

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 odoo8_addon_stock_ownership_availability_rules-8.0.0.2.0.99.dev32-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo8_addon_stock_ownership_availability_rules-8.0.0.2.0.99.dev32-py2-none-any.whl
Algorithm Hash digest
SHA256 4ae3f0a26a76816be068e9d9dc8210a6d8b09a8e7c644366b7ddd57d6a15457e
MD5 b5ef9b7a16ba615db53a00aa20d53a2c
BLAKE2b-256 1fe24fa9b707813d4b43946c8e40c0cb379d240bafddb001bbb0f9d60c06b893

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