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.

23 lines
915 B

  1. This module allows to show an x2many field with 3-tuples
  2. ($x_value, $y_value, $value) in a table
  3. +-----------+-------------+-------------+
  4. | | $x_value1 | $x_value2 |
  5. +===========+=============+=============+
  6. | $y_value1 | $value(1/1) | $value(2/1) |
  7. +-----------+-------------+-------------+
  8. | $y_value2 | $value(1/2) | $value(2/2) |
  9. +-----------+-------------+-------------+
  10. where `value(n/n)` is editable.
  11. An example use case would be: Select some projects and some employees so that
  12. a manager can easily fill in the planned_hours for one task per employee. The
  13. result could look like this:
  14. .. image:: https://raw.githubusercontent.com/OCA/web/12.0/web_widget_x2many_2d_matrix/static/description/screenshot.png
  15. :alt: Screenshot
  16. The beauty of this is that you have an arbitrary amount of columns with this
  17. widget, trying to get this in standard x2many lists involves some quite ugly
  18. hacks.