Search 1.9 billion lines of Odoo code on GitHub

grap_change_default_value

Author: GRAP
License: no license
Branch: 10-port-stock_inventory_valuation
Repository: akretion/odoo-addons-grap
Dependencies: mail, and product
Languages: PO File (14, 14.3%), Python (30, 30.6%), YAML (21, 21.4%), and reStructuredText (33, 33.7%)
Other branches: 8-port-stock_inventory_valuation, and 8.0
Other repositories: OdooBulgaria/odoo-addons-grap, mohamedhagag/odoo-addons-grap, quentinDupont/odoo-addons-grap, wahhid/odoo-addons-grap, and westlyou/odoo-addons-grap

<img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> <a name="change-default-value-for-grap"></a> <h2>Change Default Value for GRAP</h2> <a name="partners-res-partner"></a> <h3>Partners (res.partner)</h3> <ul class="simple"> <li><dl class="first docutils"> <dt>Partners receive mail by default:</dt> <dd><ul class="first last"> <li>field : 'notification_email_send';</li> <li>value : 'comment';</li> </ul> </dd> </dl> </li> </ul> <a name="products-product-template"></a> <h3>Products (product.template)</h3> <ul class="simple"> <li><dl class="first docutils"> <dt>Products has no default UoM:</dt> <dd><ul class="first last"> <li>field : 'uom_id';</li> <li>value : False;</li> </ul> </dd> </dl> </li> <li><dl class="first docutils"> <dt>Products has no default Purchase UoM:</dt> <dd><ul class="first last"> <li>field : 'uom_po_id';</li> <li>value : False;</li> </ul> </dd> </dl> </li> <li><dl class="first docutils"> <dt>Products has Null Produce Delay:</dt> <dd><ul class="first last"> <li>field : 'produce_delay';</li> <li>value : 0;</li> </ul> </dd> </dl> </li> <li><dl class="first docutils"> <dt>Products has Null Sale Delay:</dt> <dd><ul class="first last"> <li>field : 'sale_delay';</li> <li>value : 0;</li> </ul> </dd> </dl> </li> </ul> <a name="technical-information"></a> <h3>Technical Information</h3> <ul class="simple"> <li>for product_template.uom_id and uom_po_id, a special test is done to know if creation come from the load of a new module. In that special case, default value is unchanged;</li> </ul> <a name="credits"></a> <h4>Credits</h4> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Sylvain LE GAL (<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>);</li> <li>Julien WESTE;</li> </ul>