Skip to content
Snippets Groups Projects
  1. Jan 16, 2015
    • Denis Ledoux's avatar
      [IMP] res_lang: constraint for grouping field · 5959c416
      Denis Ledoux authored
      As entering a wrong value in the grouping field of res.lang,
      for instance '[,]', leads to an unavailability of the web interface,
      We add a constraint to prevent entering wrong values.
      5959c416
    • Martin Trigaux's avatar
      [FIX] base: keep first multiline translation in po file · 2f5a7b63
      Martin Trigaux authored
      The first term of a po file is a comment for translator e.g.:
      msgid ""
      msgstr ""
      "Project-Id-Version: openobject-addons\n"
      ...
      
      This comment is ignored if there is no source and it is the first term of the po
      file. The first flage was disabled too late and if the following terms also
      started with an empty source (for too long terms), they were skipped as well.
      
      Disable the flag as soon as the condition is evaluated to make sure no
      additional terms are ignored. opw 619786
      2f5a7b63
  2. Jan 15, 2015
    • Denis Ledoux's avatar
      84b5bf94
    • Aaron Bohy's avatar
      [FIX] Packaging: Debian Dockerfile for nightly tests · 67959566
      Aaron Bohy authored
      Remove installation of v8 requirements in package.dfdebian as this
      is unnecessary for v7. This fixes a bug occuring during the installation
      of openerp (precisely when installing reportlab dependencies), because
      reportlab now requires a more recent version of pillow than 2.5.1.
      Also use pip instead of /usr/local/bin/pip in test_tgz (package.py)
      as pip script isn't installed there anymore.
      67959566
    • Ravi Gohil's avatar
      [FIX] mrp: production traceability · 7530d281
      Ravi Gohil authored
      Upstream traceability on produced goods (serial number on finished product) was
      broken due to wrong values in cache for production.move_lines2 after production.
      Refresh the value of production after each action_consume to make such the state
      of the cache is correct. opw 609450
      
      Similar fix for manufactruing order not going in done state in some specific
      configrations (e.g. some components being phantom BOM).
      Again due to wrong cache state after consumption. opw 610515
      Fixes #1296
      7530d281
    • Sandy Carter's avatar
      [FIX] res.groups: when generating initial group view, use admin context and language · 894143cb
      Sandy Carter authored
      This means group category names can be translated in the
      default/installation database language.
      
      Closes #3921
      894143cb
  3. Jan 14, 2015
    • Martin Trigaux's avatar
      [FIX] delivery: reset delivery info on duplicate/backorder · f4068476
      Martin Trigaux authored
      The tracking reference and other delivery references are not relevant to
      duplicated pickings. Overwrite copy to remove carrier_tracking_ref, volume and
      number_of_packages.
      
      Add fallback on stock.picking.in and out to use copy method of stock.picking.
      
      For partial delivery, the duplicated picking is the delivered order and
      the existing picking is the backorder of the delivery (why so much hate?).
      This means we have to switch the delivery info between the backorder and
      the delivered picking.
      Combo opw 615593 and 618802
      f4068476
    • Denis Ledoux's avatar
      [FIX] mrp: prevent creating production lines when testing if production is of product type · 30a7bea0
      Denis Ledoux authored
      The method test_if_product, used in the workflow to test that the mrp production is for a product (!= service), used to call the method _action_compute_lines in order to compute the production lines and determine from them the production type.
      
      The thing is, the method _action_compute_lines, despite the fact it returns the lines of the production, actually creates the lines. So, just to test if the production was of product type, the productin lines were created, in database.
      
      This rev. introduces a _prepare_lines method, which returns the computed production lines, without actually creating them in database, so the test_if_product method can test if the production is of product type without creating the production lines.
      
      Therefore, production lines are now computed and created during the action_compute method, instead of computing them when the production was tested to get the production type.
      
      Computing the lines before the action_compute has as side effect to not set the scheduled date of the work orders in module mrp_operations, at MO confirmation (as, on confirmation, the action_compute method is called only for productions for which the lines are not yet computed, and mrp_operations overide action_compute to set the scheduled date)
      
      opw-620189
      30a7bea0
    • Akash Balar's avatar
      [FIX] mrp : skip lines not within date range specified on BOM · 70a51cd7
      Akash Balar authored
      As date_start and date_stop are date field and not datetime, should use
      DEFAULT_SERVER_DATE_FORMAT for search. opw 619592
      70a51cd7
  4. Jan 13, 2015
  5. Jan 12, 2015
    • Xavier Morel's avatar
      [FIX] over-eager merge b270e4f7 · d89af0da
      Xavier Morel authored
      Extract dropping of connection from exp_drop (as in 8.0), call it from
      relevant database-alteration functions (drop, rename, duplicate)
      d89af0da
    • Xavier Morel's avatar
      b270e4f7
    • Sandy Carter's avatar
      [FIX] orm: prevent pgerrors from raising `UnicodeDecodeError` · 3b7e00d7
      Sandy Carter authored
      Use `tools.ustr` for error conversion to prevent `UnicodeDecodeError` when
      converting errors which can be unicode in depending on data.
      
      Example:
      ```python
      from openerp.osv.orm import convert_pgerror_23505
      from psycopg2 import IntegrityError
      
      e = IntegrityError(
          'duplicate key value violates unique constraint '
          '"hr_job_name_company_uniq"\nDETAIL:  '
          'Key (name, company_id)=(Directrice comptabilit\xc3\xa9, 1) '
          'already exists.\n'
      )
      
      convert_pgerror_23505(None, [], None, e)
      
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 129: ordinal not in range(128)
      ```
      3b7e00d7
  6. Jan 09, 2015
    • Denis Ledoux's avatar
      [FIX] web: avoid rendering fields on one2many list validation · 38aa984f
      Denis Ledoux authored
      This rev. reverts 91911159
      
      The above rev. was a good idea, except that internal_set_value expects the raw value, while the records attributes can be tuples(for instance, many2one are tuple(id, name) or list of command(one2many, many2many).
      
      set_value must be use here, as all fields (js) override set_value in order to handle their value repr (for instance, many2one fields handle the tuple (id,name).
      
      Besides, avoiding the re-render provides a huge performance improvment, as rerendering fields can lead to xmlrpc calls (for instance, re-rendering a many2one field implies calling the name_get method)
      
      opw-620111
      opw-622108
      38aa984f
  7. Jan 08, 2015
  8. Jan 07, 2015
  9. Jan 06, 2015
    • Denis Ledoux's avatar
      [FIX] web: editable list, no re-rendering on field validation · 91911159
      Denis Ledoux authored
      When adding several lines in an editable list (adding 7 lines to an invoice for instance), then clicking on the first row direcly after having filled the last line, the value of the cell sometimes had the value of the last line. Just a display bug, but still.
      
      Using internal_set_value avoid the re-rendering of the cell, and solve the above issue
      
      opw-620111
      91911159
    • Martin Trigaux's avatar
      [IMP] config: remove deprecated comment · ae34a1e9
      Martin Trigaux authored
      It was intended to be replaced by log-handler at first but log-level is still
      a very convenient way to manage the level of debug.
      ae34a1e9
    • Martin Trigaux's avatar
      [FIX] base: no line feed in translations · 96d1520a
      Martin Trigaux authored
      Revert "[FIX] ir_translation: remove control characters from translations"
      This reverts commit 6d4e1cc7.
      
      This was intended to clean malformed translations but it introduced the side
      effect of removing all '\n' in translations.
      
      Fixes #4092, opw 619175
      96d1520a
  10. Jan 05, 2015
  11. Dec 30, 2014
  12. Dec 25, 2014
  13. Dec 24, 2014
    • Denis Ledoux's avatar
      [FIX] web: datetime value parsing without time · 63723134
      Denis Ledoux authored
      If the date format language was changed to invert month & day values (so, changed to the classic european format instead of the american format)
      Then, when entering manually a datetime without the time (so just '01/02/2014' instead of '01/02/2014 00:00:00', the day and month were inverted (the datetime was set to 02/01/2014 instead of 01/02/2014) because the datetime entered did not exactly match the date + time pattern.
      
      We therefore added a fallback case, to test to parse the value with the date pattern alone (without the time)
      63723134
    • Aaron Bohy's avatar
      e607f03f
  14. Dec 23, 2014
  15. Dec 22, 2014
  16. Dec 21, 2014
  17. Dec 19, 2014
  18. Dec 18, 2014
    • Lionel Sausin's avatar
      [FIX] project: don't use planned_hours in project gantt · 10984ad4
      Lionel Sausin authored
      The gantt view does not have enough data to properly display a project's length
      based on only the planned hours.
      It also makes it impossible to change the project's length using drag & drop.
      It's safer to simply display the start and end dates recorded in the project
      Fixes #2632
      10984ad4
  19. Dec 17, 2014
Loading