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.

54 lines
1.5 KiB

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">Web Client</h2>
  4. <h3 class="oe_slogan">Web Client Extension</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" style="padding-bottom: 60px;">
  10. <div class="oe_row oe_spaced">
  11. <div class="oe_picture">
  12. <h3 class="oe_slogan">Overview</h3>
  13. <p class="oe_mt32">Extends the Odoo web client to include
  14. bus channels. Channels can be created to listen to Odoo bus
  15. notifications. To add a channel listener to the client just
  16. extend the web client and declare a new bus channel.
  17. </p>
  18. <p>
  19. <pre>
  20. <code>
  21. var WebClient = require('web.WebClient');
  22. var session = require('web.session');
  23. WebClient.include({
  24. show_application: function() {
  25. var channel = session.db + '_mychannel';
  26. this.bus_declare_channel(channel, this.doSomething);
  27. return this._super();
  28. },
  29. doSomething: function(message) {
  30. ...
  31. }
  32. });
  33. </code>
  34. </pre>
  35. </p>
  36. </div>
  37. </div>
  38. </section>
  39. <section class="oe_container oe_dark">
  40. <h3 class="oe_slogan">Help and Support</h3>
  41. <div class="oe_slogan">
  42. <a class="btn btn-primary btn-lg mt8" href="mailto:sale@mukit.at">
  43. <i class="fa fa-envelope"></i> Email
  44. </a> <a class="btn btn-primary btn-lg mt8"
  45. href="https://mukit.at/page/contactus"> <i class="fa fa-phone"></i>
  46. Contact
  47. </a>
  48. </div>
  49. <img src="logo.png" style="width: 200px; margin-bottom: 20px;"
  50. class="center-block">
  51. </section>