mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
{
|
|
"name": 'web_m2x_options',
|
|
"version": "0.1",
|
|
"description": """
|
|
=====================================================
|
|
Add new options for many2one and many2manytags field:
|
|
=====================================================
|
|
|
|
- create: true/false -> disable "create" entry in dropdown panel
|
|
- create_edit: true/false -> disable "create and edit" entry in dropdown panel
|
|
- limit: 10 (int) -> change number of selected record return in dropdown panel
|
|
- m2o_dialog: true/false -> disable quick create M20Dialog triggered on error.
|
|
|
|
Example:
|
|
--------
|
|
|
|
``<field name="partner_id" options="{'limit': 10, 'create': false,
|
|
'create_edit': false}"/>``
|
|
|
|
Note:
|
|
-----
|
|
|
|
If one of those options are not set, many2one field uses default many2one
|
|
field options.
|
|
|
|
Thanks to:
|
|
----------
|
|
|
|
- Nicolas JEUDY <njeudy@tuxservices.com>
|
|
- Valentin LAB <valentin.lab@kalysto.org>
|
|
|
|
""",
|
|
"depends": [
|
|
'base',
|
|
'web',
|
|
],
|
|
"js": [
|
|
'static/src/js/form.js',
|
|
],
|
|
"author": "Tuxservices,Odoo Community Association (OCA)",
|
|
"installable": True,
|
|
"active": False,
|
|
}
|