Skip to content
Snippets Groups Projects
  1. Apr 04, 2018
  2. Apr 03, 2018
    • Lucas Perais (lpe)'s avatar
      [FIX] hr_attendance: fix handling of date objects in greetings · 691b1f6f
      Lucas Perais (lpe) authored
      On 'My attendance', do some check-in/out operations
      while on the server side, everything was ok, the display had some issues:
      On Chrome, that worked well whereas in Safari, it did not
      since the Date() implementation only accepts ISO date strings
      
      We take the opportunity of this fix to handle dates with moment.js, which accepts non-ISO formats
      
      OPW 1831555
      
      closes #23962
      691b1f6f
  3. Apr 01, 2018
  4. Mar 30, 2018
    • Benjamin Willig's avatar
      [FIX] project_issue: prevent errors when deleting an analytic account · 965f4320
      Benjamin Willig authored
      With project_issue installed, and when deleting an analytic account, a search
      is done to check if there is linked issues. When the current user has no access on
      the project.issue model, an error is raised. This check should be done as an admin.
      965f4320
    • Lucas Perais (lpe)'s avatar
      [FIX] payment_stripe: partner info is not mandatory · bf2e541c
      Lucas Perais (lpe) authored
      Before this commit, when accessing the payment page with arbitrary amount
      (/website_payment/pay?reference=Testinvoice&amount=150.0&currency_id=6&country_id=)
      A traceback was thrown because the keys concerning the partner were not present in the dictionary
      that prepares the values for the form that we send to Stripe
      
      Considering that those info are not mandatory for stripe (although not very good practice -- the more info the better to verify an identity)
      we ignore them if not present
      
      After this commit, the public route works fine
      
      OPW 1832164
      closes #23948
      bf2e541c
    • Lucas Perais (lpe)'s avatar
      [FIX] sale: invoice count on SO: only take inv on same company · b2299fb4
      Lucas Perais (lpe) authored
      Before this commit, the smart button on the SO was computed
      with only the SO's name field
      In a multicompany setting, it could give up invoices from other companies
      
      After this commit, only the invoices of the same company as the order are accounted for
      
      OPW 1831551
      closes #23925
      b2299fb4
  5. Mar 29, 2018
    • Goffin Simon's avatar
      [FIX] sale: Wrong display of taxes in PRO-FORMA · 2b4bc45e
      Goffin Simon authored
      Steps to reproduce the bug:
      
      -Create a tax of 21% tax included but don't select the "affect base" checkbox.
      -Create another tax of 5.2% (no tax include)
      -Create a sale order with a line that has a unit price of 121 and both taxes.
      Notice that the total amount is: 126.2 (100 base amount + 21 from 21% tax + 5.2 from 5.2 tax)
      -Click on "Print the proforma invoice"
      
      Bug:
      
      The total amount was still 126.2 and base=100, however taxes were wrong, there were 21 for the 21% tax
      and 6.29 instead of 5.2 for the 5.2 tax.
      
      Back-port of this commit: f50a08bc
      
      Forward up to saas-15
      
      opw:1819882
      2b4bc45e
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: digits precision · 15c3cbab
      Nicolas Martinelli authored
      - Set the number of digits of 'Product Unit of Measure' to 1
      - Create a stockable product:
        UOM: Dozens
        Purchase UOM: Units
      - Buy 17 Units, validate the picking
      - Create a landed cost:
        Amount: 100
        Split Method: By Quantity
      - Compute
      
      The Valuation Adjustment line contains contains a line with a quantity
      equal to 1.4, leading to a line of 98.60. It is impossible to validate
      the landed cost because of the inconsistency.
      
      The method `get_valuation_lines` retrieves the data from the
      `stock.move` and copies the following values to the
      `stock.valuation.adjustment.lines`:
      - `product_qty` > `quantity`
      - `weight` > `weight`
      - `volume` > `volume`
      
      Therefore, we must make sure that these fields are using the same digits
      precision. We adapt the precisions accordingly.
      
      opw-1817783
      15c3cbab
    • Goffin Simon's avatar
      [FIX] stock: Inventory Adjustments Deletion · 8a906f80
      Goffin Simon authored
      It's not allowed to delete inventory adjustement linked to validated moves.
      
      opw:1826300
      8a906f80
    • Nicolas Martinelli's avatar
      [FIX] account: reverse pair · 1dbc6556
      Nicolas Martinelli authored
      Commit b6d4cd5d introduced the auto-reconciliation when reversing
      an entry. However, we should make sure to only reconcile non-reconciled
      entries. Such an entry can be generated from an exchange rate entry.
      
      opw-1826024
      1dbc6556
    • Martin Trigaux's avatar
      [FIX] calendar: set color on right partner · a52a6b86
      Martin Trigaux authored
      When doing a sudo on top, the fields are accessed with user 1 but the set is
      also made with user 1.
      meeting.user_id.partner_id.id is correctly computed but
      meeting.partner_color_id is not set for the current user (return 0)
      
      All events were in the same color
      
      Introduced at b669c71a
      
      opw-1829793
      Closes #23923
      a52a6b86
  6. Mar 28, 2018
  7. Mar 27, 2018
    • Goffin Simon's avatar
      [FIX] account: Name of an account.payment · 32421c4d
      Goffin Simon authored
      Steps to reproduce the bug:
      
      - Create a bank statement with a blank name
      - Reconcile any line statement with an invoice
      - Review the payment that was made for this statement
      
      Bug:
      
      The payment had no name.
      
      opw:182754
      32421c4d
    • Goffin Simon's avatar
      [FIX] sale: Description of the product 'Downpayment' not translated · fc659d3f
      Goffin Simon authored
      When you create a down payment invoice from an SO, the product that is used in the line is 'Down Payment'.
      The description of this product, which is visible for the customer, was not translated to the language
      of the customer in the SO and in the invoice. It was translated to the language of the user logged.
      This fix is made to keep the same behavior for the description of an SO line and for the description
      of the invoice line.
      
      opw:1820081
      fc659d3f
    • Nicolas Martinelli's avatar
      [FIX] payment_authorize: raise error if missing ZIP · f289451c
      Nicolas Martinelli authored
      The ZIP code is an optional field. When saving a payment method, this
      generates a traceback since `partner.zip` is `False` while the field
      expects a `string`.
      
      opw-1829829
      f289451c
    • Nicolas Martinelli's avatar
      [FIX] mrp: date expected · e78a08e3
      Nicolas Martinelli authored
      - Create a MO
      - Change the date 'Deadline Start'
      
      The corresponding 'Expected Date' on the stock moves is not updated with
      the new value.
      
      opw-1828631
      e78a08e3
  8. Mar 26, 2018
  9. Mar 25, 2018
  10. Mar 23, 2018
  11. Mar 22, 2018
  12. Mar 21, 2018
Loading