75 lines
2.2 KiB

  1. Clickable many2one fields for tree views
  2. ========================================
  3. This addon provides a separate widget to allow many2one fields in a tree view
  4. open the linked resource when clicking on their name.
  5. You can also define a system parameter to have this behaviour for all the
  6. existing many2one fields in tree views.
  7. Installation
  8. ============
  9. Install it the regular way.
  10. Configuration
  11. =============
  12. If you want to have all many2one fields clickable by default, you have to
  13. define in *Configuration > Technical > Parameters > System parameters*, a new
  14. parameter with name `web_tree_many2one_clickable.default` and with value
  15. `true`.
  16. Usage
  17. =====
  18. For the widget option, you need to add `widget="many2one_clickable"` attribute
  19. in the XML field definition in the tree view.
  20. For example:
  21. `<field name="partner_id" widget="many2one_clickable" />`
  22. will open the linked partner in a form view.
  23. Known issues / Roadmap
  24. ======================
  25. * You cannot deactivate clickable behaviour for an specific many2one field if
  26. you configure the system parameter.
  27. * The value of the system parameter is retrieved for each many2one field
  28. present in the view instead of only once.
  29. Bug Tracker
  30. ===========
  31. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
  32. In case of trouble, please check there if your issue has already been reported.
  33. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  34. `here <https://github.com/OCA/web/issues/new?body=module:%20web_tree_many2one_clickable%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  35. Credits
  36. =======
  37. Contributors
  38. ------------
  39. * Therp BV
  40. * Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
  41. Maintainer
  42. ----------
  43. .. image:: http://odoo-community.org/logo.png
  44. :alt: Odoo Community Association
  45. :target: http://odoo-community.org
  46. This module is maintained by the OCA.
  47. OCA, or the Odoo Community Association, is a nonprofit organization whose
  48. mission is to support the collaborative development of Odoo features and
  49. promote its widespread use.
  50. To contribute to this module, please visit http://odoo-community.org.