Search 1.9 billion lines of Odoo code on GitHub

purchase_consignment

Author: Numigi
License: no license
Branch: 12.0
Repository: Numigi/odoo-purchase-addons
Dependencies: product, product_supplier_info_helpers, and purchase_stock
Languages: PO File (42, 11.2%), Python (307, 81.9%), and XML (26, 6.9%)
Other branches: 11.0, 14.0, HEAD, TA#49456, TA#50304, and qtip_20220127_1938

<h1 class="title">Purchase Consignment</h1> <p>This module improves the usability of consignment in Odoo.</p> <div class="contents topic" id="table-of-contents"> <p class="topic-title first">Table of Contents</p> <ul class="simple"> <li><a class="reference internal" href="#context" id="id1">Context</a></li> <li><a class="reference internal" href="#summary" id="id2">Summary</a></li> <li><a class="reference internal" href="#configuration" id="id3">Configuration</a><ul> <li><a class="reference internal" href="#configuration-by-category" id="id4">Configuration By Category</a></li> </ul> </li> <li><a class="reference internal" href="#usage" id="id5">Usage</a></li> <li><a class="reference internal" href="#constraint-on-po" id="id6">Constraint on PO</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> </ul> </div> <a name="context"></a> <h2><a class="toc-backref" href="#id1">Context</a></h2> <p>In vanilla Odoo, as of version <code>12.0</code>, managing consignment is error prone. You must manually define the owner of a product on the receipt order.</p> <img alt="static/description/vanilla_odoo_consignment.png" src="static/description/vanilla_odoo_consignment.png" /> <a name="summary"></a> <h2><a class="toc-backref" href="#id2">Summary</a></h2> <p>This module adds a <code>Consignment</code> checkbox on products.</p> <p>If this box is checked, one and only one supplier must be defined in the list of suppliers for this product.</p> <p>When an item is received, the supplier defined on the PO is automatically set as <code>owner</code>.</p> <p>A constraint is added to the PO to prevent selecting a wrong supplier with a consigned product.</p> <a name="configuration"></a> <h2><a class="toc-backref" href="#id3">Configuration</a></h2> <p>As member of the group <code>Purchase / Manager</code>, I go to the form view of a product.</p> <p>I notice a new checkbox <code>Consignment</code>. I check the box.</p> <img alt="static/description/product_form_consignment.png" src="static/description/product_form_consignment.png" /> <p>In the <code>Purchase</code> tab, I select the supplier for this product.</p> <blockquote> Because <code>Consignment</code> is checked, I can not select more than one supplier (commercial partner). However, I can enter more than one address under the same commercial partner.</blockquote> <img alt="static/description/product_form_purchase_tab.png" src="static/description/product_form_purchase_tab.png" /> <a name="configuration-by-category"></a> <h3><a class="toc-backref" href="#id4">Configuration By Category</a></h3> <p>It is also possible to configure consignment per product category.</p> <p>On the form view of a product category, I notice a new checkbox <code>Consignment</code>. I check the box.</p> <img alt="static/description/product_category_form_consignment.png" src="static/description/product_category_form_consignment.png" /> <p>When checking or unchecking this box, the value of the field is propagated to all products directly under this category.</p> <p>When setting/changing the category on a product, the value is also propagated from the category.</p> <blockquote> However, this propagation will not be done if you do a mass edition of products to change the category.</blockquote> <a name="usage"></a> <h2><a class="toc-backref" href="#id5">Usage</a></h2> <p>As member of the group <code>Purchase / User</code>, I go to the form view of a purchase order.</p> <p>I select my supplier and the consigned product.</p> <img alt="static/description/purchase_order_draft.png" src="static/description/purchase_order_draft.png" /> <p>I confirm the purchase order, then I go to the reception picking.</p> <img alt="static/description/purchase_order_confirmed.png" src="static/description/purchase_order_confirmed.png" /> <p>I notice that the owner was automatically set on the stock move.</p> <img alt="static/description/receipt_order_with_owner.png" src="static/description/receipt_order_with_owner.png" /> <a name="constraint-on-po"></a> <h2><a class="toc-backref" href="#id6">Constraint on PO</a></h2> <p>On a purchase order, If I select a wrong supplier for a consigned product, a blocking message will be raised when confirming the PO.</p> <img alt="static/description/purchase_order_constraint_message.png" src="static/description/purchase_order_constraint_message.png" /> <a name="contributors"></a> <h2><a class="toc-backref" href="#id7">Contributors</a></h2> <ul class="simple"> <li>Numigi (tm) and all its contributors (<a class="reference external" href="https://bit.ly/numigiens">https://bit.ly/numigiens</a>)</li> </ul>