Search 1.9 billion lines of Odoo code on GitHub

product_unit_of_measure_update

Author: Akretion, Odoo Community Association (OCA)
License: AGPL-3
Branch: 8-uom-update
Repository: 0yik/ak-odoo-incubator
Dependencies: product
Languages: PO File (23, 16.1%), Python (77, 53.8%), and reStructuredText (43, 30.1%)
Other repositories: EBII/ak-odoo-incubator, OdooBulgaria/ak-odoo-incubator, OpenAT/ak-odoo-incubator, RL-OtherApps/ak-odoo-incubator, acsone/ak-odoo-incubator, akretion/ak-odoo-incubator, akretion/product-attribute, camptocamp/ak-odoo-incubator, dsasoftware/ak-odoo-incubator, florian-dacosta/ak-odoo-incubator, hadjerBachiri/ak-odoo-incubator, iamyeonhan/ak-odoo-incubator, kevinkhao/ak-odoo-incubator, magnuscolors/ak-odoo-incubator, marionumza/ak-odoo-incubator, sc4you/ak-odoo-incubator, valenciaricardos/ak-odoo-incubator, versada/ak-odoo-incubator, vidtsin/ak-odoo-incubator, and westlyou/ak-odoo-incubator

<a class="reference external image-reference" 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.svg"> </a> <a name="product-unit-of-measure-update"></a> <h2>Product Unit of Measure Update</h2> <p>Odoo Standard prevent to update units of measure in this condition:</p> <dl class="docutils"> <dt>&quot;New Unit of Measure must belong to same Unit of Measure category</dt> <dd>as of old Unit of Measure&quot;.</dd> </dl> <p>This module allow to update units of measure of a product in some extra conditions:</p> <ul class="simple"> <li>if the product is not used in the database except in Product tables.</li> <li>if the product unit of measure (uom_id, uom_po_id) are in the same category (physical dimension).</li> </ul> <a name="usage"></a> <h3>Usage</h3> <p>If product id is not in another table with Product Many2one, then standard Odoo constraint is escaped, with no risk for database integrity.</p> <p>Just try it with a new product. Products with data (i.e. Sale Order) keep original constraints defined in Odoo standard.</p> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/135/8.0}"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <p>Performance optimization could be done by querying first tables with a higher probability to contains product data (i.e. stock.move, mrp.bom.line, sale.order.line)</p> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/{project_repo}/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 feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>David BEAL &lt;<a class="reference external" href="mailto:david.beal&#64;akretion.com">david.beal&#64;akretion.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <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>This module is maintained by the OCA.</p> <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>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>