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.

33 lines
825 B

  1. **Change a python dictionary (context for example)**
  2. .. code-block:: xml
  3. <attribute name="$attribute" operation="python_dict" key="$key">
  4. $new_value
  5. </attribute>
  6. Note that views are subject to evaluation of xmlids anyways, so if you need
  7. to refer to some xmlid, say ``%(xmlid)s``.
  8. **Add to values in a list (states for example)**
  9. .. code-block:: xml
  10. <attribute name="$attribute" operation="list_add">
  11. $new_value(s)
  12. </attribute>
  13. **Remove values from a list (states for example)**
  14. .. code-block:: xml
  15. <attribute name="$attribute" operation="list_remove">
  16. $remove_value(s)
  17. </attribute>
  18. **Move an element in the view**
  19. This feature is now native, cf the `official Odoo documentation <https://www.odoo.com/documentation/12.0/reference/views.html#inheritance-specs>`_.