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.

83 lines
2.8 KiB

  1. .. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
  3. :alt: License: LGPL-3
  4. =========================
  5. Extended view inheritance
  6. =========================
  7. This module was written to make it simple to add custom operators for view inheritance.
  8. Usage
  9. =====
  10. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  11. :alt: Try me on Runbot
  12. :target: https://runbot.odoo-community.org/runbot/149/9.0
  13. Change a python dictionary (context for example)
  14. ------------------------------------------------
  15. .. code-block:: xml
  16. <attribute name="$attribute" operation="python_dict" key="$key">
  17. $new_value
  18. </attribute>
  19. Note that views are subject to evaluation of xmlids anyways, so if you need to refer to some xmlid, say ``%(xmlid)s``.
  20. Move an element in the view
  21. ---------------------------
  22. .. code-block:: xml
  23. <xpath expr="$xpath" position="move" target="$targetxpath" />
  24. This can also be used to wrap some element into another, create the target element first, then move the node youwant to wrap there.
  25. Known issues / Roadmap
  26. ======================
  27. * add ``<attribute operation="python_list_add">$value</attribute>``
  28. * add ``<attribute operation="python_list_remove">$index</attribute>``
  29. * add ``<attribute operation="json_dict" key="$key">$value</attribute>``
  30. * support ``<xpath expr="$xpath" position="move" target="xpath" target_position="position" />``
  31. * support an ``eval`` attribute for our new node types
  32. Bug Tracker
  33. ===========
  34. Bugs are tracked on `GitHub Issues
  35. <https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
  36. check there if your issue has already been reported. If you spotted it first,
  37. help us smashing it by providing a detailed and welcomed feedback.
  38. Credits
  39. =======
  40. Images
  41. ------
  42. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
  43. Contributors
  44. ------------
  45. * Holger Brunn <hbrunn@therp.nl>
  46. Do not contact contributors directly about help with questions or problems concerning this addon, but use the `community mailing list <mailto:community@mail.odoo.com>`_ or the `appropriate specialized mailinglist <https://odoo-community.org/groups>`_ for help, and the bug tracker linked in `Bug Tracker`_ above for technical issues.
  47. Maintainer
  48. ----------
  49. .. image:: https://odoo-community.org/logo.png
  50. :alt: Odoo Community Association
  51. :target: https://odoo-community.org
  52. This module is maintained by the OCA.
  53. OCA, or the Odoo Community Association, is a nonprofit organization whose
  54. mission is to support the collaborative development of Odoo features and
  55. promote its widespread use.
  56. To contribute to this module, please visit https://odoo-community.org.