Skip to content
Snippets Groups Projects
  1. Oct 02, 2017
  2. Oct 01, 2017
  3. Sep 30, 2017
    • qsm-odoo's avatar
      [FIX] web: update column data when adding a record in a kanban · 1d34e269
      qsm-odoo authored
      When a record was added in a kanban thanks to the quick create, column
      tooltip and column progressbar were not updating the values they showed.
      Now, adding/deleting records updates the whole column as the update
      operations.
      
      Thanks to @kig-odoo for the test.
      
      Note: to backport (partially)
      1d34e269
    • qsm-odoo's avatar
      [FIX] web: allow updating a newly created kanban record · a09462b7
      qsm-odoo authored
      When using quick create to create a kanban record, if this record was
      then updated thanks to a field widget, the view crashed. This was
      because it tried to update the whole column but the newly created
      record was not properly attached to it in the model.
      
      Thanks to @sja-odoo for the test.
      
      Note: to backport (partially)
      a09462b7
    • Aaron Bohy's avatar
      [FIX] web: correctly redraw x2m list after onchange · 5164d30c
      Aaron Bohy authored
      When an onchange is set on an x2many field displayed as an editable
      list in a form view, and the user updates one of the subrecords,
      the updated subrecord is kept in the DOM and updated, and all other
      subrecords in the relation are re-rendered and re-inserted at their
      correct place in the list (because the onchange might have changed
      them).
      
      Before this rev., the order of the subrecords after the edited one
      was reversed.
      5164d30c
    • Simon Lejeune's avatar
      [FIX] stock: edit done move line · 1cded676
      Simon Lejeune authored
      When undoing the original move line, make sure to handle the packages
      correctly (in the destination location, undo the result package, not the
      source one.
      1cded676
    • Simon Lejeune's avatar
      [FIX] stock: edit done move line · 191873f8
      Simon Lejeune authored
      When undoing the original move line, make sure to undo the quantity
      according to the UOM of the move line.
      191873f8
    • Simon Lejeune's avatar
      [REF] stock: when editing the initial demand of a receipt, run action assign · 6a093d1d
      Simon Lejeune authored
      We also display the "check availability" button if the move is ready but
      one of the move is partially available.
      6a093d1d
    • Jeremy Kersten's avatar
    • rde's avatar
      [IMP] website: create special extension page redirect backend + own template · 727d461e
      rde authored
      Before this commit:
      1. You could create a page with supported extension in the path (eg: myfile.js)
      You would then be redirected to the webeditor (myfile.js?enable_editor..)
      But in this case, it would just redirect you to a plain text page without odoo
      layout because supported extension are rendered with a specific mimetype.
      (is it is a .js page, it will just render the page content as a js file)
      2. These kind of page would still call t-layout that you should be removed in
      backend in order to make it work
      
      Now:
      1. You will be automatically redirected to the back end to edit your file
      instead of landing on a text-only page.
      2. Supported extension now have their own template (eg: .js file now have
      <script text=..> tag added automatically in their content)
      727d461e
    • Nicolas Lempereur's avatar
      [FIX] web: settings scroll w/o control panel · f2df388c
      Nicolas Lempereur authored
      Have the settings scroll without the mock control panel.
      
      courtesy of @qsm-odoo
      f2df388c
    • Aaron Bohy's avatar
      [FIX] web: Kanban: open record when a tag is clicked · c8f15742
      Aaron Bohy authored
      Kanban records with 'global click' feature activated should open
      the record in a form view when the corresponding card is clicked.
      Before this rev., it wasn't working if the user clicked on a tag
      of the kanban record, because of an unused click handler defined
      on the Many2ManyTags widget (preventing the global click feature
      from actually performing the global click).
      
      This rev. removes that handler in the KanbanFieldMany2ManyTags.
      c8f15742
    • Aaron Bohy's avatar
      Revert "[IMP] web: filter when clicking on tags in Kanban" · b53af081
      Aaron Bohy authored
      This reverts commit b6ef149b as it seems that we don't want this
      feature ultimately (was confusing for users trying to open the
      record, but it filtered instead).
      
      Note that opening the record by clicking on a tag still doesn't
      work, but this is fixed by the next commit.
      b53af081
    • Aaron Bohy's avatar
      [FIX] web: don't discard x2many rows coming from default_get · 776bac6a
      Aaron Bohy authored
      Problem occured in the MRP Production wizard (with a consumed
      product tracked by serial number). The opened record is a new
      record, and its one2many has 2 default rows that are prefilled.
      If the user edited one of the quantities in those rows, and set
      an invalid value instead (e.g. a letter), the row was removed
      without notice when it was focused out. This was because the
      model wasn't aware that a change has been done on the record,
      and as the record was flagged as new, it was simply abandonned.
      776bac6a
    • David Monjoie's avatar
      [FIX] web: fix one2many default get · 16eb262c
      David Monjoie authored
      The one2many default get code used to meddle with basic_model's res_ids
      manually, which ended up desynchronizing the data and res_ids fields
      of the list representation of the one2many values.
      
      This commit solves the issue by using the proper mechanisms of the
      basic_model, that is creating a proper datapoint for those ids.
      
      Steps to reproduce the original issue:
      - Install sale_mamangement, mrp and purchase
      - Create a product
      - In the Inventory tab, in Routes, uncheck Buy
      - Check and then uncheck back any other route than Buy
      - Get a traceback because we are looking for a record with a given
        res_id in the list data but since they are desynchronized, data
        is empty at that point even though res_ids is not.
      16eb262c
    • Jeremy Kersten's avatar
      [FIX] website_sale: partial revert layout change · 0997579d
      Jeremy Kersten authored
      Remove a part of the PR #19463
      
      Specs for PR undo a previous task.
      0997579d
Loading