You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

11 years ago
11 years ago
11 years ago
  1. # -*- coding: utf-8 -*-
  2. {
  3. "name": 'web_m2x_options',
  4. "version": "0.1",
  5. "description": """
  6. =====================================================
  7. Add new options for many2one and many2manytags field:
  8. =====================================================
  9. - create: true/false -> disable "create" entry in dropdown panel
  10. - create_edit: true/false -> disable "create and edit" entry in dropdown panel
  11. - limit: 10 (int) -> change number of selected record return in dropdown panel
  12. - m2o_dialog: true/false -> disable quick create M20Dialog triggered on error.
  13. - search_more: true/false -> force disable/enable search more button.
  14. - field_color -> define the field used to define color.
  15. - colors -> link field values to a HTML color.
  16. Example:
  17. --------
  18. ``<field name="partner_id" options="{'limit': 10, 'create': false,
  19. 'create_edit': false, 'field_color':'state', 'colors':{'active':'green'}}"/>``
  20. Note:
  21. -----
  22. If one of those options are not set, many2one field uses default many2one
  23. field options.
  24. Thanks to:
  25. ----------
  26. - Nicolas JEUDY <njeudy@tuxservices.com>
  27. - Valentin LAB <valentin.lab@kalysto.org>
  28. """,
  29. "depends": [
  30. 'base',
  31. 'web',
  32. ],
  33. "js": [
  34. 'static/src/js/form.js',
  35. ],
  36. "author": "Tuxservices,Odoo Community Association (OCA)",
  37. "installable": True,
  38. "active": False,
  39. }