Skip to content
Snippets Groups Projects
  1. Jul 18, 2017
    • Rakesh Sindhav's avatar
      [CLA] Signature for sindhav · f0c9275e
      Rakesh Sindhav authored
      Done at #18000
      f0c9275e
    • Nicolas Martinelli's avatar
      [FIX] hr_expense: mail to manager · 957d57ea
      Nicolas Martinelli authored
      When an employee submits an expense, no mail is sent to the manager.
      This should be the case, since it works this way on holidays.
      
      The trick, however, is that the expense is created as submitted, but the
      followers are only added afterwards. We need to make sure to add the
      followers at creation.
      
      opw-751085
      957d57ea
    • Goffin Simon's avatar
      [FIX] point_of_sale: Creating pos order line with qty=0 · 61304087
      Goffin Simon authored
      Steps to reproduce:
      
      1.Create pos order with two products.
      2.One of the products, must be type="Stockable Product" and quantity=0.
      3.Pay order.
      4.Check order --> extra info --> picking
      
      Bug:
      picking state = Waiting Availability
      
      In 9.0, the picking state is equal to "Done".
      
      Fixes #18089
      opw:751565
      61304087
  2. Jul 17, 2017
  3. Jul 14, 2017
  4. Jul 13, 2017
    • Nicolas Martinelli's avatar
      [FIX] stock_account: negative quant cost · 69fa111e
      Nicolas Martinelli authored
      - Set up a product with 'Real Price' costing method, in real time
        valuation
      - Receive 1000 units at $0.10 each
      - Create a landed cost of $456.70, validate => it creates a quants of
        999 units at cost $0.56 and 1 unit at cost $-2.74.
      - Perform an inventory adjustment, and set the quantity to 0 instead of
        1000, post inventory.
      
      An error arises due to the constrain debit + credit >= 0.
      
      This is caused by the method `_prepare_account_move_line` from
      `stock.move`, which cannot handle negative cost for quants.
      
      opw-752063
      Fixes #17707
      69fa111e
    • Goffin Simon's avatar
      [FIX] mrp: Post inventory button without finished product" · 37ff69d4
      Goffin Simon authored
      This fix 2332df6b  has been done in stable and some customers
      wants to keep the button "Post Inventory" available all the time.
      Now the button is just visible in developper mode.
      
      opw:748347
      37ff69d4
    • Nicolas Martinelli's avatar
      [FIX] crm: expected closing · 3e8ba490
      Nicolas Martinelli authored
      The "exp. closing" dashboard button takes into account the won
      opportunities. It shouldn't.
      
      Backport of 9d2f48dc
      
      opw-751165
      opw-744940
      3e8ba490
    • Nicolas Martinelli's avatar
      [FIX] sales_team, crm: expected closing · b1b83925
      Nicolas Martinelli authored
      On the CRM dashboard, the shortcut 'exp. closing' is the same than the
      'overdue' shortcut. However, the number of opportunities in these
      categories is computed differently (see method
      `retrieve_sales_dashboard`).
      
      We introduce a new filter "Overdue Opportunities" which reflects this
      difference.
      
      Backport of 9d2f48dc
      
      opw-704173
      opw-751165
      b1b83925
  5. Jul 12, 2017
    • Nicolas Martinelli's avatar
      [FIX] mass_mailing: access error when 'Retry' · 68934c6b
      Nicolas Martinelli authored
      A user without 'Administration/Settings' access rights cannot use the
      'Retry' button on a mass-mailing.
      
      This is because only this level of power is allowed to unlink
      `mail.mail` records. However, this button is supposed to be used by
      regular mass mailing users.
      
      opw-744616
      68934c6b
    • Cédric Snauwaert's avatar
    • Christophe Matthieu's avatar
      [FIX] product: Error message when adding an item to a quote · e6e17cc5
      Christophe Matthieu authored
      When a user tries to add a product on an opportunity, the date_order of the
      order is added into the context. This value can be False.
      
      When "_compute_price_rule" is called without "date" arguments
      (some onchange, compute...) the method method use the context date (in this
      case the value is False) or the today date.
      The date value is used in an sql request and raise a value exception.
      
      opw-751700
      e6e17cc5
    • Nicolas Martinelli's avatar
      [FIX] website_form: send email with subject · 058cc22d
      Nicolas Martinelli authored
      - Use the form builder to send an email
      - Customize the snippet to include the subject and the body
      - Send a mail
      
      => The subject is not included in the email
      
      This is because the subject is filtered out and considered as a
      blacklisted field.
      
      It happens because `mail.mail` inherits from `mail.message`. The field
      property `website_form_blacklisted` is set to:
      - `True` for `mail.mail`
      - `False` for `mail.message`
      
      Since we go through all inherited models, the property on `mail.mail` is
      overriden by the property on `mail.message`.
      
      It is actually not necessary to go through all inherited models, since
      in the case of `inherits`, we copy the fields of the inherited model to
      the target model. The check is simplified by only checking the fields of
      the current model.
      
      Based on work of @nla-odoo
      
      opw-748926
      058cc22d
    • Moises Lopez's avatar
      [FIX] doc: use new URI wkhtmltopdf releases · 566968bf
      Moises Lopez authored
      The old release of wkhtmltopdf are no longer published on the download page.
      The developer explicitely asks to use the github link
      
      cf: wkhtmltopdf/wkhtmltopdf#3524
          wkhtmltopdf/wkhtmltopdf#3521
          wkhtmltopdf/wkhtmltopdf#3518
          wkhtmltopdf/wkhtmltopdf#3508
      
      Closes #18146
      566968bf
    • Sylvain LE GAL's avatar
      [FIX] l10n_fr_certification : fix string_to_hash computation · 4001aaf2
      Sylvain LE GAL authored
      - use datas of all lines, and not only the last lines.
      - removed useless 'move_id' field from account.move.line
      
      Was PR #18175. Courtesy of Sylvain Legal
      4001aaf2
    • Christophe Matthieu's avatar
      [FIX] sale: traceback when choosing a product with warning as order.line · a6f2dc07
      Christophe Matthieu authored
      If a user chooses a product that has a blocking error message, the product
      is set to False. This is good, but we do not want the following to happen:
      
      The other onchange triggers are called and "product_uom_change"
      generates an error because there is no product. (In fact it is
      "_compute_price_rule" on "product.pricelist" who raise)
      The onchange update the values of the other fields related to the
      product (eg for the "name" field where the name of the product that
      is canceled by the warning is assigned).
      a6f2dc07
    • Martin Trigaux's avatar
      [FIX] doc: remove nonexistant reference · ce11312d
      Martin Trigaux authored
      business removed at 411f8208
      ce11312d
  6. Jul 11, 2017
  7. Jul 10, 2017
  8. Jul 08, 2017
  9. Jul 07, 2017
    • Olivier Dony's avatar
      [FIX] mail: avoid attaching auto-notifications to foreign parents · e8271ffc
      Olivier Dony authored
      `parent_id` fields are common in many models, and thus default values
      for those fields are sometimes passed in the context.
      
      Because mail.message also has `parent_id` field, it would automatically
      use the default when an automatic message was being posted. While of
      course, the parent_id value comes from a different model.
      This "adoption" by a random "parent message" is unexpected,
      not desired, and it can even cause a very surprising AccessError if the
      parent message is not readable by the user.
      
      Forcing the `parent_id` value during the creation of an automatic message
      avoids this confusion.
      
      One way to trigger the bug was to use the "subtask" stat button to create a
      child subtask for a project task (it relies on the parent task ID
      passed in the context)
      e8271ffc
    • Martin Trigaux's avatar
      [FIX] point_of_sale: use local variable in labmda · 326ff369
      Martin Trigaux authored
      NameError: free variable 'order' referenced before assignment in enclosing scope
      
      opw-751576
      326ff369
Loading