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.

85 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. ::
  12. <!-- server action retrieves ir.actions.act_window to open row specific popup -->
  13. <record model="ir.actions.server" id="message_index_list_view_delegate_open">
  14. <field name="name">message_index_list_view_delegate_open</field>
  15. <field name="model_id" ref="model_message_index"/>
  16. <field name="code">action = object.button_popup_delegate()</field>
  17. </record>
  18. <!-- tree_but_open key -- delegates to a server action to execute on row clicked -->
  19. <record id="message_index_list_view_open" model="ir.values">
  20. <field name="model">message.index</field>
  21. <field name="key2">tree_but_open</field>
  22. <field name="name">message_index_list_view</field>
  23. <field eval="'ir.actions.server,%d'%message_index_list_view_delegate_open" name="value"/>
  24. <field name="res_id" eval="0"/>
  25. </record>
  26. Installation
  27. ============
  28. To install this module, just follow basic steps to install an Odoo module.
  29. Configuration
  30. =============
  31. No configuration needed.
  32. Usage
  33. =====
  34. To use this module, you need to:
  35. * go to ...
  36. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  37. :alt: Try me on Runbot
  38. :target: https://runbot.odoo-community.org/runbot/web/8.0
  39. Bug Tracker
  40. ===========
  41. Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
  42. In case of trouble, please check there if your issue has already been reported.
  43. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
  44. `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**>`_.
  45. Credits
  46. =======
  47. Contributors
  48. ------------
  49. * Peter Hahn <peter.hahn@initos.com>
  50. Maintainer
  51. ----------
  52. .. image:: https://odoo-community.org/logo.png
  53. :alt: Odoo Community Association
  54. :target: https://odoo-community.org
  55. This module is maintained by the OCA.
  56. OCA, or the Odoo Community Association, is a nonprofit organization whose
  57. mission is to support the collaborative development of Odoo features and
  58. promote its widespread use.
  59. To contribute to this module, please visit https://odoo-community.org.