Skip to content
Snippets Groups Projects
  1. Nov 14, 2019
    • Christophe Monniez's avatar
      [FIX] requirements: avoid double requirements for pillow · cce9660c
      Christophe Monniez authored
      
      When installing requirements on MS Windows platform with Python 3.8, the
      Pillow requirement is defined two times. This leads to a pip crash.
      
      With this commit, the Pillow requirement is only defined once.
      
      Fixes #40080
      
      closes odoo/odoo#40239
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      cce9660c
    • Martin Trigaux's avatar
      [FIX] account: do not use optional library · ef245e14
      Martin Trigaux authored
      
      stdnum is not a mandatory dependency
      It is often present as required to install the base_vat module but
      having a system with account without the dependency should be
      possible.
      
      As the calc_check_digits is pretty small, it is easy to extract
      
      Forward port of 6091be6556d to 13.0
      
      closes odoo/odoo#40253
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      ef245e14
    • Martin Trigaux's avatar
      [FIX] web: avoid domains with empty list · 299a6dbc
      Martin Trigaux authored
      
      After loading the calendar view, making a search with an inactive
      domain in the list will trigger a search "partner_ids not in []" which
      returns zero result.
      The code intention was to initialise the avoidValues, not to send an
      empty list.
      
      To reproduce the issue:
      1. create an event shared between user 1 and 2
      2. as user 2, open the Calendar menu
      -> shared event is present
      3. click on "week" tab (forcing a refresh)
      -> shared event no longer appears
      
      Fixes odoo/odoo#39839
      
      closes odoo/odoo#40106
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      299a6dbc
  2. Nov 08, 2019
  3. Nov 14, 2019
  4. Nov 13, 2019
    • Nans Lefebvre's avatar
      [FIX] account: send invoices with the right name · d1b66ca8
      Nans Lefebvre authored
      
      The mail_notification_paynow template expects a model_description
      parameter or defaults to the model _description, "Journal Entries".
      We add, similar to 4a3fd02a on sale.order, a type_name field to
      get the correct type name in an extensible way.
      
      Similar to 8c91b193, 65b6375c.
      
      opw 2120545
      
      closes odoo/odoo#40216
      
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      d1b66ca8
    • William Henrotin's avatar
      [FIX] stock: split move line in extra move · 792639f3
      William Henrotin authored
      
      _action_done() creates extra stock move when quantity_done is superior
      to initial demand. This extra move should be, after confirmation, either
      merge into the original stock_move, either stay extra but the move lines
      still linked to the first one should be shared accordingly to the quantity
      done. The fix 561b3461 adapted the code
      for MRP to split the move lines but neither those cases are applied in
      MRP because the extra move has no picking_id field.
      
      condition :
        ```if merge_into_self and extra_move.picking_id:```
      will therefore be false as well as
        ```if not merge_into_self:```
      
      To be sure the two extra move management cases are complementary, this
      Commit keeps make sure the conditions are mutualy exclusive.
      
      closes odoo/odoo#40228
      
      Opw: 2087864
      X-original-commit: 4e8ac38a6d67bcd5040af0b580bfa43da7841548
      Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
      792639f3
    • Goffin Simon's avatar
      [FIX] stock: Returning canceled moves · 3cbbbb36
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider two storable products P1 and P2 from the same vendor V
      - P1 and P2 have the routes 'Buy' and 'Make to order'
      - Create a SO for 1 P1 and 1 P2 and confirm it
      - A delivery order DO has been created
      - A PO has been created for V, confirm it
      - Process the shipment, receive 1 P1 and 0 P2 with no backorder
      - Process DO with no backorder
      - Return DO by clicking on 'Return' button
      
      Bug:
      
      1 P1 and 1 P2 were suggested to be returned but the movement for P2 had been canceled.
      
      Closes #39547
      opw:2116582
      
      closes odoo/odoo#40211
      
      X-original-commit: bb94b6591fb148a4c1b94f9c28d2c10e44e12283
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      3cbbbb36
  5. Nov 14, 2019
    • jvm-odoo's avatar
      [FIX] website_sale: removing invalid product from the cart · ab9290e3
      jvm-odoo authored
      
      Reproduce the issue:
      - Install eCommerce app
      - Publish a product to your website
      - Add the product in your cart
      - Unpublish/make unsellable/archive the product
      
      The product is still in the cart and the checkout process can be done.
      
      Cause: There is no check for invalid products before displaying the cart
      
      This commit remove the invalid products while loading the cart.
      
      OPW-2092541
      
      closes odoo/odoo#40168
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      ab9290e3
  6. Nov 13, 2019
  7. Oct 30, 2019
  8. Nov 12, 2019
    • Goffin Simon's avatar
      [FIX] stock_dropshipping: Creating a quotation without purchase permission · de47582b
      Goffin Simon authored
      
      Fine tuning of this commit: f93fcaff
      
      Steps to reproduce the bug:
      
      - Open runbot v11
      - Restrict Demo's access to Sales Manager for sales and employee for Employee
      - Try to create a new quotation
      
      Bug:
      - You got Odoo server Error
      Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
      - Inventory/User
      - Accounting & Finance/Billing
      - Purchases/User
      - Purchases/Manager
      - Other Extra Rights/Portal
      (Document model: purchase.order.line) - (Operation: read, User: 5)
      
      opw:2120692
      
      closes odoo/odoo#40149
      
      X-original-commit: 1b14af28
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      de47582b
  9. Nov 13, 2019
    • fw-bot's avatar
      [FIX] base: call context_get with the right user · b39c8da2
      fw-bot authored
      
      self.env.user returns the current user but browsed with the superuser:
      - self.env.user == current user
      - self.env.user.env.user == administrator
      
      get_context uses self.env.user to retrieve the context of the user.
      Before this patch, the name of the filters was translated in the
      language of the administrator instead of the current user.
      
      Closes odoo/odoo#40086
      
      closes odoo/odoo#40142
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      b39c8da2
  10. Nov 12, 2019
    • Gert Pellin's avatar
      [FIX] pos_restaurant: sync empty orders · 3add8dd2
      Gert Pellin authored
      
      * In a pos-session with table management create a new order with products
      and go back to the floor-plan.
      * The order is sinced to the back-end.
      * Open the table again, remove all products but keep the order.
      * Go back to floorplan to trigger syncing again.
      * Open the table again.
      
      behaviour before fix:
      * The empty order is not loaded in the frontend anymore.
      * To close the session the order has to be manually removed in the backend.
      
      After fix:
      * The order is still visible in the frontend and can be removed or finalysed as expected.
      
      closes odoo/odoo#40103
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      3add8dd2
  11. Nov 08, 2019
  12. Nov 12, 2019
  13. Nov 08, 2019
  14. Nov 12, 2019
    • jvm-odoo's avatar
      [FIX] sale: fix sales team goal not updated in CRM pipelines · 578dacc3
      jvm-odoo authored
      
      Reproduce this issue
      
          - Install CRM & Sales
          - Create 2 sales team in CRM settings
          - Create some invoices and register payments for the 2 teams
          - Go in CRM > Sales > Team pipelines
      
          The invoicing amount is still 0 for both teams.
      
      Cause
      
          - The `_compute_invoiced` method in `CrmTeam` models use a SQL
          query to retrieve the invoices lines but it returns an empty
          recordset because the dates are not right ordered.
      
          - The line balance are negatives values, doing a SUM() will always
            returns 0
      
      This commit re-order the dates and invert the sign of line.balance.
      
      OPW-2119819
      
      closes odoo/odoo#40093
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      578dacc3
  15. Oct 23, 2019
Loading