Skip to content
Snippets Groups Projects
  1. Feb 04, 2020
    • Sebastien LANGE's avatar
      [CLA] Update Subteno IT CLA · 633d1f3e
      Sebastien LANGE authored
      
      closes odoo/odoo#44548
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      633d1f3e
    • Sebastien LANGE's avatar
      [FIX] stock: Correct forecast quantity with view location · d7da1b73
      Sebastien LANGE authored
      Usecase to reproduce:
      - Set the lot_stock_id as a view location
      - Create a PO and validate it
      
      -> The forecast quantity on stat button is correct but it's missing in
      the forecast quantity report.
      
      It happens because the condition for stock_move is based on valuation
      strategy. However it's not correct since it's not True that a product
      is in the stock if it's valuated (as subcontracting, owner, ...)
      
      In order to fix it uses the warehouse in order to define if a move is in
      or out (the same way than the _get_domain_locations on product).
      d7da1b73
  2. Feb 06, 2020
  3. Jan 29, 2020
  4. Feb 06, 2020
  5. Feb 05, 2020
    • Swapnesh Shah's avatar
      [FIX] purchase_requisition: No drag and drop when grouped by state · b22935ca
      Swapnesh Shah authored
      
      Before this commit, it was possible to change the state of the Purchase Agreement when Grouped by `state` on Kanban view which is not Ideal Behavior.
      
      Now we block drag and drop when grouping by State.
      
      closes odoo/odoo#44674
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      b22935ca
    • Goffin Simon's avatar
      [FIX] account, sale: Default payment term when creating an invoice · c258b8a0
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider a partner P without property_payment_term_id
      - Create a SO for P, confirm it and create an invoice I
      - In debug mode, on the SO click on the smart button 'invoice'
      - On I, click on the 'Set Default' in the debug menu
      - Set a payment term PT as default value (ir.default) for all users
      - From this view, create a new invoice
      
      Bug:
      
      The default payment term PT was not set on the new invoice
      
      opw:2184367
      
      closes odoo/odoo#44648
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      c258b8a0
    • Pierre Masereel's avatar
      [FIX] pos_restaurant: improve performance retrieving table orders · 6c21ea36
      Pierre Masereel authored
      
      Since synchronization of tables was added in POS restaurant,
      requests are frequently made to the server to display the
      number of open orders on each table.
      
      The implementation of the counting caused O(num_tables) queries,
      and those queries were slow on large databases because there
      was no index for the `table_id` column.
      
      This patch fixes both problems, and the counting now uses
      3 fast queries regardless of the number of tables.
      
      On a sample database with 2k tables and 50k POS orders,
      calls to `get_tables_order_count` went down
      from 1 s and 100+ SQL queries to 10 ms and 4 queries.
      
      About 2 orders of magnitude faster, with server load drastically
      reduced as well.
      
      closes odoo/odoo#44660
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      6c21ea36
    • jerome hanke (jhk)'s avatar
      [FIX] product: removal of hardcoded value in product template · d7f2beac
      jerome hanke (jhk) authored
      
      Steps to reproduce:
      - install sales
      - activate units of measures and variants
      - set imperial units under general settings (pounds for weight and ft³ for volume)
      - create at least 2 variants on a product and access them via the smart button
      from product.template
      
      Previous behavior:
      the volume remains in m³, it is hardcoded in the template
      
      Current behavior:
      the volume is printed just like the weight (generic uom notation)
      
      opw-2186965
      
      closes odoo/odoo#44649
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      d7f2beac
    • Jorge Pinna Puissant's avatar
      [FIX] point_of_sale: long product name print receipt in safari · 263131f4
      Jorge Pinna Puissant authored
      
      Before this commit, when printing in safari a receipt that contains
      products with long names, parts of the name were overlapped. This occurs
      because, in safari, the library that transforms the html into text
      mismanages the spaces.
      This is a well known problem, see : niklasvh/html2canvas#1654
      
      Now, the name is printed correctly in safari, same behaviour than the
      others browsers.
      
      opw-2169656
      
      closes odoo/odoo#44658
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      263131f4
    • Nicolas Martinelli's avatar
      [FIX] stock: validate inventory · 95da1ac1
      Nicolas Martinelli authored
      
      Highlight the 'Validate Inventory' button only if there is at least one
      inventory line.
      
      opw-2187225
      
      closes odoo/odoo#44628
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      95da1ac1
  6. Feb 03, 2020
    • Simon Lejeune's avatar
      [FIX] stock_account: anglo saxon and corrections · 3831649b
      Simon Lejeune authored
      
      Don't ignore correction layers when computing the anglo saxon price
      unit. We use the `stock_valuation_layer_id` field on the layer to point
      the correction layer to the corrected layer. When computing the average
      price of the delivered things, ignore correction entry but take them
      into account when choosing a corrected entry.
      
      opw-2179900
      
      closes odoo/odoo#44498
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      3831649b
  7. Feb 05, 2020
    • Simon Lejeune's avatar
      [FIX] stock_landed_costs: flaky tests · 8a6c5cb9
      Simon Lejeune authored
      
      We chose the vendors by searching random res.partner but sometimes
      partners of another company are returned, making the _check_company
      mechanism raise an error.
      
      closes odoo/odoo#44367
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      8a6c5cb9
    • Simon Lejeune's avatar
      [FIX] stock_landed_costs: reconciliation with vendor bill · d8c34c63
      Simon Lejeune authored
      in anglo saxon accounting
      - receipt products through an rfq
      - when creating the vendor bill of the rfq, directly add a landed costs
        product
      - post the vendor bill then create the landed cost, validate the landed
        cost
      - the aml of the LC is not reconciled with the aml of the vendor bill
        for the lc product because the "You are trying to reconcile some
        entries that are already reconciled." error.
      
      We fix this by filtering out the already reconciled aml.
      Not that the flow is behaving as expected if the landed cost is created
      in another vendor bill, such as the tests were doing. We thus add
      another test.
      
      opw-2184988
      d8c34c63
    • Nicolas Seinlet's avatar
      [FIX] base_automation: avoid access right issues filter domains · 980d1b14
      Nicolas Seinlet authored
      
      If some filter domains use M2O to models current user cannot access,
      using sudo() permit to filter even when user cannot access linked
      models.
      
      for the accuracy of the fix, add a unit test which reproduce the exact
      reported bug.
      
      closes odoo/odoo#43582
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      980d1b14
    • Thibault Francois's avatar
      [FIX] base: don't swith back with su=False in _name_search · 20d2659e
      Thibault Francois authored
          When you have su == True in your env and you call _name_search
          the _name_search was switching back to su = False
          when you call with_user with the same user or with None
      
          To reproduce the issue, take a model where a user has
          no access.control.list allowing to read the model
          call name_search with sudo.
      20d2659e
    • Raphael Collet's avatar
    • wan's avatar
      [FIX] account: change CoA even if one already installed · 8928dfe7
      wan authored
      
      Because the tax closing entry is created (empty) at the creation of the
      CoA, it is not possible anymore to change it later, even if the user
      didn't create any journal entry.
      By checking that there are no account.move.line instead of account.move,
      and also there are no entries with a name different from '/' (to ensure
      that the sequences are untouched) we can change the CoA if needed.
      
      closes odoo/odoo#44647
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      8928dfe7
  8. Jan 28, 2020
  9. Feb 04, 2020
  10. Feb 03, 2020
  11. Feb 04, 2020
  12. Feb 03, 2020
    • Katherine Zaoral's avatar
      [ADD] l10n_latam_invoice_document: multiple fixes · d644d0d2
      Katherine Zaoral authored
      
      * Inherit the new _prepare_default_reversal method to be able to set the document type and number in the reverse move from the values we have in the account.move.reversal wizard.
      * Document type not set in credit note wizard: Set the move_id field in defaults and add it to the view. with this change the document types are properly computed.
      * Make document number required in refund wizard.
      * Document type field can be copy: This way when using the refund wizard for the 3rd option will create the new one with the same document type of the original one.
      
      closes odoo/odoo#43514
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      d644d0d2
    • Katherine Zaoral's avatar
      [REF] account: new method _prepare_default_reversal in order to be able · 85c4e538
      Katherine Zaoral authored
      to change the values to use when creating the oreverse move via inherits
      of the new method.
      85c4e538
  13. Feb 04, 2020
    • Pierre Masereel's avatar
      [FIX] point_of_sale: flush order timeout · 9452c3f8
      Pierre Masereel authored
      
      When an order is synchronized to the server, there is a timeout of 7.5
      seconds that is left before considering that the order has not been
      synchronized, and should be re-syncronised.
      
      Since syncronization of order in pos_restaurant have been made, there
      are more operations than before that are performed, and the
      synchronization of an order can take more than that.
      
      The validation of a picking can also take a lot of time, almost when
      products are kits and compose of multiple products.
      
      The problem, is that if it takes more than 7.5, the same order will be
      pushed again to the server, even if the previous sychro still running,
      which will lead to wait the previous request that has the lok on the
      same records, all this blocked request can lead to block all workers of
      the server because all requests are trying to modify same objects.
      
      So we've increased the timout for flushed orders.
      
      closes odoo/odoo#44600
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      9452c3f8
    • Laurent Smet's avatar
      [FIX] account: Set the commercial partner on journal items from payments · 1ba501d1
      Laurent Smet authored
      
      Since you can only reconcile entries from the same partner, you must always use
      the commercial partner when creating some journal items.
      
      closes odoo/odoo#44555
      
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      1ba501d1
    • Josse Colpaert's avatar
      [FIX] account: on CoA install, need to only take the first transfer account · aab5cb4c
      Josse Colpaert authored
      
      With the commit some time ago #d3822883, I removed to take the first,
      but you can have multiple transfer accounts in one company.
      
      The best way is to just do a limit=1
      
      closes odoo/odoo#44592
      
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      aab5cb4c
    • Yannick Tivisse's avatar
      [FIX] mail: Harmonize _mail_find_partner_from_emails returned values · 2fbbbd86
      Yannick Tivisse authored
      
      Purpose
      =======
      
      Before this commit, the method _mail_find_partner_from_emails could
      return a list mixing partner ids and partner recordset, that could
      lead to issue when trying to read the different elements.
      
      With this commit, we ensure that we return a list of records only.
      
      closes odoo/odoo#44588
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      2fbbbd86
    • Swapnesh Shah's avatar
      [FIX] account: Set newly created template · 441dab90
      Swapnesh Shah authored
      
      Before this commit, Creating New Template from "Send Invoice" wizard doesn't update template_id on the Wizard.
      
      In this commit, We write newly created template_id on the wizard.
      
      closes odoo/odoo#44553
      
      X-original-commit: 454e6ed9
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      441dab90
    • helly kapatel's avatar
      [FIX] mail: fix issue when posting a message on a document whose first message... · b1571b4b
      helly kapatel authored
      [FIX] mail: fix issue when posting a message on a document whose first message / parent is not readable
      
      How to reproduce
      ================
      
      Have a portal user commenting a task on the customer portal. He may experience
      a crash if previous message / first message is not available, for example
      if it is internal or not published.
      
      This is due to reference computation used in outgoing emails as it is based
      on parent messageID. Accessing it crashes although it should not as it is
      used only for technical purpose.
      
      Fix
      ===
      
      In this comme we fix that issue by browsing the reference message as sudo
      to access its messageID. A test is added to avoid regressions.
      
      Task ID 2061760
      PR #36845
      
      closes odoo/odoo#43332
      
      X-original-commit: 2b3d9241c982f6fd0bbfb9f475f75b44a96f27d4
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      Co-authored-by: default avatarjpr-odoo <jpr@openerp.com>
      b1571b4b
    • Xavier-Do's avatar
      [IMP] core: rename upgrades-paths to upgrade-path · 1c8e2809
      Xavier-Do authored
      
      Since this option is soon to be used, this rename is a last tweek
      to make it more logical to use since it will point to a single
      upgrade dir most of the time.
      
      closes odoo/odoo#44558
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      1c8e2809
    • Sébastien Theys's avatar
      [FIX] website_sale: prevent issue with test shop_list_view_b2c · 5cdc3300
      Sébastien Theys authored
      
      It very rarely happens that the test is failing due to the following error:
      
      `Tour shop_list_view_b2c failed at step
      .oe_product_cart .oe_currency_value:contains("825.00")`
      
      The value found in that case is 750 instead of 825, which indicates that the b2c
      setting was not correctly activated.
      
      To exclude the RPC themselves from the equation, it is decided here to move the
      setting change directly in the Python.
      
      closes odoo/odoo#44528
      
      X-original-commit: 3edc88911bf24cd57a27933cf3ffb03a42168bc9
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      5cdc3300
  14. Feb 03, 2020
  15. Feb 04, 2020
  16. Feb 02, 2020
Loading