Skip to content
Snippets Groups Projects
  1. Jun 22, 2016
  2. Jun 21, 2016
    • Sebastien LANGE's avatar
      [FIX]mrp: order view in mrp bom tree view · 58e3ac5c
      Sebastien LANGE authored
      The order of BOMs is based on the sequence which is
      not present in the view. When you open all
      BOMs, any order is defined. This patch will display the
      list of BOM by product.
      
      opw:681189
      58e3ac5c
    • Goffin Simon's avatar
      [FIX] account: _prepare_reconciliation_move_line · e049506b
      Goffin Simon authored
      float_is_zero(value1-value2) is not equivalent to
      float_compare(value1,value2) == 0, as the former will round after
      computing the difference, while the latter will round before
      
      opw:678588
      e049506b
    • Nicolas Martinelli's avatar
      [FIX] mail: mail template in Discuss · ffe0db0d
      Nicolas Martinelli authored
      When the mail composer is opened thanks to the "Send Mail" button in
      Discuss, it's possible to save a mail template, but the user can't
      access it anymore later on.
      
      This is because the field `model` is by default empty in this specific
      case since this is a client action. However, when saving the template,
      the default value 'mail.template' is used for the `model` field.
      Therefore the domain on the `template_id` field prevents the user to
      find back the model he just saved.
      
      The fix sends the `active_model` in the context with the value
      'mail.message', so that the `default_get` method of
      `mail.compose.message` will set the appropriate default value.
      
      opw-677936
      ffe0db0d
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      [FIX] test_new_api,web: tests 9.0 adjustments · 0a2317d3
      Christophe Simonis authored
      Rev e37ba618 forward-ported 8.0 revision f02b2300 from PR #12379.
      This patch introduces extra tests and views for o2m onchange behavior,
      including new fields in the test models.
      
      In 9.0 a new convert_to_onchange() mechanism had been
      introduced at 9f81c6d6
      
      The combination of both requires some adaptation to the
      expected results of the new tests and adaptation of existing tests.
      
      The test models in `test_new_api` have an implicit depencies between
      models which cannot be express on ORM:
          messages depends on participants of their discussion.
      
      So, when editing a discussion, the field `participants` should be
      processed before field `messages`. This is not always done because
      field processing order depends of the iteration order of a `dict` (which
      is undefined in python).
      The testing tour `widget_x2many` worked by chance until now.
      Adapt the tour to save the participants before the messages.
      0a2317d3
    • Josse Colpaert's avatar
      [IMP] stock: when applying a push rule the new move should not be linked to... · fe15829c
      Josse Colpaert authored
      [IMP] stock: when applying a push rule the new move should not be linked to the same procurement anymore
      fe15829c
  3. Jun 20, 2016
  4. Jun 19, 2016
  5. Jun 17, 2016
    • Xavier ALT's avatar
      [FIX] fields: during an onchange(), do not invalidate *2many fields because of their domain · f02b2300
      Xavier ALT authored
      Our usage of domain on fields One2many seems to trigger an obscure behaviour on
      onchange.
      
      With the following (simplified) config:
      
          Message(models.Model):
              _name = 'test_new_api.message'
              important = fields.Boolean('Important')
      
          Discussion(models.Model):
              _name = 'test_new_api.discussion'
              name = fields.Char('Name')
              important_emails = fields.One2Many('test_new_api.emailmessage', 'discussion',
                                                 domain=[('important', '=', True)])
      
          Email(models.Model):
              _name = 'test_new_api.emailmessage'
              _inherits = {'test_new_api.message': 'message'}
      
              discussion = fields.Many2one('test_new_api.discussion', 'Discussion')
              message = fields.Many2one('test_new_api.message', 'Message')
      
      Steps:
      - We change 'name' on discussion, triggers an `onchange()` call
      - we ends up filling cache on virtual record (on secondary fields, we calling
        record.mapped('important_emails.important'))
      - we get a cache miss ('important' field not provided, only 'important_emails' ids,
        i.e with no change on existing records)
      - we fill the cache, this mark 'important' field as modified
      - because of commit 5676d812 and because 'important' is that case is a related (i.e
        computed) field we triggers cache recomputation
      - as there is no way to recompute 'important_emails' for virtual record (no real
        ID) we ends up with empty 'important_emails' generating removal of existing records.
      
      => Finally changing any value for 'test_new_api.discussion' that trigger an onchange
      will always reset 'important_emails' to empty
      
      Fixed by Raphael Collet <rco@odoo.com>, and test by Xavier Alt <xal@odoo.com>.
      f02b2300
    • Jeremy Kersten's avatar
      [FIX] tools: don't save dev_mode in config file. · 39a7ce44
      Jeremy Kersten authored
      When user reset master password from web database manager, the
      config file is saved.
      
      If server was started in dev_mode the param dev_mode was saved
      in openerp_serverrc silently. (in 9 or always in trunk)
      
      Remind: --dev_mode should be never used on a production server.
      39a7ce44
    • jeffery chen fan's avatar
      [FIX] crm_profiling: backport of cf9230d1 · bcb191f2
      jeffery chen fan authored
      Do not redefine the view arch but do a proper inherit.
      It was a problem as the redefinition removed some fields (headers,..).
      It was also a problem if crm_profiling was uninstalled as the redefinition was
      not removed.
      
      Closes #12454
      bcb191f2
    • Nicolas Lempereur's avatar
      [IMP] base: allow 'render' override with new api · e1deae7e
      Nicolas Lempereur authored
      New API use a frozendict for context, so when a function in the call
      chain is overrided by new API (eg: render function of ir.qweb) the code
      now changed by this commit would cause an error.
      
      Instead this code duplicate the context frozendict as a dict removing
      the need to set back the intial language in the context.
      
      opw-681167
      
      note: no need for >=saas-11
      e1deae7e
    • Quentin De Paoli's avatar
      [FIX] account: on ir_sequence, number_next_actual must always be read instead... · ba491729
      Quentin De Paoli authored
      [FIX] account: on ir_sequence, number_next_actual must always be read instead of number_next which might contain wrong value in case of 'standard' sequence. This was causing a crash on creating a new invoice, if demo data were installed and the user went to settings\accounting to do some modification. Issue #12471
      ba491729
    • Jeremy Kersten's avatar
      [FIX] base: fix domain of serialization_field_id in ir model field view · e9aa5fdd
      Jeremy Kersten authored
      During refactoring of the field view, parent.model has been replaced by
      model_id since it is more elegant. (odoo/odoo@4a60a3)
      
      That was correct when you was working directly from the ir.model.field.
      But if you was comming from ir.model -> fields -> 'add an item', the
      model_id is unknow in the context of pyeval.
      
      This commit close #12455
      e9aa5fdd
    • Christophe Simonis's avatar
      [FIX] website_quote: avoid setting unknow field · 8284c738
      Christophe Simonis authored
      The field `delay` on `sale.order.line` has been renamed into
      `customer_delay` and is already set.
      
      This revert commit d0d3ba92.
      8284c738
    • luc-demeyer's avatar
      [FIX] account: fixed group_lines method of invoices. · 1750b902
      luc-demeyer authored
      The group_lines method didn't make the sum of the quantity field, hence resulting in incorrect results when making product based statistics from the account.move.line records.
      
      Courtesy of Luc De Meyer. Was PR #10551
      1750b902
    • Khwunchai J's avatar
      [FIX] web_settings_dashboard: Incorrected plural form of "Active Users" · a9ea4e7c
      Khwunchai J authored
      Odoo add the extra letter "s" to the translated word "Active User".
      This is caused by adding "s" at the end of the word directly from the template,
      which makes no sense in many language.
      This prohibits translators from translating the plural form in any language.
      The plural form and singular form of "Active User" should be translate
      separately.
      
      Fixes #12469
      Closes #12470
      a9ea4e7c
    • Nicolas Martinelli's avatar
      [FIX] website_livechat: prevent traceback · 4bb51109
      Nicolas Martinelli authored
      If no image is defined for the channel, the template rendering will
      crash since it will concatenate a string and a boolean.
      
      opw-680938
      4bb51109
    • Martin Trigaux's avatar
      [FIX] doc: Research -> Search · 9007ed4c
      Martin Trigaux authored
      If I need to do researchs to find a quotation, the goal of having a userfriendly
      software may be missed.
      9007ed4c
    • Nick Booker's avatar
      [FIX] doc: 'Searching' instead of 'Research' · bdf93910
      Nick Booker authored
      The word 'Research' isn't usually used in this context.  'Searching' is better.
      Closes #11517
      bdf93910
    • Ramon Bartl's avatar
      [CLA] Corporate signature for RIDING BYTES · 46867bbb
      Ramon Bartl authored
      Closes #11888
      46867bbb
    • Jarmo Kortetjärvi's avatar
      [CLA] Signature for jarmokortetjarvi · 41da40d4
      Jarmo Kortetjärvi authored
      Closes #10997
      41da40d4
    • Telnet Data's avatar
      [CLA] Corporate signature for Telnet Servizi Srl · 4beb1a9f
      Telnet Data authored
      Closes #11070
      4beb1a9f
    • Sharjeel Ali Shaukat's avatar
      [CLA] signature for salishaukat · 9a20889f
      Sharjeel Ali Shaukat authored
      Closes #11940
      9a20889f
    • Ross Golder's avatar
      [CLA] Signature for rossigee · 8ca505d6
      Ross Golder authored
      Closes #11488
      8ca505d6
Loading