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.

70 lines
2.0 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. Web widget radio tree
  6. =====================
  7. This module allows to use input radio in a tree view inside a form, in order to ensure the user marks only one record.
  8. Example: You have a partner company form with many contacts. The contacts are shown in a tree and you want to specify only one as preferred.
  9. Usage
  10. =====
  11. In the view declaration, put widget='radio_tree' attribute in the field tag::
  12. ...
  13. <field name="arch" type="xml">
  14. <form>
  15. ...
  16. <field name="name" />
  17. <field name="contact_ids">
  18. <tree string="View name">
  19. ...
  20. <field name="name"/>
  21. <field name="preferred" widget="radio_tree"/>
  22. ...
  23. </tree>
  24. </field>
  25. </form>
  26. </field>
  27. ...
  28. Bug Tracker
  29. ===========
  30. Bugs are tracked on `GitHub Issues
  31. <https://github.com/OCA/web/issues>`_. In case of trouble, please
  32. check there if your issue has already been reported. If you spotted it first,
  33. help us smashing it by providing a detailed and welcomed `feedback
  34. <https://github.com/OCA/
  35. web/issues/new?body=module:%20
  36. web_widget_radio_tree%0Aversion:%20
  37. 8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  38. Credits
  39. =======
  40. Contributors
  41. ------------
  42. * Cesar Lage <kaerdsar@gmail.com>
  43. * Robert Rübner <rruebner@bloopark.de>
  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.