Skip to content
Snippets Groups Projects
  1. Sep 28, 2016
  2. Sep 27, 2016
    • Denis Vermylen (dve)'s avatar
      [FIX] project_issue: correct _onchange_project_id · d78256e7
      Denis Vermylen (dve) authored
      the onchange changed the partners of the ticket when the ticket changed project
      to the project's partner, but if the ticket already has a partner it shouldn't
      change.
      d78256e7
    • qsm-odoo's avatar
      [FIX] website, *: properly process saving from editor dialogs · 5f980404
      qsm-odoo authored
      * web_editor, website_blog
      
      Since recent refactoring, web editor dialogs automatically trigger
      an event when closed (saved or cancel). The problem is that there
      still was manual trigger of those events or variants ("save" instead
      of "saved").
      
      To prevent multi-saving and be consistent, all save events are now
      automatically triggered on save/close (no more manual) and the event
      name is "save".
      5f980404
  3. Sep 26, 2016
    • Denis Vermylen (dve)'s avatar
      [FIX] portal: remove ensure_one() · 52ba0552
      Denis Vermylen (dve) authored
      a random ensure_one() was added during the migration causing an error when
      modifying portal access management for partners with more than one contact.
      
      Removing it.
      52ba0552
    • Thibault Delavallée's avatar
      [FIX][IMP] various: unsudo mail/view controller and get_access_action · fcd6813d
      Thibault Delavallée authored
      This is a backport of saas-13 commit a9bd9ab1.
      
      mail/view controller is a generic controller that redirects the user to a
      given view, depending on the record and the user. Users may be redirected
      to the backend form view, or to a website view. This is done notably by
      calling get_access_action method that gives the action to perform (act_window
      or url).
      
      Previously this method was called using SUPERUSER. However it was therefore
      impossible to know who the user was. This method is now called using the
      current user. Various overrides of get_access_action have been updated to
      add some logic and access rights check directly in the method allowing
      more fine-grain behavior of the access action.
      fcd6813d
    • Martin Trigaux's avatar
  4. Sep 23, 2016
  5. Sep 22, 2016
    • Christophe Simonis's avatar
    • qsm-odoo's avatar
      [FIX] web_editor: prevent crash when deleting multiple snippets in one deletion · 5a0a29b5
      qsm-odoo authored
      Since saas-12, when deleting contents, parents are deleted too if they
      become empty (while it was not possible to delete contents in that case
      before). The problem here was that the history was recorded multiple
      times if one deletion made multiple snippets be deleted and this
      sometimes could crash.
      
      Now the history is recorded only on first deletion when the user ask
      for it.
      5a0a29b5
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      477482ed
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      6a67e5cf
    • Raphael Collet's avatar
      [FIX] models: do not delete `ir.model.fields` in `_field_create` (#13565) · 16a0b3b2
      Raphael Collet authored
      Following 5c5d0865, apparently unused records
      are simply deleted after updating existing ones.  This causes an issue when a
      module is installed or upgraded.  The inspection of `ir.model.fields` records
      is based on a *partial* registry (not all modules loaded); therefore records
      will be deleted and recreated afterwards.  This triggers inconsistencies in
      other models that refer to `ir.model.fields`, like server actions, base action
      rules, mail templates, etc.: many2one fields will be set to null!
      16a0b3b2
    • Nicolas Martinelli's avatar
      [FIX] base: traceback in `read_group` · be8bbc23
      Nicolas Martinelli authored
      An issue originally occurs in the Event module.
      - Go to Events >> Reports >> Events
      - Add a "Group By" in the search view: "Event Month"
      - A mighty traceback pops up
      
      This is because the rows and the columns are grouped by the same field
      (`event_date:month`).
      
      In method `_read_group_format_result`, a group_by of type "date" or
      "datetime" is replaced by a "(range_start/range_end, label)" tuple. The
      first element of the loop on `annotated_groupbys` is handled correctly,
      but the next identical element will crash on `value + gb['interval']`,
      since `value` is now a tuple and not a date/datetime anymore.
      
      opw-686242
      be8bbc23
    • qsm-odoo's avatar
      [FIX] web_editor: allow editing t-field links · 9ea6861d
      qsm-odoo authored
      There is a hackish feature in the web_editor which forces the
      contenteditable to true on links which are clicked and removes it
      anywhere else in the page so that only the link is editable after
      click. This allows to add text at the end of a link without adding it
      outside of the link by mistake.
      
      The feature was badly implemented because, if the link was editable
      without having any parent which is editable, the contenteditable was
      forced to true, then immediatly forced to false when forcing to false
      every page element. This was the case for lots of t-field. By example
      the product categories in eCommerce are t-field links which are in non
      editable <li/> elements...
      9ea6861d
    • Nicolas Lempereur's avatar
      [FIX] website_blog: blog pager page issue · e083d720
      Nicolas Lempereur authored
      When we are on the page:
      
       /blog/myblog-1/page/2
      
      the link to page 3 is:
      
       /blog/myblog-1/page/3
      
      So we need to give /blog/our-blog-1 as source url of pager.
      
      Previously in this instance, since 4faed0b7 the page 3 url
      in this scenario would erroneously be:
      
       /blog/myblog-1/page/2/page/3
      
      opw-688681
      e083d720
  6. Sep 21, 2016
  7. Sep 20, 2016
Loading