Skip to content
Snippets Groups Projects
  1. Aug 26, 2016
    • qsm-odoo's avatar
      [FIX] web_tour,web_editor: allow running tour in every context · 93394908
      qsm-odoo authored
      Previous implementation allowed to run tour as a non-superuser but
      this was only working in the backend where the static file tip.xml
      is always loaded. In the frontend or in other non-backend context,
      this file has to be loaded just before trying to launch the tour as
      a non superuser (indeed, previous implementation loaded the file in
      the frontend only if the user is a superuser).
      93394908
    • qsm-odoo's avatar
      [IMP] web_tour, *: allow to properly extend tours · f9a84b5e
      qsm-odoo authored
      * crm, project, website, website_event, website_blog, website_forum,
      website_sale
      
      Eg: the tour 'shop_buy_product' is extended by the website_sale_options
      addons to add a step to close a modal.
      
      The current solution was requiring the module that defines the tour
      to extend, then add/remove steps in the "step" key of the tour
      definition.
      Some of the problems with this method were:
      * The "register" method calls the "update" method to immediately
      search for tip to place once registered (as register may be called
      after the DOM is ready). So extensions of tours were happening after
      the tours were started (and the tours were not restarted).
      * The addition/removal of steps was happening after they were filtered
      according to the "edition" key.
      
      To allow extension, the system is changed as follow:
      * The "register" method now only saves the steps and options without
      modifying them and does not call the "update" method.
      * Once the DOM was ready, the tour service started listening to DOM
      mutations and called the "update" tour method. Now, this "update" call
      is replaced by a "_register_all" call, on DOM ready and at the end of
      the current call stack (which makes sure all modules are loaded). This
      "_register_all" method marks the registered tours as ready after having
      filtered the steps according to the "edition" key and initialized the
      current step to trigger.
      * Also, tours can now define a "wait_for" option which allow them to
      be marked as ready for run and update after the given deferred. Those
      tours can now also be extended without having to wait for the deferred.
      PhamtomJS must wait for the "ready" key to be true to run the tour.
      f9a84b5e
    • Christophe Matthieu's avatar
      [IMP] web_tour: add keydown action helper · ec85e6ec
      Christophe Matthieu authored
      (used by web_editor tours)
      ec85e6ec
    • Martin Trigaux's avatar
      [I18N] export master source terms · a1208038
      Martin Trigaux authored
      Unverified
      a1208038
    • Martin Trigaux's avatar
      Unverified
      8fc4feb4
    • Martin Trigaux's avatar
      [FIX] web: use the correct grammare in error message · dfb842ea
      Martin Trigaux authored
      The "There *are* more than 42 fishs" form should be used.
      Source: @yenthe666 & http://english.stackexchange.com/a/35998
      Unverified
      dfb842ea
    • Pierre Masereel's avatar
      [FIX] lunch: remove required on user_id · 770c9c46
      Pierre Masereel authored
      * Since the user_id field is required, it was impossible to delete
        user when he had 'lunch.order' or 'lunch.cashmove'.
        We removed required arguments on 'user_id' fields in model and set
         "required='1'" on the fields in the view.
      * There was a 'ondelete="cascade"' on 'order_line_ids' which does
        nothing because it's not supported on One2many fields.
      770c9c46
    • Jérome Maes's avatar
      [IMP] hr_recruitment: remove stupid option · ba564c42
      Jérome Maes authored
      Disabling this resumes indexation option will uninstall
      hr_recruitment module, since it removes 'document', which
      is in the dependencies of recruitment.
      This makes no sense at all and should have been remove a
      long time ago.
      ba564c42
    • Jérome Maes's avatar
      [IMP] ir_module: make icon_image depends on icon path field · 17f69e70
      Jérome Maes authored
      For now, the base64 image (binary field) is the
      content of the image in /static/src/description.png
      
      The kanban view use 'icon' field, and form view use
      'icon_image' field. For module having no icon defined
      the default image is not the same on kanban or on
      form view.
      
      Moreover, it makes more sence to add this dependency.
      17f69e70
    • Christophe Matthieu's avatar
    • qsm-odoo's avatar
      [FIX] web_tour: make sure tips are consumed before redirections · 450c6853
      qsm-odoo authored
      If a tour step action induces a direct redirection the _consume_tip
      method was called while the redirection was being done. Now,
      _consume_tip is always called before any redirection really begins.
      
      Note: as the run method also has to detect redirections and do actions
      according to if there is one or not, a function has been created to
      implement the redirection detection.
      450c6853
    • Christophe Matthieu's avatar
      [FIX] web_tour: better simulate text changes · 800852b1
      Christophe Matthieu authored
      The change event has to be triggered when changing an input, a select
      and even another DOM element with contentEditable attribute.
      
      When changing an input, the "keydown" and "keyup" events also had to
      be triggered.
      800852b1
    • Christophe Matthieu's avatar
    • Christophe Matthieu's avatar
  2. Aug 25, 2016
  3. Aug 24, 2016
  4. Aug 23, 2016
Loading