Skip to content
Snippets Groups Projects
  1. Jun 20, 2016
    • Nicolas Martinelli's avatar
      [FIX] sale_stock: do not count discount twice · 8a1d7dfe
      Nicolas Martinelli authored
      When a product is a kit and a discount is applied thanks to a pricelist,
      the discount is counted twice if the invoice is created from the stock
      picking.
      
      This is because the pricelist will modify the price unit, but moreover
      the discount will be applied a second time by the method
      `_compute_price` of the account move line.
      
      opw-676838
      8a1d7dfe
  2. Jun 19, 2016
  3. 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
    • 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
    • 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
    • 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
    • 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
    • Florian Kisser's avatar
      [CLA] Corporate signature for Seekda GmbH · 80db1846
      Florian Kisser authored
      Closes #12463
      80db1846
    • William Moreno's avatar
      [CLA] signature for williamjmorenor · eeb53881
      William Moreno authored
      Closes #12467
      eeb53881
  4. Jun 16, 2016
    • Denis Ledoux's avatar
      [FIX] purchase: `related_usage` must be readonly · ae74ebb5
      Denis Ledoux authored
      The `related_usage` field of `purchase.order`
      is a related field to the location `usage` field,
      which is defined in order to display/hide
      some other field in the PO according to the location usage
      
      This is purely a technical field, which is set only
      to change the form view according to the location
      usage.
      
      This is not expected to change the location usage
      through this field, this field must therefore
      be set to readonly.
      
      A change on the location usage could happen because
      of the `onchange_picking_type_id`:
      If the user changed the picking type, and then the location,
      the usage returned by the `onchange_picking_type_id` was
      applied on the location, and this must not have happened.
      
      In addition, since `related_usage` is a related to the location
      usage, it should be changed as well when the location is changed.
      (in the new api, this is no longer required, the related field
      is updated automatically).
      
      This revision therefore adds an onchange on the location as well,
      to handle this.
      
      opw-676428
      ae74ebb5
  5. Jun 15, 2016
  6. Jun 14, 2016
  7. Jun 13, 2016
  8. Jun 12, 2016
  9. Jun 10, 2016
  10. Jun 09, 2016
  11. Jun 08, 2016
    • Pedro M. Baeza's avatar
    • Pedro M. Baeza's avatar
      [IMP] l10n_es: New taxes, taxes codes and fiscal positions according law changes · 730890f3
      Pedro M. Baeza authored
      * v5.2: Añadida retención 19,5% arrendamientos.
      * v5.1: Renombrado todo lo relacionado con arrendamientos para no incluir la
        palabra "IRPF", ya que no es como tal IRPF.
      * v5.0: Se ha rehecho toda la parte de impuestos para dar mayor facilidad de
        consulta de los datos para las declaraciones de la AEAT y para cubrir todas
        las casuísticas fiscales españolas actuales. Éstas son las características
        más destacadas:
      
        * Desdoblamiento de los impuestos principales para bienes y para servicios.
        * Nuevo árbol de códigos de impuestos orientado a cada modelo de la AEAT.
        * Nuevos códigos para los códigos de impuestos para facilitar su
          actualización.
        * La casilla del modelo viene ahora en la descripción, no en el código.
        * Posiciones fiscales ajustadas para el desdoblamiento.
        * Nuevo impuesto y posición fiscal para retención IRPF 19%.
        * Nuevo impuesto para revendedores con recargo de equivalencia.
        * Nuevas posiciones fiscales para retenciones de arrendamientos.
        * Pequeños ajustes en cuentas contables.
      
      Closes #8453
      730890f3
    • Goffin Simon's avatar
      [FIX] website_quote: delay in SO line · d0d3ba92
      Goffin Simon authored
      When creating an SO line with a quotation template, the customer
      lead time must be set.
      
      opw:678039
      d0d3ba92
    • Martin Trigaux's avatar
      [FIX] base_import: disable tracking during validation · f307e36e
      Martin Trigaux authored
      Force the value tracking_disable to be make sure that the validation (which is
      supposed to have no impact), will not send any email.
      
      Fixes #3173
      f307e36e
    • Joren Van Onder's avatar
      [IMP] hw_scanner: support multiple simultaneously attached devices · fe99c517
      Joren Van Onder authored
      The hw_scanner module not only supports barcode readers (although that
      was it's original intention). It also happens to support certain card
      readers (like the MagTek Dynamag we use for Mercury) because they act
      the same way as barcode scanners (like a keyboard and end sequence with
      ENTER).
      
      Before we supported Mercury there was no real reason to support multiple
      devices on the POSBox, because it didn't make much sense to attach >1
      barcode reader to the same POSBox. With Mercury however, this is a real
      use case, as users want both a barcode reader and a card reader.
      
      This commit implements support for this, while keeping the functionality
      as close as possible to how it was before (eg. care was taken to not
      break plug and play support).
      fe99c517
  12. Jun 07, 2016
  13. Jun 06, 2016
    • Denis Ledoux's avatar
      [FIX] account: Exchange test failing on Jun 6 · b9a006c1
      Denis Ledoux authored
      The test `test_balanced_exchanges_gain_loss`
      failed on Jun 6, because it created a specific rate
      for today's date at midnight
      (e.g. on Jun 6, 201x-06-06 00:00:00) for the test purpose,
      but a rate is created in the demo data for Jun 6 midnight exactly:
      `base.rateUSDbis`, making the test confused about which rate
      to use.
      
      We solve this by making the test use the rate `base.rateUSDbis`,
      modifying the rate for its own need, instead of creating a new
      rate.
      b9a006c1
    • Denis Ledoux's avatar
      [FIX] fields: translations of the help of inherited fields · 950fd97d
      Denis Ledoux authored
      This is similar to revision 54140331
      
      opw-673716
      950fd97d
  14. Jun 05, 2016
  15. Jun 02, 2016
    • Adrien Peiffer (ACSONE)'s avatar
    • Martin Trigaux's avatar
      [FIX] website_forum: convert content of posted comment to plaintext · 30f06fd3
      Martin Trigaux authored
      HTML content should be escaped before being sanitized. Any content (link, image,
      code,...) that is acceptable in usual mail.message but should not be interprated
      when posted on a comment of the forum.
      
      Fixes #3737
      30f06fd3
    • Denis Ledoux's avatar
      [FIX] website_sale: `State` select readonly in shipping info · c751c129
      Denis Ledoux authored
      If we take the below facts:
       - The country select is set as disabled
         when Shipping is set to "Ship to the same address"
       - The disable property of select inputs is
         removed when shipping is set to
         `create a new address`:
         In `website_sale.js`:
         ```
         $selects.attr("disabled", value <= 0 ? null : "disabled" ).prop("disabled", value <= 0 ? null : "disabled" );
         ```
      
      We can safely assume that the select input "State / Province" was supposed
      to be set as `disabled` in the first place, not as `readonly`
      
      Before this revision, State / Provice was greyed when choosing
      "Create a new address" for shipping, and selecting the United States
      (but the select input was still usable, though, it was just greyed)
      
      opw-675739
      c751c129
Loading