Search 1.9 billion lines of Odoo code on GitHub

one2many_multi_select_input

Author:
License: no license
Branch: 10.0
Repository: szufisher/web
Dependencies: web
Languages: JavaScript (56, 70.0%), Python (14, 17.5%), and XML (10, 12.5%)

<img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> <a name="multi-select-input-for-one2many"></a> <h2>Multi select input for one2many</h2> <p>Standard odoo does support selecting multiple items(objects) for many2many field, there is other module implementing similiar function via server side wizard and active_id, which have 2 usability limitations. there will be a popup window for the wizard form, from there user need to select multi items, then click the apply button in the popup wizard form to return back the original one2many list view 2. after the selection done, the one2many items already written to DB, there is no way to discard the changes. this module is purely client side JS module, just adapted the standard many2many popup selection modal dialog to one2many</p> <a name="installation"></a> <h2>Installation</h2> <p>nothing special</p> <a name="configuration"></a> <h2>Configuration</h2> <p>To use this module, you need to:</p> <p>no special configuration needed</p> <a name="usage"></a> <h2>Usage</h2> <p>To use this module, you need to:</p> <ul class="simple"> <li>modify the target form view with one2many field, add &lt;a&gt; element bebween the one2many field and the open tree tag followed, e.g :&lt;a class=&quot;multi_select button oe_edit_only&quot; href=&quot;#&quot;&gt;Add Multi ...&lt;/a&gt;</li> <li>modify the JS to adapt to your modle (fields)</li> </ul> <p>For further information, please visit:</p> <ul class="simple"> <li><a class="reference external" href="https://www.odoo.com/forum/help-1">https://www.odoo.com/forum/help-1</a></li> </ul> <a name="known-issues-roadmap"></a> <h2>Known issues / Roadmap</h2> <ul class="simple"> <li>to activate this function, each form need to be adapted as above, in the future, maybe it can be made as generic</li> </ul> <p>so no special handling for each form view needed.</p> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <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 <a class="reference external" href="https://github.com/OCA/{project_repo}/issues/new?body=module:%20{module_name}%0Aversion:%20{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">here</a>.</p> <a name="credits"></a> <h2>Credits</h2> <a name="contributors"></a> <h3>Contributors</h3> <ul class="simple"> <li>Fisher Yu &lt;<a class="reference external" href="mailto:szufisher&#64;gmail.com">szufisher&#64;gmail.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h3>Maintainer</h3> <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="http://odoo-community.org">http://odoo-community.org</a>.</p>