Skip to content
Snippets Groups Projects
  1. 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
  2. Jun 05, 2016
  3. 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
      Unverified
      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
    • Christophe Simonis's avatar
    • Jairo Llopis's avatar
      [FIX] mass_mailing: filter emails to avoid duplicates · 57e5d703
      Jairo Llopis authored
      When subscribing a user to a mailing list, the `mail.mass_mailing.contact`
      created is processed to identify it's name and email from the address (method
      `get_name_email` called in `add_to_list` and `name_create`).
      For a better consistency, the search of existing contacts should also be done
      using the method `get_name_email`.
      
      This avoids that subscribing twice `Example <example@example.com>` fails to
      detect duplicates and creates two subscriptions.
      
      Closes #12265
      Unverified
      57e5d703
  4. Jun 01, 2016
  5. May 30, 2016
    • Ronald Portier's avatar
      [FIX] crm,gamification: flexible reference to field · d73648fe
      Ronald Portier authored
      The field generation is most of the time following the pattern
      `field_<table name>_<field name>`
      but in case of name clash (e.g. res.partner.category - id and res.partner -
      category_id), the id of ir.model.field is added at the end of the external id
      during the field creation.
      
      The more flexible way to link to an ir.model.field is to use the syntax
      `search=[('model', '=', <model>), ('name', '=', <field name>)]`
      to avoid errors as in #12192 when the "first" external id no longer exists.
      
      Fixes #12192
      Closes #12198
      Unverified
      d73648fe
    • Nicolas Martinelli's avatar
      [FIX] purchase: wrong call to super · 63ca2d1b
      Nicolas Martinelli authored
      opw-675480
      63ca2d1b
    • aetna-softwares's avatar
      [CLA] Corporate signature for Aetna Softwares · 89d44e9c
      aetna-softwares authored
      Closes #12214
      Unverified
      89d44e9c
    • Olivier Dony's avatar
      [FIX] account,*: preserve deactivated taxes · cd3f52ba
      Olivier Dony authored
      By default, when reading a m2m field, entries that are
      deactivated in the destination table are not included.
      This behavior is desirable in some cases (e.g. for
      "tags" or "categories", but not for entries that
      significantly impact other field values in the parent
      record, such as taxes.
      
      The problem is rather obvious: when displaying a
      paid invoice that used taxes that are now deactivated,
      the taxes are hidden while they still affect the
      computed amount. And after cancelling + resetting
      to draft, the tax is not taken into account anymore,
      while still being linked.
      
      Forcing the field-level (python) domain to include
      both active and inactive entries solves the problem:
       - when reading, displaying and recomputing values,
         deactivated taxes will be included.
       - when trying to pick a tax, deactivated entries
         will still be ignored, as expected.
      
      This commit applies the technique to all m2m
      fields that refer to taxes.
      
      Fixes #12066
      opw-677751
      cd3f52ba
    • David Arnold's avatar
      [CLA] corporate signature for DevCo Colombia · 270b2d0a
      David Arnold authored
      Closes #11755
      Unverified
      270b2d0a
    • Ronald Portier's avatar
      [CLA] Update Therp BV's signature · c0385354
      Ronald Portier authored
      To have consistent email in author and signer key.
      Also update list of contributors as Stefan is no longer working for Therp BV.
      
      Closes #12202
      Unverified
      c0385354
  6. May 29, 2016
  7. May 27, 2016
  8. May 26, 2016
  9. May 25, 2016
    • Jeremy Kersten's avatar
      [FIX] web: fix backport #4c7a9bda · 9772bbef
      Jeremy Kersten authored
      9772bbef
    • Denis Ledoux's avatar
      [FIX] calandar: all day events email notification · 4176030c
      Denis Ledoux authored
      When sending a notification email to an event attendee
      for an all day event, the timezone must be ignored
      as the `start` and `stop` datetime are stored as
      the day date + '00:00:00'. If the timezone is applied,
      for users being in a negative timezone (such as an American
      timezone), the day displayed would be the day just before.
      
      opw-677019
      4176030c
    • Goffin Simon's avatar
      [FIX] web: raise a warning for bad domain · 4c7a9bda
      Goffin Simon authored
      When a user wrote a wrong value in char_domain field it should raise a warning
      message instead of a traceback.
      
      Backport of b3a88b6e
      
      opw:676783
      4c7a9bda
    • Martin Trigaux's avatar
      [IMP] gamification: prevent misconfiguration · 97492a12
      Martin Trigaux authored
      Prevent selecting wrong field or models or computed fields
      
      Fixes #8545
      Unverified
      97492a12
    • Joren Van Onder's avatar
      [FIX] hr_payroll: avoid infinite recursion · be48a140
      Joren Van Onder authored
      The get_recursive_parent function seemingly depended on the ordering of
      the rule_categories recordset which happens to work fine in most cases
      because all data first defines the parent before defining the children
      rule categories. But if you happen to do it the other way around it
      won't work and it will infinitely call itself because:
      
      if rule_categories[0].parent_id:
          rule_categories = rule_categories[0].parent_id | rule_categories
      
      won't change the value of rule_categories[0].
      
      opw-673222 (loosely related)
      be48a140
  10. May 24, 2016
    • Goffin Simon's avatar
      [FIX] account: partner_id set on a bank fee · 08416b23
      Goffin Simon authored
      Used case:
      
      -Create several customer invoices and validate them
      -Register a payment without any partner_id and in a bank statement for an amount
      a bit lower than the total of the invoice (the difference is the paypal fees)
      -Reconcile the invoices with the payment and create a write-off for the paypal fees
      -When you close the bank statement, check the journal items, the paypal fees are
      automatically assigned with a partner.
      
      Fix:
      
      -When creating the account move line for the fee, if all the account move lines
      linked to the move are for different partners then you cannot determine the partner
      of the fee.
      
      opw:674822
      08416b23
  11. May 23, 2016
    • Martin Trigaux's avatar
      Revert "[FIX] res.currency: allow duplication" · 0af32f3f
      Martin Trigaux authored
      This reverts commit d780f947.
      
      Did not work due to the size=3 on name field that strips the code to the first
      three letters only (removing the " (copy)" part).
      Copying a currency has a few business cases as the rates are not copied.
      As can not increase the size of a field in stable, remove the method that had no
      effect.
      
      Fixes #11036
      Unverified
      0af32f3f
  12. May 22, 2016
  13. May 20, 2016
  14. May 19, 2016
Loading