Skip to content
Snippets Groups Projects
  1. Feb 06, 2020
  2. 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
  3. Feb 06, 2020
  4. Jan 29, 2020
  5. Feb 06, 2020
  6. 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
  7. 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
  8. 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
  9. Jan 28, 2020
  10. Feb 04, 2020
  11. Feb 03, 2020
  12. Feb 04, 2020
  13. 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
  14. Feb 04, 2020
Loading