Skip to content
Snippets Groups Projects
  1. May 03, 2017
    • Goffin Simon's avatar
      [FIX] mrp: MO with a serial numbers · b2ab0a8d
      Goffin Simon authored
      Steps to reproduce:
      
      1. Create two products A and B that require a serial number
      2. Create a product C with no trcking
      3. Create a BOM for a A with two components B an C
      4. Create a MO for A with  qty > 1
      5. Check availabiltity and produce the first A
      6. Record the SN for the first assembly
      
      Bug: When producing the second assembly, it was not possible to
      record the SN for the components.
      
      opw:741316
      b2ab0a8d
    • Raphael Collet's avatar
      [FIX] registry: use a weak dictionary for `model_cache` to avoid memory leaks · 77e7799d
      Raphael Collet authored
      The class attribute `model_cache` refers to model classes, which refer to their
      own registry.  This cache potentially keeps all past registries alive!
      77e7799d
    • Nicolas Lempereur's avatar
      [FIX] web_kanban: double click double action · 8f1cc2fa
      Nicolas Lempereur authored
      When multiple clicking fast (and with the server not too fast), we could
      end up with an error (eg. "Cannot read property 'controller' of null").
      
      Something has been done previously to improve this when switching
      between views in: fc8a4b5e. This commit do something similar to limit
      multiple click on kanban records (doing it as in 26f91c42).
      
      opw-705329
      closes #16698
      8f1cc2fa
    • amoyaux's avatar
      [FIX] stock : scheduler release lock too fast · 85e21d17
      amoyaux authored
      Issue: 741582
      
      This bug happens when you click multiple time quickly on 'run scheduler' button
      or if you call 'run reordering rules' and then 'run scheduler' rapidly
      It could create duplicate PO or MO.
      
      This happens because the run_scheduler function free the lock while it should
      not. ProcurementSudo was created with the old cursor that contains the lock and
      the record set that search returns also contains this cursor. The run will call the record set with the bad cursor and commit the lock instead of the wanted
      behavior.
      
      This commit creates the ProcurementSudo with the new cursor that does not
      contains the lock.
      85e21d17
    • Lucas Perais (lpe)'s avatar
      [FIX] board: invalidate cache when board is modified · 4a0f9da2
      Lucas Perais (lpe) authored
      Before this commit, when the user modified the dashboard, it was not always visible without refreshing the web client
      For example, display the current dashboard, then go to another view and add an extra view in the dashboard, then go back to the dashboard.
      The reason is that the dashboard layout is actually stored in the arch of a form view, and that arch is cached by the data manager.
      
      This is why each change to the dashboard arch requires that we clear the cache.
      
      OPW 740739
      
      Closes #16691
      4a0f9da2
  2. May 02, 2017
  3. May 01, 2017
  4. Apr 30, 2017
  5. Apr 28, 2017
    • Dainius Kaniava's avatar
      [FIX] web: properly transfer javascript options · 4f9ac6c0
      Dainius Kaniava authored
      Fix options not being passed from view declaration to JS
      frontend function. If passing option 'no_create': True,
      "Create" button was still visible.
      4f9ac6c0
    • Dainius Kaniava's avatar
      [CLA] boolit.md · 43cdec05
      Dainius Kaniava authored
      Signed corporate contributor license.
      43cdec05
    • Nicolas Martinelli's avatar
      [FIX] account: invoiced amount with down payment · 89c2e509
      Nicolas Martinelli authored
      - Create a SO of 1000
      - Create a down payment of 300, validate
      - Create the final invoice
      
      In the partner view, a total of 1600 is displayed as invoiced.
      
      In the case of a down payment, the corresponding invoice line has an
      amount with a negative sign. Since the report computes the absolute
      value before multiplying by the sign, this information is lost.
      
      The absolute value is not necessary since `price_subtotal_signed`
      already includes the correct sign.
      
      opw-741159
      89c2e509
    • Jeremy Kersten's avatar
      [FIX] stock: don't try to rename unexisting mto_pull_id. · ce947eec
      Jeremy Kersten authored
      This field is not required, in case it is empty, the rename will crash.
      
      opw-741259
      ce947eec
    • Nicolas Lempereur's avatar
      [FIX] web_calendar: date start and record move · a9da6e9f
      Nicolas Lempereur authored
      The calendar view display records with the start corresponding to the
      record field set as `date_start`, and the stop to the record field set
      as `date_stop`.
      
      Since ef886aed there some issue when mingling calendar with
      `date_start` or `date_stop` date fields and `all_day` unset:
      
      - if user had timezone between UTC+8 and UTC+14, when moving as
        "All day", the record start would be saved on the previous day.
      
      - if used had timezone between UTC-12 and UTC-5, when moving as
        "All day", the record end would get on the following day.
      
      - if the event was moved onto a given time (in the "Day view"), the
        event start would be set to the previous day if it was before midnight
        in UTC time, and the end would be set on the following day if it was
        after UTC 23:59.
      
      The source of the issue was that after ef886aed a datetime was always
      sent to the server, so depending on the browser timezone the server
      could for example receive '2017-04-27 23:00' instead of '2017-04-28'.
      
      This fix go back to the previous behavior.
      
      fixes #15540
      opw-15540
      closes #16698
      a9da6e9f
    • Richard Mathot's avatar
      [FIX] safer company name as email sender · eefd0de5
      Richard Mathot authored
      In some email templates of Odoo, the From: field is generated from the
      company name. If this name contains an "&" character, this will lead in
      an escaping eg; &
      
      Sender header will look like:
      From: Machin &amp; Brol <machinbrol@toto.com>
      
      This case is not well handled by email providers like Gmail, that
      splits the line on the ";" and considers there are 2 senders, and then
      discards the email.
      
      We then fix the templates, waiting for a better fix in master.
      Unverified
      eefd0de5
    • Nicolas Martinelli's avatar
      [FIX] purchase: zero line · 814d9031
      Nicolas Martinelli authored
      To reproduce, see issue #16611.
      
      In the mentioned use case, a line with a quantity of zero is created,
      which generates a traceback at invoice validation.
      
      Fixes #16611
      opw-741055
      814d9031
  6. Apr 27, 2017
  7. Apr 26, 2017
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      3d35aef5
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      5c05e397
    • Christophe Simonis's avatar
      2a65b815
    • Nicolas Lempereur's avatar
      [FIX] mass_mailing: mail template not in english · 551719a8
      Nicolas Lempereur authored
      Mass mailing `mail templates` when selected in a mass mailing are
      always used in the english version.
      
      But when another language is involved the edition of mass mailing
      `templates` had a number of issue. For example saving the edited english
      would only modify the user current language.
      
      These issues are cause because the widget with snippets used for mass
      mailing templates edition is not compatible.
      
      Several fixes were proposed, what was choosen finally was to use the
      correct widget with the following behavior changes:
      
      - the snippets are not showed anymore in mass mailing templates,
      - the current language can be edited and is saved rightly,
      
      The shortcoming this give mass mailing templates can be partly
      compensated by:
      
      - editing the template back (if someone want the old behavior),
      - duplicating mass mailings which keep the snippets and translations,
      - doing a customization to improve the situation
      
      closes #16255
      fixes #16165
      opw-726746 opw-727232
      
      note: this fix is only needed for 9.0 and saas-11.
      551719a8
    • Nicolas Lempereur's avatar
      [FIX] pad: remove wrong warning at pad creation · cd2b07ea
      Nicolas Lempereur authored
      When creating a pad before this change these were the steps:
      
      - modify pad URL for new pad URL
      - end of record loading
      
      This caused an issue because modifying the record at this point would
      mark it as dirty before displaying it (which would result in a erroneous
      warning "The record has been modified, your changes will be discarded.
      Are you sure you want to leave this page ?").
      
      With this fix:
      
      - modifying the pad URL is done after the record is ready
      
      - deferred have been unified (to remove possible race conditions)
      
      closes #15239
      opw-702797
      
      forward port note: this change is needed up to saas-15, over saas-15
      only a small part is needed (because x2many views are loaded with the
      root view and there is one widget instance per record).
      
      code note: it would be better to modify load_record of form view and
      delay `record_loaded` upto after x2many views are loaded, but possible
      impacts have been judged too risky so this is done only in pad widget.
      cd2b07ea
    • Wolfgang Taferner's avatar
      [FIX] point_of_sale: backport of a2319b43 + fix · fe70f071
      Wolfgang Taferner authored
      When a PoS order is closed, the payment and the sales journal item are
      not automatically reconciled. This potentially leaves a lot of
      unreconciled entries for a customer, which will appear in his follow-up
      report.
      
      This introduces an auto-reconciliation process upon order closing. The
      process restricts the reconciliation to an order individually, i.e. we
      don't try to cross-reconcile several orders for a customer.
      
      opw-697565
      
      Add missing sudo to allow a user without accounting rights to close a session
      and reconcile entries.
      
      Closes #16517
      fe70f071
    • Alexis de Lattre's avatar
      [FIX] product: missing string on field · 7e1a523f
      Alexis de Lattre authored
      Closes #16640
      Unverified
      7e1a523f
    • Raphael Collet's avatar
    • Raphael Collet's avatar
      [FIX] models: remove `ir.model.fields` that no longer exist in registry · 4287a701
      Raphael Collet authored
      This fixes the following issue.  Assume a custom field F is created on
      `res.partner`.  This field will appear on `res.users` as an inherited field,
      and will be reflected in `ir.model.fields` as a 'base' field.  When F is
      removed from the parent model, it no longer appears on the child model in
      registry, but remains in `ir.model.fields`.
      
      The patch allows the proper removal of the no-longer-inherited field from
      `ir.model.fields`.
      4287a701
Loading