Search 1.9 billion lines of Odoo code on GitHub

product_default_code_res_company_code

Author: GRAP
License: AGPL-3
Branch: 12.0-fix-product_print_category
Repository: coopiteasy/grap-odoo-incubator
Dependencies: product, and res_company_code
Languages: Python (92, 58.6%), XML (24, 15.3%), and reStructuredText (41, 26.1%)
Other branches: 12.0, 12.0-imp-product_print_category, 12.0-noupdate-for-product-print-format, and 12.0-store-print-category
Other repositories: grap/grap-odoo-incubator, initOS/grap-odoo-incubator, legalsylvain/grap-odoo-incubator, and quentinDupont/grap-odoo-incubator

<h1 class="title">Product Default Code with Company Code</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/grap/grap-odoo-incubator/tree/12.0/product_default_code_res_company_code"><img alt="grap/grap-odoo-incubator" src="https://img.shields.io/badge/github-grap%2Fgrap--odoo--incubator-lightgray.png?logo=github" /></a></p> <p>This module extends the functionality of product module to generate automatically internal reference (<code>default_code</code>) for product.</p> <p>Note, for that purpose, the field become readonly, and a sequence is created automatically per company.</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/grap/grap-odoo-incubator/12.0/product_default_code_res_company_code/static/description/sequence_form.png" src="https://raw.githubusercontent.com/grap/grap-odoo-incubator/12.0/product_default_code_res_company_code/static/description/sequence_form.png" /> </div> <p>The new products will a default code with the following pattern <code>COD-XXXXXX</code>, where <code>COD</code> is the code of the company of the product, and <code>XXXXXX</code> is a autoincremented value.</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/grap/grap-odoo-incubator/12.0/product_default_code_res_company_code/static/description/product_product_tree.png" src="https://raw.githubusercontent.com/grap/grap-odoo-incubator/12.0/product_default_code_res_company_code/static/description/product_product_tree.png" /> </div> <p><strong>Note</strong></p> <p>This new feature is enabled only for products that belong to a company.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id2">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id3">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li> </ul> </li> </ul> </div> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id1">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/grap/grap-odoo-incubator/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/grap/grap-odoo-incubator/issues/new?body=module:%20product_default_code_res_company_code%0Aversion:%2012.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="#id2">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id3">Authors</a></h3> <ul class="simple"> <li>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id4">Contributors</a></h3> <ul class="simple"> <li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id5">Maintainers</a></h3> <p>This module is part of the <a class="reference external" href="https://github.com/grap/grap-odoo-incubator/tree/12.0/product_default_code_res_company_code">grap/grap-odoo-incubator</a> project on GitHub.</p> <p>You are welcome to contribute.</p>