Skip to content
Snippets Groups Projects
  1. Mar 08, 2019
  2. Mar 07, 2019
    • Luis González's avatar
      [I18N] sale: Remove duplicated term from pot · fa1210be
      Luis González authored
      
      Commit 6af6da5c introduced a duplicated term to the file .pot, which
      causes the following error when trying to re-load translations:
      
      ```
      ON CONFLICT DO UPDATE command cannot affect row a second time
      HINT:  Ensure that no rows proposed for insertion within the same
      command have duplicate constrained values.
      ```
      
      This commit removes on eof the duplicates, leaving only the valid one.
      ```
      ```
      
      closes odoo/odoo#31683
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      fa1210be
  3. Mar 08, 2019
  4. Mar 07, 2019
  5. Mar 06, 2019
  6. Mar 05, 2019
  7. Mar 04, 2019
  8. Feb 28, 2019
    • Jorge Pinna Puissant's avatar
      [FIX] website_event_sale: pricelist discount product qty · d92eba3a
      Jorge Pinna Puissant authored
      
      Before this commit, a pricelist discount based on the product qty could
      be created and the user may believe that it will work also for event
      tickets.
      
      Now: when configuring a pricelist discount based on the product qty a
      warning message is show to alert that this kind of discount don't work
      in event tickets.
      
      opw-1940368
      
      closes odoo/odoo#31459
      
      Signed-off-by: default avatar"Lucas Perais (lpe)" <lpe@odoo.com>
      d92eba3a
    • Lucas Perais (lpe)'s avatar
      [FIX] account: reconciliation widget partner domain all reconcile accounts · 645d9dc0
      Lucas Perais (lpe) authored
      
      Have an account move which lines have all the same partner
      Have a bank statement, without a partner
      Enter the reconciliation widget for the bank statement
      All the lines appear
      
      Select one of the lines of the account move for the partner
      
      Before this commit, all other lines disappeared from the proposition
      including the ones for the partner selected
      This cas because when having set a partner on the widget,
      only receivables and payables accounts were searched for
      
      After this commit, all account move lines for the partner are searched for
      
      OPW 1942936
      
      closes odoo/odoo#31488
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      645d9dc0
  9. Mar 08, 2019
    • Moises Lopez's avatar
      [FIX] account: Faster read_group for account_abstract_payment._compute_payment_amount · 72e7976d
      Moises Lopez authored
      
      Go to Menu / Accounting / Vendors / Bills
      Search a partner with too many opened invoices
       - E.g. 713 opened invoices (709 local currency, 4 foreign currency)
      Choose all them
      Press Open Action -> Register Payment
      Wait to open the view.
      
      Before this patch line_profile result
      
      Total time: 1141 s
      Line #   Hits  Time            Per Hit    % Time   Line Contents
      ================================================================
         243   2922   1,139,417,018.0  389944.2     99.9    amount_total = sum([MAP_INVOICE_TYPE_PAYMENT_SIGN[i.type] * i.residual_signed for i in payment_invoices])
      
      After this patch line_profile result
      Total time: 12 s
      Line #   Hits  Time            Per Hit    % Time   Line Contents
      ================================================================
         243  2862   11,733,108.0        4099.6     98.1    invoice_datas = invoices.read_group([('id', 'in', invoices.ids)], ['currency_id', 'type', 'residual_signed'], ['currency_id', 'type'], lazy=False)
      
      It means 95x faster
      
      closes odoo/odoo#31313
      
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      72e7976d
  10. Feb 27, 2019
    • Jorge Pinna Puissant's avatar
      [FIX] event_sale: on change of events product in SO · 4613d0a8
      Jorge Pinna Puissant authored
      Have a product that is an event, with the price of 1500.
      Create a ticket for this product in an event, with the price of 600.
      In a SO, add a line with this ticket.
      
      Before this commit, when you change the product, to another product that
      is also an event, the event, the ticket and the price stayed the ones of
      the first product.
      
      Now, the event, the ticket and the price are updated when the product is
      modified.
      
      opw-1940368
      4613d0a8
Loading