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.

79 lines
2.3 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ========================================
  5. Clickable many2one fields for tree views
  6. ========================================
  7. This addon provides a separate widget to allow many2one or reference fields in
  8. a tree view open the linked resource when clicking on their name.
  9. You can also define a system parameter to have this behaviour for all the
  10. existing many2one fields in tree views.
  11. Installation
  12. ============
  13. Install it the regular way.
  14. Configuration
  15. =============
  16. After installation, all many2one and reference fields will be clickable
  17. by default. You can change this in *Configuration > Technical > Parameters > System parameters*,
  18. parameter with name `web_tree_many2one_clickable.default` setting it to `false`.
  19. Usage
  20. =====
  21. For the widget option, you need to add `widget="many2one_clickable"` attribute
  22. in the XML field definition in the tree view.
  23. For example:
  24. `<field name="partner_id" widget="many2one_clickable" />`
  25. will open the linked partner in a form view.
  26. If system parameter `web_tree_many2one_clickable.default` is `true` and you
  27. need to disable one field, then use `widget="many2one_unclickable"`
  28. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  29. :alt: Try me on Runbot
  30. :target: https://runbot.odoo-community.org/runbot/162/9.0
  31. Bug Tracker
  32. ===========
  33. Bugs are tracked on `GitHub Issues
  34. <https://github.com/OCA/web/issues>`_. In case of trouble, please
  35. check there if your issue has already been reported. If you spotted it first,
  36. help us smashing it by providing a detailed and welcomed feedback.
  37. Credits
  38. =======
  39. Contributors
  40. ------------
  41. * Therp BV
  42. * Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
  43. * Antonio Espinosa <antonio.espinosa@tecnativa.com>
  44. Maintainer
  45. ----------
  46. .. image:: https://odoo-community.org/logo.png
  47. :alt: Odoo Community Association
  48. :target: https://odoo-community.org
  49. This module is maintained by the OCA.
  50. OCA, or the Odoo Community Association, is a nonprofit organization whose
  51. mission is to support the collaborative development of Odoo features and
  52. promote its widespread use.
  53. To contribute to this module, please visit https://odoo-community.org.