Skip to content
Snippets Groups Projects
  1. Nov 21, 2019
  2. Nov 27, 2019
  3. Nov 26, 2019
  4. Nov 27, 2019
  5. Nov 22, 2019
    • jvm-odoo's avatar
      [FIX] sale_crm: fix crm quotation context · e8d91e4a
      jvm-odoo authored
      
      Reproduce the issue
      
          - Install CRM & sale_crm
          - Create an opportunity
          - Create a quotation from the opportunity
      
          The name of the draft is the opportunity's name instead of "New"
      
          - Add a "Storage Box" to the quotation, for instance
          - Confirm the quotation
          - Check the delivery note
      
          The name of the delivery note is the opportunity's name instead of
          WH/OUT/...
      
      Cause
      
          This issue is caused by 4c9c249c. It seems that we pass an extra
          default_name in the context.
      
      This commit removes the extra default_name from the context.
      
      OPW-2122928
      
      closes odoo/odoo#40671
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      e8d91e4a
  6. Nov 25, 2019
    • Nicolas Lempereur's avatar
      [FIX] web_editor: update attribute of edition container · 17b0fb04
      Nicolas Lempereur authored
      
      In most use case, when we edit the website we have a situation such as:
      
      ```
      <div id="wrap" branding-attributes="...">
          <section class="mycontent">hi!</section>
      </div>
      ```
      
      When we modify a part, we replace all child nodes of the branded
      element.
      
      But if we had more complex content such as:
      
      ```
      <div id="wrap">
          <section class="mycontent" branding-attributes="...">ho!</section>
          <t t-call-assets="web.assets_common" t-js="false" t-css="false"/>
      </div>
      ```
      
      we have a t-call inside the div#wrap, so branding is distributed to
      child that could have attribute modified (eg. changing background).
      
      Then if `<section/>` node is saved, the possibly modified attributes
      are lost.
      
      Without the change, the added test fails with:
      
       '<div class="nice">hoi</div>' not found in '...<div>hoi</div>...' :
       saved element attributes are saved excluding branding ones
      
      opw-2122947
      closes #40345
      
      closes odoo/odoo#40828
      
      X-original-commit: 71b20a24
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      17b0fb04
  7. Nov 27, 2019
    • Laurent Smet's avatar
      [FIX] account: Fix reconciliation access rights with Invoicing · 0288adb0
      Laurent Smet authored
      
      As the group_account_invoice doesn't have the access rights to unlink the
      account.partial.reconcile/account.full.reconcile, there was impossible for
      the user to undo a reconciliation.
      
      closes odoo/odoo#40890
      
      X-original-commit: c7d51acf07f7d6c417921b68fcc89cfae9657888
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      0288adb0
    • Nicolas Martinelli's avatar
      [FIX] stock: confusing error message · 76b72ab5
      Nicolas Martinelli authored
      
      In case of a picking type where stock move lines are not shown, clicking
      on 'Put in Pack' without 'Done' quantitites set shows a confusing error
      message.
      
      closes odoo/odoo#40920
      
      Related: odoo/enterprise#6901
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      76b72ab5
    • Nicolas Martinelli's avatar
      [FIX] stock_barcode: put in pack in receipt · d3a7b0e1
      Nicolas Martinelli authored
      - Activate product packing
      - Create a PO for a stockable product, validate
      - In the barcode interface, go to the created picking
      - Set the product quantity
      - Click on 'Put in Pack'
      
      An error is raised: 'All the products currently reserved in the picking
      are already in a pack...'
      
      In the regular interface, the procedure is to create the move lines
      manually, therefore setting a quantity done. However, this is not
      possible in the barcode, and `move_line_nosuggest_ids` is always empty.
      
      We introduce a special use case to bypass this in the case of the
      barcode view.
      
      opw-2127637
      d3a7b0e1
  8. Nov 26, 2019
  9. Nov 25, 2019
    • Nicolas Lempereur's avatar
      [FIX] crm,hr_recruitment: highlight and show others · d4d57d4c
      Nicolas Lempereur authored
      
      When clicking on stat button "Meetings" on a partner, just highlight the
      partner meetings as is done for similar stat button instead of having
      a domain that hides other event (so when creating meeting, we can take
      into account other existing meetings).
      
      A similar change with same reasoning has been done for "Meetings" stat
      button of hr.applicant records.
      
      opw-2131494
      closes #40812
      
      closes odoo/odoo#40891
      
      X-original-commit: 957e7eb7
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      d4d57d4c
  10. Nov 26, 2019
  11. Nov 22, 2019
  12. Nov 25, 2019
  13. Nov 22, 2019
    • fw-bot's avatar
      [FIX] web_unsplash: traceback on saving the product · 2efad751
      fw-bot authored
      
      before this commit:
      when creating a product from frontend and editing the product and
      delete image, it doesn't get any url thus generating the traceback.
      
      after this commit: if url is not defined then return None from
      ir.qweb.field.image field converter
      
      task-2063293
      
      closes odoo/odoo#40626
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      2efad751
    • David Beguin's avatar
      [FIX-IMP] website, website_livechat : disable create visitor and review ACLS · 23f33248
      David Beguin authored
      
      This commit applies the following ACLs rules:
      
      C : nobody can create visitor (except of course the automated flow)
      R : everyone that should access to this model
      U : website_designer can update (even if only few fields are editable),
          mainly useful for language (+ system obviously)
          + livechat users as they are the guys who directly speaks with the visitors
      D : system + website_designer can delete, mainly useful to clean if necessary
      
      Remove the no_create from all visitor views as nobody can create.
      
      This fixes the 'can create' that should not be done by any users (even admin)
      except the system.
      
      Task ID: 2092502
      PR #40439
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      23f33248
  14. Nov 26, 2019
    • Mahendra Barad's avatar
      [FIX] digest: force recompute of all kpis each time-based run · 2966ee59
      Mahendra Barad authored
      
      Before this commit, the computation of kpi for last week, last 30 days and
      previous period comparison was wrong due to cache. Indeed as first value
      was in cache, other values were taken directly from cache itself instead
      of recomputing each value based on start_date and end_date of the computation
      timeframe.
      
      As digest fields are computed fields used a bit off-side, let us manually
      invalidate the cache before computing a kpi so that it correctly computes
      the timeframe values.
      
      Task ID 1883428
      
      closes odoo/odoo#40834
      
      Closes: #40834
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      2966ee59
    • Goffin Simon's avatar
      [FIX] repair: No fiscal position from repair order · 3810f9d9
      Goffin Simon authored
      
      Steps to reproduce the bug:
      - Let's consider a fiscal position FP with automatic detection for customer in your country
      - Let's consider two taxes T1 and T2 where T1 is mapped by T2 in FP
      - Let's consider a product P with T1 as customer taxe
      - Let's consider a customer C in your country with no fiscal position
      - Create a repair order for C
      - Add P as an add line
      
      Bug:
      
      T1 was set as customer taxe for P instead of T2.
      When manually creating an invoice for C with P, FP is automatically
      detected and T2 is set.
      
      With this fix, the automatic detection of FP is applied on repair order.
      
      opw:2120595
      
      closes odoo/odoo#40511
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      3810f9d9
    • Nicolas Martinelli's avatar
      [FIX] sale_timesheet: remove group_by · 3f17dd36
      Nicolas Martinelli authored
      
      - Group the SO list view by Analytic Account
      - Go to a SO
      - Click on the stat button 'Timesheets'
      
      Traceback because the field `analytic_account_id` is not on Timesheets.
      
      opw-2124539
      
      closes odoo/odoo#40518
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      3f17dd36
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: show payments posted at bank reconciliaton · 3aab5890
      Andrea Grazioso (agr-odoo) authored
      
      Accounting > Configuration > Journal > Create
      Under Journal Entry Tab Fill name, type "Bank", short code
      Under Advanced Settings tab set Post at "bank reconciliation"
      Save
      
      Go to Accounting > Customer Invoices > Create
      Add Customer, and SO line with label and price, remove Tax Line.
      Post and Register payment on the created journal.
      
      Go to Accounting > <Created Journal> > Create
      Add reference, label, partner as in soline, amount as in so line.
      Save and Reconcile.
      
      There will be no entry to reconcile with. This is because the domain
      used by the reconciliation widget does not take into account the
      possibility to have a draft move_id, so the line which can be reconciled
      because the line is automatically posted on reconciliation is filtered
      
      Rearranging the domain to take into account this possibility
      
      closes odoo/odoo#40786
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      3aab5890
  15. Nov 21, 2019
    • Pierre Masereel's avatar
      [FIX] point_of_sale: duplicate orders · cddf29e7
      Pierre Masereel authored
      
      When you create a pos order, it is possible that the request timeout or
      the client loose the connection with the server, that will lead to not
      have the server_id of the order sent to the server. So when the client
      will try to synchronize the order again, it'll not send the server_id to
      the server, and the server will create a new order which is a duplicate
      of the one created when the client lost the connection.
      
      To avoid this duplication, we are using the pos_reference to find if
      there is an existing order like in 12.0 to avoid duplication.
      
      closes odoo/odoo#40600
      
      Task-id: 2127656
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      cddf29e7
  16. Nov 25, 2019
  17. Nov 22, 2019
    • Nicolas Lempereur's avatar
      [FIX] point_of_sale: pos order -> count of order · 35c0e813
      Nicolas Lempereur authored
      
      In the pivot view of report.pos.order that is a view mainly over
      pos.order, the "Count" measure is a little rubish giving more or less
      the number of different products in the grouped order lines.
      
      With this changeset, we have the field "Order" as measure that allow us
      to know the number of orders a grouping is corresponding to.
      
      opw-2127275
      closes #40723
      
      closes odoo/odoo#40797
      
      X-original-commit: 431114d4
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      35c0e813
Loading