Skip to content
Snippets Groups Projects
  1. Nov 15, 2021
    • Florian Damhaut's avatar
      [FIX] hr_holidays : Only request both approval for employee request · 3f15355c
      Florian Damhaut authored
      
      Current behaviour :
      When creating a leave type with both approval required for allocation and then setting allocation to 'Set by time off officer', we still require 2 approvals.
      
      Behaviour after PR :
      Leave type with allocation set to 'Set by time off officer' will only require one approval as expected.
      
      opw-2671540
      
      closes odoo/odoo#79718
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      3f15355c
    • Adrien Widart's avatar
      [FIX] mrp: set component's lot as readonly in MO · 66a1e96f
      Adrien Widart authored
      
      Updating the producing quantity may wrongly change the consumed quantity
      of tracked products
      
      To reproduce the issue:
      1. Create two storable products P1, P2:
          - P2 is tracked by lots
      2. Update P2's quantity >= 10
      3. Create a BoM:
          - Product: P1
          - Components: 1 x P2
      4. Create and confirm a MO for 10 x P1
      5. Check availability
      6. Edit the MO and set the consumed quantity of P2 to 10
      7. Edit the MO and set the producing quantity to 8
      
      Error: The consumed quantity of P2 becomes 1
      
      When saving the MO, it also writes the `lot_ids` on `move_raw_ids` while
      it shouldn't. As a result, it triggers method `_set_lot_ids` for no
      reason and lead to an undesirable behavior.
      
      OPW-2667412
      
      closes odoo/odoo#79565
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      66a1e96f
  2. Nov 14, 2021
  3. Nov 12, 2021
  4. Nov 10, 2021
    • alt-odoo's avatar
      [FIX] google_calendar: avoid deadlock at token refresh · d43b9923
      alt-odoo authored
      
      We should rollback manually first to avoid concurrent access errors/deadlocks when
      trying to refresh google calendar token.
      
      opw-2687393
      
      closes odoo/odoo#79635
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      d43b9923
    • Josse Colpaert's avatar
      [FIX] l10n_it_stock_ddt: separate xpaths might need the invisible fields for inheritance purposes · 9976ca94
      Josse Colpaert authored
      
      Before, when installing stock_picking_batch after l10n_it_stock_ddt,
      it would give a traceback because the header was replaced in a view
      in stock_picking_batch and that removed the invisible field that was
      used in an attrs in another place.
      
      So we add the field again in that other place.
      
      closes odoo/odoo#79638
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      9976ca94
    • Florian Damhaut's avatar
      [FIX] microsoft_calendar : Apply improvement on 14.0 · 2add3ebf
      Florian Damhaut authored
      
      The goal of this commit is to apply most of the improvement of microsoft calendar on 14.0 to fix different reported issues. The different improvement can be seen in #68700.
      
      One of the major improvement not ported is the change of name for days in the recurrence (2 letters => 3 letters).
      
      This fix is based on opw-2658427 but attempt ot fix issues separated in all the ticked link to this one (see opw-2658427 chatter).
      
      On top of that, the different tests case that were implemented in master were also ported with this fix and more manual test were effectuated.
      
      In addition, we fixed the following issues :
      Traceback related to attendee without email (that are now not imported).
      Timeout for big calendars.
      Hardcoded time value.
      
      opw-2658427
      
      closes odoo/odoo#78161
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      2add3ebf
    • Sébastien Theys's avatar
    • Guillaume (guva)'s avatar
      [FIX] account: Fix taxes computation in multi-currency · 11f5fcfb
      Guillaume (guva) authored
      
      Steps to reproduce:
      
      - On a company with multi currency
      - Set the company currency rate to 1, and the foreign currency
        to 0.273748
      - Create a vendor bill
      - Set first the foreign currency, then select a product with a
        tax to 21% and a price unit of 155.32
      - Go to 'Journal Items', the 'tax paid' line debit is computed to 119.15
      - Reselect the foreign currency on form.
      - Now the 'tax paid' line debit is computed to 119.16
      
      The total is also impacted as the tax changed.
      
      Explanation:
      
      Before this commit, the taxes was both computed in foreign currency and company currency. However, when setting a new currency or changing the date, the taxes wasn't recomputed but the new conversion rate was applied.
      This commit is fixing the issue by applying the same logic as in 14.0: the taxes are always computed only the foreign currency, then the conversion rate is applied to get the accounting balance.
      
      opw-2569668
      
      closes odoo/odoo#79489
      
      X-original-commit: 8d978824
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      Signed-off-by: default avatarLaurent Smet <las@openerp.com>
      11f5fcfb
  5. Nov 09, 2021
    • Anh Thao Pham (pta)'s avatar
      [FIX] point_of_sale: fix price alignment in POS receipt · c2e9fc50
      Anh Thao Pham (pta) authored
      
      - Configure a Receipt Printer for POS
      - Create a Product with a long name (> 20 chars) and a big price
      (i.e. PRODUCT BCDEFGHMWPGHHH - price: 9999.00)
      - Create a Product with a short name (i.e. PRODUCT Z - price: 12.00)
      - Make a POS sale with long product first and short as second
      On the receipt, the line containing long product is too small to
      contain also its price.
      So the price will be on another line justified on the right.
      But the following product will be stacked on the same line, making
      the price on the receipt unreadable.
      
      Someting like this:
      -------------------
      PRODUCT BCDEFGHMWPGHHH
      PRODUCT Z     12.009999.00
      
      The issue also appears for taxes lines and on the report of all sales
      of current POS session.
      
      This is due to a css style (float: right) applied to the price part.
      
      opw-2639120
      
      closes odoo/odoo#79521
      
      Signed-off-by: default avatarAnh Thao PHAM <pta@odoo.com>
      c2e9fc50
    • roen-odoo's avatar
      [FIX] mrp : bom report duration for dozens · e6644fa2
      roen-odoo authored
      
      Current behavior :
      When a bom is created with uom set as dozens the report
      operations time is not correct. For exemple if the operation
      time is 10 minutes. The operation time for a dozen should be
      120, but at the moment it's 10 minutes
      
      Steps to reproduce:
      Have a product in units.
      Create a bill of materials in dozens.
      Have a operation where the workstation that has a capacity of 1.
      Look at the Bill of material cost and structure even though it uses a dozen it shows
      the operation time for one unit.
      
      opw-2669899
      
      closes odoo/odoo#79080
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      e6644fa2
    • Florian Damhaut's avatar
      [FIX] delivery : translate 'Free Shipping' · 22cfea78
      Florian Damhaut authored
      
      Problem : Free Shipping is not translated in delivery
      New Behaviour : Free shipping will now be translated
      
      opw-2679727
      
      closes odoo/odoo#79543
      
      X-original-commit: 511bede0
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarDamhaut Florian (flda) <flda@odoo.com>
      22cfea78
    • Nasreddin Boulif (bon)'s avatar
      [FIX] website: Display correctly top buttons of the editor sidebar · 120c88a6
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce :
      
        - Install website module
        - Activate (and translate website) French language
        - Go to translated terms and fetch for "Discard" in website module
        - Replace the translated value by "Ne pas sauvegarder"
        - Go to Website -> Configuration -> Websites
        - Select main website and change language to french then save
        - Go to Website and edit homepage
        - Add any block
      
      Issues :
      
        On top of editor sidebar, buttons are not displayed correctly.
      
      Solutions :
      
        Add css class `d-flex` to the div arround the buttons.
      
      opw-2683602
      
      closes odoo/odoo#79515
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      120c88a6
    • Stefan Rijnhart's avatar
      [14.0][FIX] Keep original kwargs intact for reuse on retry · 7475bcbe
      Stefan Rijnhart authored
      
      closes odoo/odoo#79136
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      Co-authored-by: default avatarRaphael Collet <rco@odoo.com>
      7475bcbe
  6. Nov 08, 2021
  7. Nov 07, 2021
  8. Nov 05, 2021
    • Adrien Widart's avatar
      [FIX] pos_restaurant: submit order lines only once · 92b6b0bf
      Adrien Widart authored
      This commit reverts [1]. Otherwise, the same order lines may be
      submitted several times.
      
      To reproduce the issue:
      (Use demo data)
      1. Point of Sale > Configuration > Order Printers, edit Kitchen Printer:
          - Printed Product Categories: Food
      2. Edit the POS Bar:
          - Enable Order Printer
      3. Start a session of POS Bar
      4. Select table T1
      5. Add a Bacon Burger and submit the order
      6. Open another table
      7. Reopen table T1
      8. Add a Cheese Burger and submit the order
      
      Error: The ticket sent to the kitchen has the bacon burger and the
      cheese burger. Only the last one should be sent to the kitchen
      
      When selecting a table, a RPC call gets all information about the
      current order. In the server response, the orderlines are sent as new
      records:
      https://github.com/odoo/odoo/blob/629a4f34ea66f10a981f4b25d5d69281f62853b6/addons/pos_restaurant/models/pos_order.py#L88
      
      
      Therefore, the orderlines will have a new ID. However, since [1], the
      lines identifiers are used to know which lines have changed. This
      explains why the bacon burger is sent twice.
      
      [1] 8159e5ac
      
      OPW-2678701
      
      closes odoo/odoo#79418
      
      X-original-commit: 75fb0aa6
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      92b6b0bf
    • Florian Damhaut's avatar
      [FIX] product : Improved error message for variant attribute value deletion · db1e52f0
      Florian Damhaut authored
      
      What are the steps to reproduce your issue?
      
      - Create a product with more than one attribute.
      - Let say color White, black and purple
      - Create a 'draft' invoice for the purple product variant
      - Remove the 'purple' attribute value from the product
      - It will archive that variant (because the account.move linked to it)
      - Try to delete the attribute value from menu Sales > Cofinfiguration > Attribute
      What is the current behavior that you observe?
      
      - technical error message
      What would be your expected behavior in this case?
      
      - non-technical message for end-users
      Solution :
      
      - Change both message to tell user he cannot delete the value if the value has been referenced somewhere else.
      opw-2623583
      
      closes odoo/odoo#77631
      
      Signed-off-by: default avatarDamhaut Florian (flda) <flda@odoo.com>
      db1e52f0
    • Tom De Caluwé's avatar
      [FIX] web_editor, website: fix removal of last item inside active slides · 3acfbc23
      Tom De Caluwé authored
      
      A bug currently makes the carousel snippet collapse/disappear when its
      active contents are removed. This happens because after the removal,
      the carousel no longer has an active item.
      
      The solution that was chosen was to not allow the removal of slides
      unless using the dedicated option which is there for that. This solution
      has to advantage to also allow users to create empty slides (using a
      background image for example) by simply removing the columns inside.
      
      task-2506165
      
      closes odoo/odoo#79340
      
      X-original-commit: 3c194faa
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      3acfbc23
    • Aurélien (avd)'s avatar
      [FIX] mrp: restrict _post_process_scheduler search domain · 11c7b92f
      Aurélien (avd) authored
      
      stock.orderpoint._post_process_scheduler confirms
      productions after procurements have been run.
      
      This was introduced to avoid conflict between
      procurements, conflicts that can happen e.g. in
      the purchase_mrp module.
      
      However, currently action_confirm might
      also be called on done or cancelled productions.
      That can happen if there are already been lots
      of procurements for the same product/orderpoint,
      i.e. MO with the same values have been created multiple times.
      
      To avoid this, add ('state', '=', 'draft' in the search_domain.
      
      opw-2666960
      
      closes odoo/odoo#79403
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      11c7b92f
    • Daniel Reis's avatar
      [FIX] purchase: display POs maching same commercial partner · d3002116
      Daniel Reis authored
      
      The "Auto-complete" bills field does not show all POs for the Vendor that are waiting for invoices.
      
      To reproduce the issue:
      
          - Create PO1 Vendor = "Supplier"
          - Create PO2 Vendor = "Supplier, John Doe"
          - Create Invoice for PO2
          - In the PO2 Invoice, "Auto-Complete" field try to select PO1, but it is not shown.
      
      The "Auto-complete" bills field should show all POs for the Vendor that are waiting for invoices.
      The problem is that the field's domain filters is using the partner_id
      field when it should be using teh commercial_partner_id.
      
      opw-2684409
      
      closes odoo/odoo#79359
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      d3002116
    • Jérémy Hennecart's avatar
      [FIX] crm: display only events linked to the actual opportunity · 8dfba47a
      Jérémy Hennecart authored
      
      When an user clicks on the Meeting tab to open the calendar,
      it should onyl display the events linked to the opportunity.
      
      task-2665863
      
      closes odoo/odoo#78679
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      8dfba47a
    • Pierrot (prro)'s avatar
      [FIX] sale: update downpayment SOL after refund · 92f2ca2d
      Pierrot (prro) authored
      
      How to reproduce the problem:
      - Install the Sales and Invoicing apps
      - Create a simple SO with a product
      - Create Invoice -> Down Payment (percentage) 30% -> confirm
      - On the SO -> Create Invoice -> with Deduct down Payment -> confirm
      - On that invoice -> Add Credit Note -> Reverse -> confirm
      On the SO, the Down payment is not counted as invoiced, even tough it
      was already paid and not refunded. If the user wants to create a new
      invoice, the system will create one with the full price (not taking the
      already invoiced Down Payment into account).
      
      Cause of the problem : when computing the quantity to invoice for
      the SO, a condition was avoiding preventing the down payment invoice
      line to be taken into account in a way that it was just ignored.
      I don't really understand the reason for this condition, as
      it specifically ignores the down payments, while it should not be
      ignored.
      When creating the draft for the refund invoice, the down payment's SOL
      is correctly updated as `line.untaxed_amount_to_invoice == 0` is true.
      But when confirming the invoice, the values changed and the condition
      is thus not met anymore.
      
      opw-2491225
      
      closes odoo/odoo#78999
      
      Signed-off-by: default avatarRoose Pierre-Rodéric ( prro) <prro@odoo.com>
      92f2ca2d
    • Adrien Widart's avatar
      [IMP] stock: display the SM's date on picking form · 845f5bdd
      Adrien Widart authored
      
      Adding the date of a SM on the picking form allows a user to reschedule
      the delivery of a specific product instead of rescheduling the delivery
      of all products.
      
      Linked to OPW-2651828
      
      closes odoo/odoo#79316
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      845f5bdd
  9. Nov 04, 2021
    • remi-filament's avatar
      [I18N] l10n_fr_fec: translate in French · ec5ac114
      remi-filament authored
      
      Fixes odoo/odoo#78932
      Closes odoo/odoo#79274
      
      closes odoo/odoo#79360
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      ec5ac114
    • remi-filament's avatar
      [I18N] l10n_fr_pos_cert: translate the module · 73b076df
      remi-filament authored
      Fixes odoo/odoo#78932
      Closes odoo/odoo#79273
      
      Part-of: odoo/odoo#79360
      73b076df
    • roen-odoo's avatar
      [FIX] sale,sale_project : Avoid sending multiple email on upsell · e73e2019
      roen-odoo authored
      
      Expected behaviour:
      When you create a sale order with a project associated. When the sale order change state
      from non upsell to upsell sales person should receive one email.
      
      Current behaviour:
      The sales person receive an email for every entry in the timesheet after the sale order goes
      from non upsell to upsell.
      
      Step to reproduce:
      Create a sale order setup to create a project and task and the invoicing policy is ordered quantities.
      
      Add a timesheet entry which takes it past the ordered quantity.
      
      Create the invoice for the order.
      
      The state of the line and order goes to upsell, and the upsell email is sent to the salesperson.
      
      Add another line in the timesheet and the email is sent again to the salesperson
      
      opw-2581428
      
      closes odoo/odoo#79287
      
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      e73e2019
    • Adrien Widart's avatar
      [FIX] stock: display 'Order Once' if qty > 0 · 81b26776
      Adrien Widart authored
      
      If the multiple quantity of a RR is less than 1.0, the buttons 'Order
      Once' and 'Automate Orders' may remain invisible
      
      (Need sale_management,purchase_stock)
      1. Create a product P
          - Type: Storable
          - Add a vendor
          - Routes: Buy
          - Reordering rule:
              - Trigger: Manual
              - Min Quantity: 0
              - Max Quantity: 0
              - Multiple Quantity: 0.01
      2. Create and confirm a sale order with 0.50 x P
      3. Inventory > Operations > Replenishment
      
      Error: P is present, its qty to order is 0.50, however the button 'Order
      Once' is not displayed
      
      OPW-2612472
      
      closes odoo/odoo#79266
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      81b26776
Loading