Search 1.9 billion lines of Odoo code on GitHub

web_m2o_enhanced

Author: Tuxservices
License: no license
Branch: master
Repository: anybox/web_m2o_enhanced
Dependencies: base, and web
Languages: JavaScript (166, 74.8%), Python (16, 7.2%), and reStructuredText (40, 18.0%)
Other repositories: 0k/web_m2o_enhanced, Capriatto/web_m2o_enhanced, Cicciodev/web_m2o_enhanced, Idealisconsulting/web_m2o_enhanced, MiltonBeltrant/web_m2o_enhanced, alanljj/web_m2o_enhanced, allanwong/web_m2o_enhanced, anthony-muschang/web_m2o_enhanced, bala4901/web_m2o_enhanced, ccdos/web_m2o_enhanced, dw250100785/web_m2o_enhanced, erickgnavar/web_m2o_enhanced, fanzalika/web_m2o_enhanced, germanponce/web_m2o_enhanced, haylahi/web_m2o_enhanced, hifans/web_m2o_enhanced, leyonh/web_m2o_enhanced, lonelyleaves/web_m2o_enhanced, mario21ic/web_m2o_enhanced, mkieszek/web_m2o_enhanced, rishabhgupta12/web_m2o_enhanced, savoirfairelinux/web_m2o_enhanced, and zhaohuaw/web_m2o_enhanced

<h1 class="title">Add new options for many2one field</h1> <a name="change"></a> <h2>Change</h2> <p>web_m2o_enhanced is now <a class="reference external" href="https://github.com/0k/web_m2x_options">https://github.com/0k/web_m2x_options</a> and support odoo v8.0 (see odoo/8.0 branch)</p> <a name="description"></a> <h2>Description</h2> <p>This modules modifies &quot;many2one&quot; form fields so as to add some new display control options.</p> <p><a href="#id1"><span class="problematic" id="id2">**</span></a>New: support many2manytags widget ! **</p> <p>Options provided includes possibility to remove &quot;Create...&quot; and/or &quot;Create and Edit...&quot; entries from many2one drop down. You can also change default number of proposition appearing in the drop-down. Or prevent the dialog box poping in case of validation error.</p> <p>If not specified, the module will avoid proposing any of the create options if the current user have no permission rights to create the related object.</p> <a name="requirements"></a> <h2>Requirements</h2> <p>Was tested on openerp v7.0</p> <a name="new-option"></a> <h2>New option</h2> <p><code>create</code> <em>boolean</em> (Default: depends if user have create rights)</p> <blockquote> Whether to display the &quot;Create...&quot; entry in dropdown panel.</blockquote> <p><code>create_edit</code> <em>boolean</em> (Default: depends if user have create rights)</p> <blockquote> Whether to display &quot;Create and Edit...&quot; entry in dropdown panel</blockquote> <p><code>m2o_dialog</code> <em>boolean</em> (Default: depends if user have create rights)</p> <blockquote> Whether to display the many2one dialog in case of validation error.</blockquote> <p><code>limit</code> <em>int</em> (Default: openerp default value is <code>7</code>)</p> <blockquote> Number of displayed record in drop-down panel</blockquote> <a name="example"></a> <h2>Example</h2> <p>Your XML form view definition could contain:</p> <pre> <code>... &lt;field name=&quot;partner_id&quot; options=&quot;{'limit': 10, 'create': false, 'create_edit': false}&quot;/&gt; ...</code> </pre> <a name="note"></a> <h2>Note</h2> <p>Double check that you have no inherited view that remote <code>options</code> you set on a field ! If nothing work, add a debugger in the first ligne of <code>get_search_result method</code> and enable debug mode in OpenERP. When you write something in a many2one field, javascript debugger should pause. If not verify your installation.</p>