Skip to content
Snippets Groups Projects
  1. May 05, 2017
  2. May 04, 2017
    • Thomas Binsfeld's avatar
      [FIX] purchase: seller selection · d7afa841
      Thomas Binsfeld authored
      - Create an article with one supplierinfo (with a delivery delay and a
        min. quantity > 0) and a customer delivery delay
      - Trigger the creation of a PO by a procurement order for this article
      
      The supplier delivery delay is not taken into account in the date order
      of the PO because the seller is not selected.
      
      This is because the procurement quantity is not sent to the seller
      selection.
      
      opw-16702
      Closes #16702
      d7afa841
  3. May 03, 2017
    • Nicolas Martinelli's avatar
      [FIX] account, purchase: performance when adding PO · fb257353
      Nicolas Martinelli authored
      - Create 5 PO with 40 lines each for Partner A
      - Create an invoice
      - Add each PO thanks to the field "Add Purchase Order"
      
      The process takes more and more time for each PO.
      
      Most of the time is spent in the recomputation of the secondary fields
      (in the `onchange` method of "models.py"). The root cause is the cache
      invalidation due to the relational fields recomputed as superuser by
      default.
      
      opw-740485
      fb257353
  4. May 02, 2017
  5. May 01, 2017
  6. Apr 30, 2017
  7. 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 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
  8. Apr 26, 2017
    • 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
  9. Apr 25, 2017
    • Olivier Colson's avatar
      [FIX] resource: conditions on id · 863f46ec
      Olivier Colson authored
      Don't check ids with "id is None" statements, as it won't match if id is False. This caused some bugs with MRP when confirming a MO with no calendar defined, if mrp_operations was installed.
      863f46ec
  10. Apr 24, 2017
    • Nicolas Martinelli's avatar
      [FIX] account: performance in issued total · ec8699db
      Nicolas Martinelli authored
      When a partner has a lot of contacts, the computation of the issue total
      takes a lot of time. Indeed, it performs the computation for the
      partner, but also for all the children, despite the fact that the amount
      is not displayed.
      
      opw-726355
      ec8699db
    • Xavier Morel's avatar
      [FIX] account: subtract refund amount from "awaiting payments" total · 577d9863
      Xavier Morel authored
      Currently the amounts of all invoices (linked to sale or purchase
      journals) is summed regardless of these invoices being bills or
      refunds, this means e.g. if you create an invoice for 1000 then a
      refund for 500 on this invoice, the dashboard will display an
      "awaiting payment" total of 1500 which while technically correct is
      not really logical or helpful from a user's POV.
      
      Fix summation to take in account the invoice type (invoice or refund)
      and remove refund amount from the total amount.
      
      Intent validated by @lap-odoo, also not ignoring or removing refunds
      from count to avoid situations like "0 Awaiting Payments [for] $-1200"
      which would be really strange.
      
      OPW-728860
      577d9863
    • Goffin Simon's avatar
      [FIX] point_of_sale: fiscal position with included taxes in POS · 5b502841
      Goffin Simon authored
      To substract the included tax from the unit price when it's mapped
      by a fiscal position in the POS.
      
      To keep the same behavior introduced by this commit odoo@503820a
      
      opw:710437
      5b502841
    • Nicolas Martinelli's avatar
      9e6860a2
  11. Apr 23, 2017
  12. Apr 21, 2017
  13. Apr 20, 2017
    • Pedro M. Baeza's avatar
      [FIX] account: filter 'Due Payments' report on reconciled flag · e7a2a542
      Pedro M. Baeza authored
      SQL that retrieves data for the "Due Payments" report doesn't include
      any filter for excluding AR/AP move lines already reconciled, which
      shouldn't be presented in this report.
      
      Courtesy of Pedro Baeza. Was PR #16440
      e7a2a542
    • Nicolas Lempereur's avatar
      [FIX] web_enterprise: kanban_state_selection ie · 716ceede
      Nicolas Lempereur authored
      On IE (from 9.0 up to at least IE EDGE 14) we have this behavior
      for the method serializeToString of XMLSerializer:
      
      > (new XMLSerializer()).serializeToString($('<b>"</b>')[0])
        '<b xmlns="http://www.w3.org/1999/xhtml">"</b>'
      > (new XMLSerializer()).serializeToString($('<b>"</b>')[0].firstChild)
        '&quot;'
      
      Whilst browser such as chromium or firefox have:
      
      > (new XMLSerializer()).serializeToString($('<b>"</b>')[0])
        '<b xmlns="http://www.w3.org/1999/xhtml">"</b>'
      > (new XMLSerializer()).serializeToString($('<b>"</b>')[0].firstChild)
        '"'
      
      Hence for IE9 and over, if in a `<t t-extend/>` a `t-jquery`
      sub-directive (without `t-operation`) is available, we can have
      broken javascript if a " is transformed into an &quot; at a unfortunate
      location.
      
      This commit favour node.data over XMLSerializer serializeToString to
      avoid the possibility of this issue when a text node is processed.
      
      opw-727283
      716ceede
  14. Apr 19, 2017
    • Goffin Simon's avatar
      [FIX] base_partner_merge: deduplicate contacts in multi company · 0ae30c59
      Goffin Simon authored
      When deduplicating contacts, the function _process_query doesn't use
      the orm to fetch the partners to merge according to the criteria.
      So there were some access error in multi company when trying to merge
      contacts from a not allowed company.
      
      Now a check is made with the orm before merging the contacts.
      
      opw:708457
      0ae30c59
  15. Apr 18, 2017
    • Ankit Joshi's avatar
      [ADD] stock: add the field 'description_picking' in picking report · 7591f59c
      Ankit Joshi authored
      The field is defined but never user. It could be useful to indicate
      to the delivery guy that the product is 'fragile' or whatever.
      
      opw-728874
      7591f59c
    • Nicolas Martinelli's avatar
      [FIX] sale: set timesheet line to zero · b4193cd3
      Nicolas Martinelli authored
      - Create a SO with a product that is a service and will be invoiced
        based in delivery quantities and will be tracked on timesheets and
        contract.
      - Confirm
      - Use a simple user that only has for rights: "Employee"
      - Create a timesheet as the employee for the contract created by the sale
      - Log some time
      - Save it
      - Check the SO: ok the number of hours should be "to be invoiced"
      - Edit the timesheet and set one day to 0 hours => Access Error
      
      In case of a zero value, the timesheet widget sends an unlink command
      for the corresponding entry. In this case, the `sudo` is not set at the
      appropropriate moment since the context key `force_so_lines` will resue
      lines which are not defined in the `sudo` environment.
      
      opw-728453
      b4193cd3
  16. Apr 16, 2017
  17. Apr 14, 2017
Loading