Skip to content
Snippets Groups Projects
  1. Apr 21, 2016
  2. Apr 20, 2016
    • oihane's avatar
      [FIX] hr_timesheet_invoice: fully qualify grouped fields in SQL view · 630f3d56
      oihane authored
      Avoids name collisions when custom columns are involved.
      
      Closes #11743
      630f3d56
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: precision · b112631b
      Nicolas Martinelli authored
      Oversight of commit bd025cda.
      I'm an idiot, I should have checked that another solution was applied
      from 9.0 with accounting refactoring. We apply it here as well.
      b112631b
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: account/valuation inconsistencies · eb26694e
      Nicolas Martinelli authored
      When stock landed costs are divided per product unit, inconsistencies
      may arise between the real stock valuation and the stock valuation
      account. This is likely to happen when several products are bought, but
      these products leave the stock one at a time.
      
      A numerical example is the following: a landed cost of 15.00 is applied
      to a purchase of 13 units. An amount of 15.00 is recorded when the
      products enter the stock. If the product leave the stock one at a time,
      13 entries of 1.15 are recorded (15.00/13 = 1.153846... ≈ 1.15), which
      is then equal to 13 * 1.15 = 14.95. In this case, All the products have
      left the stock (stock valuation is zero), but 5 cents remain on the
      account.
      
      This is of course even worse the higher the ratio is. For example, a
      landed cost of 4.00 split into 1000 units sold piece by piece will never
      be recorded when a product leaves the stock.
      
      The fix is to record the rounding difference on a specific quant. In the
      previous example, instead of adding 1.153846... on the unit cost of the
      13 units, we do the following:
      - 12 units to which we add 1.15 on unit cost
      - 1 unit to which we add 1.20 on unit cost
      
      opw-675222
      eb26694e
    • Nicolas Martinelli's avatar
      [FIX] stock_account: account/valuation inconsistencies · 262d98bb
      Nicolas Martinelli authored
      When the product price is divided per product unit, inconsistencies
      may arise between the real stock valuation and the stock valuation
      account. This is likely to happen when a product is bought in a UoM
      different from the standard UoM of the product.
      
      A numerical example is the following: a box of 13 is bought for 15.00.
      An amount of 15.00 is recorded when the products enter the stock. If the
      product leave the stock one at a time, 13 entries of 1.15 are recorded
      (15.00/13 = 1.153846... ≈ 1.15), which is then equal to
      13 * 1.15 = 14.95. In this case, All the products have left the stock
      (stock valuation is zero), but 5 cents remain on the account.
      
      This is of course even worse the higher the ratio is. For example, a
      box of 4.00 split into 1000 units sold piece by piece will never be
      recorded when a product leaves the stock.
      
      The fix is to record the rounding difference on a specific quant. In the
      previous example, instead of adding 1.153846... on the unit cost of the
      13 units, we do the following:
      - 12 units to which we add 1.15 on unit cost
      - 1 unit to which we add 1.20 on unit cost
      
      opw-675222
      262d98bb
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: former_cost_per_unit precision · bd025cda
      Nicolas Martinelli authored
      The precision of `former_cost_per_unit` should not be set. Indeed, a
      stock move can contain several quants with different unit prices.
      Therefore, we should not round the field when stored, otherwise the
      difference per unit will not be calculated correctly.
      
      This is a workaround since we cannot change the DB structure in stable.
      
      opw-675222
      bd025cda
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: use correct UoM · 85fd9721
      Nicolas Martinelli authored
      Use the normalized quantity, otherwise the amount per unit is wrongly
      calculated.
      85fd9721
    • Olivier Dony's avatar
      [FIX] web: fix db manager layout in Chrome 50 · fc2aa736
      Olivier Dony authored
      Complement of f992c8ee,
      to be reverted in saas-6+ and in 8.0 when Chrome's
      fix reaches the stable Chrome channel.
      
      Fixes #11629
      
      See https://bugs.chromium.org/p/chromium/issues/detail?id=603507
      fc2aa736
    • Joren Van Onder's avatar
      [FIX] point_of_sale: display correct uom on weighable products · d043fd03
      Joren Van Onder authored
      Everything's displayed fine on orderlines with weighable products, this
      only affected the small blue labels on the products.
      
      opw-674264
      d043fd03
    • Stephen Medina's avatar
      [FIX] server: support psutils >= 4.0 · 92f1cbeb
      Stephen Medina authored
      In version 3, process.memory_info() returns only rss and vms
      In version 4, it now returns rss, vms, shared, text, lib, data and dirty
      Automatic unpacking is no longer possible in 4.0
      
      Fixes #11052, Closes #11459
      Unverified
      92f1cbeb
    • Stephen Medina's avatar
      [CLA] signature for stephen144 · 58d99909
      Stephen Medina authored
      signature #11459
      Unverified
      58d99909
    • Eduardo Rodríguez Crespo's avatar
      [CLA] signature for erocre · 364e80f7
      Eduardo Rodríguez Crespo authored
      Closes #11639
      Unverified
      364e80f7
  3. Apr 19, 2016
  4. Apr 18, 2016
  5. Apr 15, 2016
  6. Apr 14, 2016
    • Goffin Simon's avatar
      [FIX] account_analytic_analysis: comment field in account.invoice · dc3f1e22
      Goffin Simon authored
      When creating an invoice from a contract with button "create invoices",
      the description linked to the contract has to written in the comment field
      of the invoice.
      
      opw:671660
      dc3f1e22
    • Simon Lejeune's avatar
      [FIX] web: fix layout issue in Chrome 50 · 00ead29c
      Simon Lejeune authored
      The height was not distributed anymore to the children of a `table-row`
      element if they are not themselves `table-cell` elements.
      
      Fixes #11629
      00ead29c
    • Joren Van Onder's avatar
      [IMP] point_of_sale: release POSBox image v14 · 967629f8
      Joren Van Onder authored
      Marks official support for the Raspberry Pi 3.
      967629f8
    • Joren Van Onder's avatar
      [IMP] point_of_sale: move POSBox AP to a less used subnet · f5a527fb
      Joren Van Onder authored
      When the POSBox boots without a network cable attached it will
      automatically launch a wireless AP that people can connect to. This
      allows them to configure what wireless network the POSBox should connect
      to.
      
      This wireless AP was configured to use the 10.10.0.0/24 subnet. The AP
      itself was on 10.10.0.1. Although this is fine if used as intended it is
      a quick way to take down an existing network if you where to plug in an
      ethernet cable after the wireless AP has started. 10.10.0.1 is commonly
      used by routers all over the world and plugging in a booted POSBox into
      their networks will cause serious issues because the POSBox will share
      the same IP as the router.
      
      This moves the POSBox AP to the 10.11.12.0/24 subnet, with the AP on
      10.11.12.1.
      
      This also makes the DHCP server listen only on wlan0 because otherwise
      you can end up with two DHCP servers on the same network which would
      still break stuff.
      f5a527fb
    • Joren Van Onder's avatar
      [IMP] point_of_sale: redirect POSBox image init script output to file · fd43faac
      Joren Van Onder authored
      Useful when updates to the initialization scripts don't go as
      planned. This leaves something to inspect.
      
      The initialization script already automatically stops (because of 'set
      -o errexit') but it was a bit tricky to actually see what went wrong
      because scrollback in QEMU isn't great.
      fd43faac
    • Joren Van Onder's avatar
      [IMP] point_of_sale: migrate POSBox to Raspbian Jessie · 5af1c085
      Joren Van Onder authored
      The main reason for doing this is supporting the new Raspberry Pi 3. No
      functional changes where made.
      
      For Raspbian Wheezy we used to download the full image and strip it as
      best we could to obtain a reasonable image size for people to
      download. Since Raspbian Jessie the Raspberry Pi Foundation has started
      releasing an official minimal image (Raspbian Jessie Lite) which we will
      use from now on to build our image. One downside of this is that the
      minimal image is a 1.3 GiB image which is too small for our
      purposes so it has to be resized.
      
      Because Raspbian Jessie migrated to systemd we cannot rely on
      /etc/init.d/rcS to set up the ramdisks anymore. Jessie provides a
      compatibility layer so old SysVinit scripts still work but rcS does not
      block like it does in a SysVinit system, it is run in parallel with
      other startup services. In our case this is a bad thing as setting up
      the ramdisks has to be done before any other services are started. To
      accomplish this the rcS hack has been migrated to a systemd service
      running before basic.target and with DefaultDependencies=no. This has a
      similar effect as the rcS hack because normal systemd services (with
      DefaultDependencies=yes) all require basic.target by default.
      5af1c085
  7. Apr 13, 2016
    • Olivier Dony's avatar
      [FIX] website_sale: verify match between TX and SO amount · 46c5f93b
      Olivier Dony authored
      When processing a payment transaction, double-check the
      match between the amount of the transaction and the
      amount of the SO, to be sure that we won't be validating
      a SO that has been modified since the payment.
      
      Such cases have to be double-checked manually.
      
      Also add a bit of extra logging to make auditing ecommerce
      transactions easier.
      46c5f93b
    • Olivier Dony's avatar
      [FIX] paypal: no spurious warning about IPN version · ffdfadfc
      Olivier Dony authored
      In addition to being mostly useless because Paypal's API
      changes are supposed to be backwards-compatible, this
      warning was using inconsistent version numbers.
      
      Switched to a simple INFO line with IPN version.
      ffdfadfc
  8. Apr 12, 2016
  9. Apr 11, 2016
    • Holger Brunn's avatar
      [FIX] web: prevent crash in rare case with status field · b25c054c
      Holger Brunn authored
      Current behavior before PR: if you create a new record within a one2many
      field and the model's form has a clickable status bar defined, clicking
      this status bar will raise an exception because the virtual id
      (one2many_v_XXXX) will be passed to the model's write method
      
      Desired behavior after PR is merged: clicking just changes the cached
      value
      b25c054c
    • Olivier Dony's avatar
      [MERGE] Forward-port 7.0 up to 38905d68 · bf163700
      Olivier Dony authored
      bf163700
    • Olivier Dony's avatar
      [FIX] res.partner: relax condition in 3ab436fb · 38905d68
      Olivier Dony authored
      Users may sometimes need to edit their own partner records directly,
      although indirect access by writing on `res.users` directly works
      fine in most cases.
      38905d68
    • Denis Ledoux's avatar
      [FIX] crm_partner_assign: avoid report view deletion · 7f571f08
      Denis Ledoux authored
      The SQL view `crm_partner_report_assign`
      makes a join on `account_invoice_report`
      
      A column is added to
      `account_invoice_report` in the module
      `sale` (`section_id` is added to the view),
      making the SQL view `account_invoice_report`
      replaced automatically at the install/update
      of the `sale` module, which leads
      to the automatic deletion of the SQL
      view `crm_partner_report_assign`,
      because the SQL view `account_invoice_report` is
      altered.
      
      Therefore, after the install/update of the `sale`
      module, the view `crm_partner_report_assign` was
      deleted, and the "partnership anaylsis" unusable.
      
      This revision makes sure to init the
      `crm.partner.report.assign` report after
      every init of the `account.invoice.report`.
      
      opw-674177
      7f571f08
  10. Apr 10, 2016
Loading