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.

65 lines
1.7 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. Credits
  30. =======
  31. Contributors
  32. ------------
  33. * Therp BV
  34. * Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
  35. Maintainer
  36. ----------
  37. .. image:: http://odoo-community.org/logo.png
  38. :alt: Odoo Community Association
  39. :target: http://odoo-community.org
  40. This module is maintained by the OCA.
  41. OCA, or the Odoo Community Association, is a nonprofit organization whose
  42. mission is to support the collaborative development of Odoo features and
  43. promote its widespread use.
  44. To contribute to this module, please visit http://odoo-community.org.