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.

43 lines
1.1 KiB

10 years ago
10 years ago
10 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. Example:
  14. --------
  15. <field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false}"/>
  16. Note:
  17. -----
  18. if one of those options are not set, many2one field use default many2one field options.
  19. Thanks to:
  20. ----------
  21. - Nicolas JEUDY <njeudy@tuxservices.com>
  22. - Valentin LAB <valentin.lab@kalysto.org>
  23. """,
  24. "depends": [
  25. 'base',
  26. 'web',
  27. ],
  28. "js": [
  29. 'static/src/js/form.js',
  30. ],
  31. "author": "Tuxservices",
  32. "installable": True,
  33. "active": False,
  34. }