Author: |
Camptocamp SA, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
15.0-h-52875-vib |
Repository: |
adhoc-dev/purchase-workflow |
Dependencies: |
purchase_stock |
Languages: |
HTML (356, 62.9%),
PO File (24, 4.2%),
Python (113, 20.0%),
XML (20, 3.5%),
and
reStructuredText (53, 9.4%) |
Other branches: |
15.0-mig-purchase_all_shipments,
15.0-mig-purchase_request_department,
and
15.0-t-25872-joz |
Other repositories: |
AITIC/purchase-workflow,
Change2improve/purchase-workflow,
ForgeFlow/purchase-workflow,
Gabinete-Digital/purchase-workflow,
Ingeos/purchase-workflow,
Jarsa-dev/purchase-workflow,
Jarsa/purchase-workflow,
JuaniFreedoo/purchase-workflow,
LevelPrime/purchase-workflow,
OCA/purchase-workflow,
SeuMarco/purchase-workflow,
Studio73/purchase-workflow,
TRESCLOUD/purchase-workflow,
Tecnativa/purchase-workflow,
Vauxoo/purchase-workflow,
aurestic/purchase-workflow,
brain-tec/purchase-workflow,
camptocamp/purchase-workflow,
ecosoft-odoo/purchase-workflow,
jromeroarg/purchase-workflow,
kmee/purchase-workflow,
leemannd/purchase-workflow,
sygel-technology/purchase-workflow,
tegin/purchase-workflow,
unitek-solusi/OCA-purchase-workflow,
and
ursais/purchase-workflow |
<h1 class="title">Purchase Receipt Expectation</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/purchase-workflow/tree/15.0/purchase_receipt_expectation"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_receipt_expectation"><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/142/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module is used as base module for managing incoming picking creation on
purchase orders.</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="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="usage"></a>
<h2><a class="toc-backref" href="#id1">Usage</a></h2>
<p>This module adds a new selection field <code>receipt_expectation</code> to
<code>purchase.order</code>. By default, its value is <code>"automatic"</code>, which means
that the picking creation at order approval is managed by the Odoo standard
workflow.</p>
<p>Inheriting modules can extend the selection field with a custom value, but this
will also require to define a custom method named <code>_create_picking_for_<value>_receipt_expectation()</code>
on <code>purchase.order</code> to manage picking creation for orders with the new field
value, else a <code>NotImplementedError</code> will be raised.</p>
<p>For example:</p>
<pre>
<code lang="python">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"``
"""
...</code>
</pre>
<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/purchase-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/purchase-workflow/issues/new?body=module:%20purchase_receipt_expectation%0Aversion:%2015.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 SA</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id5">Contributors</a></h3>
<ul class="simple">
<li>Silvio Gregorini <<a class="reference external" href="mailto:silvio.gregorini@camptocamp.com">silvio.gregorini@camptocamp.com</a>></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id6">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/purchase-workflow/tree/15.0/purchase_receipt_expectation">OCA/purchase-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>