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.

82 lines
2.7 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <section class="oe_container">
  2. <div class="oe_row oe_spaced">
  3. <h2 class="oe_slogan">MuK Groupby Hour</h2>
  4. <h3 class="oe_slogan">Group records by hour</h3>
  5. <h4 class="oe_slogan" style="font-size: 23px;">MuK IT GmbH -
  6. www.mukit.at</h4>
  7. </div>
  8. </section>
  9. <section class="oe_container">
  10. <div class="oe_row oe_spaced">
  11. <div style="max-width: 84%; margin: 16px 8%;">
  12. <h3 class="oe_slogan">Overview</h3>
  13. <div class="oe_mt32"
  14. style="padding-bottom: 10px; text-align: justify;">
  15. <p>
  16. Allow records to be grouped by hour. Similar to the already
  17. existing options (
  18. <code>day, week, month, quarter, year</code>
  19. ). Just add the paramerter
  20. <code>groupby='date:hour'</code>
  21. like shown below.
  22. </p>
  23. </div>
  24. <pre>
  25. <code>
  26. @api.multi
  27. def sales_per_hour(self):
  28. daily_sales = self.env['sale.report'].read_group(
  29. domain=[],
  30. fields=['date', 'price_subtotal'],
  31. groupby='date:hour')
  32. return daily_sales
  33. </code>
  34. </pre>
  35. </div>
  36. </div>
  37. </section>
  38. <section class="oe_container oe_dark"
  39. style="margin-bottom: 20px; border-top: 5px solid #797979; border-bottom: 5px solid #797979;">
  40. <h3 class="oe_slogan" style="margin-bottom: 10px;">Demo</h3>
  41. <div class="row" style="margin: auto; max-width: 200px;">
  42. <div class="col-xs-6">
  43. <h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">User:</h5>
  44. </div>
  45. <div class="col-xs-6">
  46. <h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">apps</h5>
  47. </div>
  48. <div class="col-xs-6">
  49. <h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">Password:</h5>
  50. </div>
  51. <div class="col-xs-6">
  52. <h5 class="oe_slogan" style="font-size: 20px; margin: 2px;">demo</h5>
  53. </div>
  54. </div>
  55. <div class="oe_slogan" style="margin-top: 5px;">
  56. <a class="btn btn-primary btn-lg mt8" href="https://demo.mukit.at/web/login"
  57. style="position: relative; overflow: hidden;"><span
  58. class="o_ripple"
  59. style="height: 138px; width: 138px; top: -35.2969px; left: -8.17188px;"></span>
  60. <i class="fa fa-video-camera"></i> Live Preview </a>
  61. </div>
  62. </section>
  63. <section class="oe_container oe_dark">
  64. <h3 class="oe_slogan">Help and Support</h3>
  65. <h5 class="oe_slogan" style="font-size: 20px;">Feel free to
  66. contact us, if you need any help with your Odoo integration or addiontal
  67. features.</h5>
  68. <div class="oe_slogan">
  69. <a class="btn btn-primary btn-lg mt8" href="mailto:sale@mukit.at">
  70. <i class="fa fa-envelope"></i> Email
  71. </a> <a class="btn btn-primary btn-lg mt8"
  72. href="https://mukit.at/page/contactus"> <i class="fa fa-phone"></i>
  73. Contact
  74. </a> <a class="btn btn-primary btn-lg mt8" href="mailto:support@mukit.at">
  75. <i class="fa fa-life-ring"></i> Support
  76. </a>
  77. </div>
  78. <img src="logo.png" style="width: 200px; margin-bottom: 20px;"
  79. class="center-block">
  80. </section>