Skip to main content

Purchase Receipt Expectation

Project description

Odoo Community Association

Purchase Receipt Expectation

Beta License: AGPL-3 OCA/purchase-workflow Translate me on Weblate Try me on Runboat

This module is used as base module for managing incoming picking creation on purchase orders.

Table of contents

Usage

This module adds a new selection field receipt_expectation to purchase.order. By default, its value is "automatic", which means that the picking creation at order approval is managed by the Odoo standard workflow.

Inheriting modules can extend the selection field with a custom value, but this will also require to define a custom method named _create_picking_for_<value>_receipt_expectation() on purchase.order to manage picking creation for orders with the new field value, else a NotImplementedError will be raised.

For example:

class PurchaseOrder(models.Model):
    _inherit = "purchase.order"

    receipt_expectation = fields.Selection(
        selection_add=[("my_value", "My Value")],
        ondelete={"my_value": "set default"},
    )

    def _create_picking_for_my_value_receipt_expectation(self):
        """Manage picking creation for orders where ``receipt_expectation``
        is ``"my_value"``
        """
        ...

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 SA

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

This module is part of the OCA/purchase-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/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 odoo_addon_purchase_receipt_expectation-18.0.1.0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_purchase_receipt_expectation-18.0.1.0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a7f42ab26f79c605a4c554fd5718ae3aad0965e14ce904a34d7b4e740c6e9c5
MD5 a9a844f10a08ee8fe5d40c0281002abe
BLAKE2b-256 b28122f7cbba9dfe25ee140139ea6ff945a35e807a804b5a61f280b42fe93e10

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