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.

35 lines
908 B

  1. To use this module, you need to declare a One2many or Many2many field::
  2. sale_order_ids = fields.One2many(
  3. "sale.order",
  4. "partner_id",
  5. string="Sales Order",
  6. )
  7. In the view declaration, put widget="heatmap" attribute in the field tag::
  8. ...
  9. <field name="arch" type="xml">
  10. <form string="View name">
  11. ...
  12. <field name="sale_order_ids" widget="heatmap"/>
  13. ...
  14. </form>
  15. </field>
  16. ...
  17. Widget Options::
  18. cellSize - Size of each subDomain cell, in pixel.
  19. ...
  20. <field name="arch" type="xml">
  21. <form string="View name">
  22. ...
  23. <field name="sale_order_ids" widget="heatmap" options="{'cellSize': 15}"/>
  24. ...
  25. </form>
  26. </field>
  27. ...
  28. * All widget options you can find in the official `documentation <https://cal-heatmap.com/#options>`_ of the cal-heatmap lib.