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.

84 lines
2.6 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :alt: License: AGPL-3
  3. ========================
  4. Web One2many List Action
  5. ========================
  6. This module extends the list view used for one2many fields inside form views to
  7. use the 'tree_but_open' interface to define actions for rows.
  8. To use this just specify a 'tree_but_open' action on the target model of the
  9. one2many field relation.
  10. Example::
  11. <!-- server action retrieves ir.actions.act_window to open row specific popup -->
  12. <record model="ir.actions.server" id="message_index_list_view_delegate_open">
  13. <field name="name">message_index_list_view_delegate_open</field>
  14. <field name="model_id" ref="model_message_index"/>
  15. <field name="code">action = object.button_popup_delegate()</field>
  16. </record>
  17. <!-- tree_but_open key -- delegates to a server action to execute on row clicked -->
  18. <record id="message_index_list_view_open" model="ir.values">
  19. <field name="model">message.index</field>
  20. <field name="key2">tree_but_open</field>
  21. <field name="name">message_index_list_view</field>
  22. <field eval="'ir.actions.server,%d'%message_index_list_view_delegate_open" name="value"/>
  23. <field name="res_id" eval="0"/>
  24. </record>
  25. Installation
  26. ============
  27. To install this module, just follow basic steps to install an Odoo module.
  28. Configuration
  29. =============
  30. No configuration needed.
  31. Usage
  32. =====
  33. To use this module, you need to:
  34. * go to ...
  35. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  36. :alt: Try me on Runbot
  37. :target: https://runbot.odoo-community.org/runbot/web/8.0
  38. Bug Tracker
  39. ===========
  40. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
  41. In case of trouble, please check there if your issue has already been reported.
  42. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  43. `here <https://github.com/OCA/web/issues/new?body=module:web_one2many_list_actionversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  44. Credits
  45. =======
  46. Contributors
  47. ------------
  48. * Peter Hahn <peter.hahn@initos.com>
  49. Maintainer
  50. ----------
  51. .. image:: https://odoo-community.org/logo.png
  52. :alt: Odoo Community Association
  53. :target: https://odoo-community.org
  54. This module is maintained by the OCA.
  55. OCA, or the Odoo Community Association, is a nonprofit organization whose
  56. mission is to support the collaborative development of Odoo features and
  57. promote its widespread use.
  58. To contribute to this module, please visit https://odoo-community.org.