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.

46 lines
1.0 KiB

  1. # -*- coding: utf-8 -*-
  2. {
  3. "name": 'web_m2x_options',
  4. "version": "0.1",
  5. "description":
  6. """
  7. =====================================================
  8. Add new options for many2one and many2manytags field:
  9. =====================================================
  10. - create: true/false -> disable "create" entry in dropdown panel
  11. - create_edit: true/false -> disable "create and edit" entry in dropdown panel
  12. - limit: 10 (int) -> change number of selected record return in dropdown panel
  13. - m2o_dialog: true/false -> disable quick create M20Dialog triggered on error.
  14. Example:
  15. --------
  16. <field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false}"/>
  17. Note:
  18. -----
  19. if one of those options are not set, many2one field use default many2one field options.
  20. Thanks to:
  21. ----------
  22. - Nicolas JEUDY <njeudy@tuxservices.com>
  23. - Valentin LAB <valentin.lab@kalysto.org>
  24. """,
  25. "depends": [
  26. 'base',
  27. 'web',
  28. ],
  29. "js": [
  30. 'static/src/js/form.js',
  31. ],
  32. "author": "Tuxservices",
  33. "installable" : True,
  34. "active" : False,
  35. }