Skip to content
Snippets Groups Projects
  1. Nov 19, 2021
    • Wolfgang Taferner's avatar
      [FIX] l10n_at: supplement and fix tags + remove empty tax_ids · 5fb12e09
      Wolfgang Taferner authored
      
      Cash flow tags were supplemented and useless and empty tax_ids removed.
      Additionally account 7990 had a wrongly tag which was corrected.
      
      closes odoo/odoo#80083
      
      X-original-commit: 9de58fc6
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      5fb12e09
    • Tariq Ahmed Khan's avatar
      [CLA] signature for partho222 · 9561b995
      Tariq Ahmed Khan authored
      
      closes odoo/odoo#80070
      
      X-original-commit: a0c938c9
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      9561b995
    • Eleftherios Kritsotakis's avatar
      [FIX] point_of_sale: consider the decimalSeparator for startingValue in NumberPopup · 5bedf8b0
      Eleftherios Kritsotakis authored
      
      For German language and for the langauges that use the same decimal separator
      (use of comma "," to separate decimal digits and use of point "." to indicate
      thousands, millions etc.) the tips pop up in payment screen was displaying an
      erroneous initial value: ex. '0.84' was displayed instead of '0,84'. This was
      causing a miscalculation of the intented tipping amount. Thus, the tipping
      amount had to be inserted manually in every occasion.
      
      Solved it by taking into consideration the decimalSeparator in the NumberPopup.
      
      task-2695104
      opw-2677249
      
      closes odoo/odoo#80036
      
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      5bedf8b0
    • Audric Onockx (auon)'s avatar
      [FIX] sale_timesheet : fixed Credit Notes for Vendor Bills not taken into... · 8f95f6e0
      Audric Onockx (auon) authored
      [FIX] sale_timesheet : fixed Credit Notes for Vendor Bills not taken into account in project overview profitability
      
      Reproduce :
      
      - Install modules Purchase, Accounting, Project, Sales Timesheet
      - In Accounting settings, activate option Analytic Account
      - Create a Project and link it with an Analytic Account
      - Create a PO then Vendor Bill with this Analytic Account
      - Check the Overview for the Project associated with that Analytic Account
      - The amount of the bill will show in the "Other Costs" field of the Profitability section
      - Go back and add a Credit Note for the vendor bill
      
      Issue :
      
      - The amount of the PO still shows in the "Other Costs" section, where it is expected to be balanced (zeroed) by the Credit Note.
      
      Solution :
      
      - Don't take into account the Vendor Bills for whioch a Credit Note exists.
      
      opw-2527655
      
      closes odoo/odoo#79925
      
      X-original-commit: c584742a
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      8f95f6e0
    • Nasreddin Boulif (bon)'s avatar
      [FIX] website_sale: check combination before add to cart · 4723512b
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce the issue:
      
      - Install "eCommerce" module
      - Create 2 attributes with 'Variants Creation Mode' is Never and
        one of them should have at least 2 values.
      - Create a product and add the two attributes as variants and
        one of them should have at least one value
      - Go to configure variant and select the first attribute and
        exclude one or more values from the second variant
      - Go to the website and change the variant to a value from the one
        you excluded and add to the cart directly (you should be fast).
      
      Issue:
      
        Product with a not possible combination is added to cart.
      
      Cause:
      
        Not checking if the combination is possible before adding to cart.
      
      Solution:
      
        When adding product to cart, if element with class
        ".js_add_cart_variants" is present and have children,
        trigger _getCombinationInfo to retrieve last combination info,
        then add it only if the combination is possible.
      
      opw-2569109
      
      closes odoo/odoo#80025
      
      X-original-commit: 81d99313
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      4723512b
    • Laurent Smet's avatar
      [FIX] account: Fix Receive bank account on register payment wizard · 44255441
      Laurent Smet authored
      
      - Create a partner with 2 bank accounts: BNK1 and BNK2
      
      Wrong flow with vendor bill:
      - Create an vendor bill => BNK1 is set by default
      - Change BNK1 to BNK2
      - Register a payment
      => BNK1 is proposed by default instead of BNK2
      
      Wrong flow with customer invoice:
      - Set BNK3 on your company
      - Create a customer invoice
      - Register a payment
      => BNK1 is suggested instead of BNK3
      
      closes odoo/odoo#79737
      
      Issue: 2683197
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      44255441
    • jbw's avatar
      [FIX] account: fix sale entry tax audit · b36342db
      jbw authored
      
      Before this fix, lines of 'entry' type moves on sale journals would have had their
      tax audit string sign reversed.
      
      closes odoo/odoo#80069
      
      Task: 2687215
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      b36342db
    • jbw's avatar
      [FIX] account: fix misc reverse tags · 668fb6a7
      jbw authored
      Before this fix, all moves of type “entry“ were considered as misc operations in regard to repartition tags and the tax report. And only moves of type “out_refund” and “in_refund” were considered refunds.
      Now reverse entries with sale/purchase taxes get their tags set accordingly to repartition lines.
      
      Account                                    D      C      Tax   Tax Grids
      700000 Ventes en Belgique (marchandises)   0      1000   21%   -03
      451000 T.V.A. à payer                      0      210          -54
      400000 Clients                             1210   0
      
      Was reversed to:
      Account                                    D      C      Tax   Tax Grids
      700000 Ventes en Belgique (marchandises)   1000   0      21%   -03
      451000 T.V.A. à payer                      210    0            -54
      400000 Clients                             0      1210
      
      Is now reversed to:
      Account                                    D      C      Tax   Tax Grids
      700000 Ventes en Belgique (marchandises)   1000   0      21%   +49
      451000 T.V.A. à payer                      210    0            +64
      400000 Clients                             0      1210
      
      Task: 2687215
      Part-of: odoo/odoo#80069
      668fb6a7
    • jbw's avatar
      Revert "Cherry pick of 673a66f5b81b36b2eef21153e2471f8d52bbf147 failed" · 0d3247da
      jbw authored
      This reverts commit 161eb51f7dcdd0c6ba548b816d63dc0ebd0e6675.
      
      FWD commit was made with wrong message and 2 commits squashed in one.
      Changes are reapplied in 2 next commits.
      
      Part-of: odoo/odoo#80069
      0d3247da
  2. Nov 18, 2021
    • Adrien Widart's avatar
      [FIX] pos_resturant: distinguish all order lines · 171e42e3
      Adrien Widart authored
      In some cases, it is not possible to print the order changes
      
      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. Open table T1
      5. Select a Food product and add a note
      6. Submit the order to the kitchen
      7. Select again the same product without any note
      
      Error: The order button isn't green, it is not possible to sent the
      second order line to the kitchen
      
      The issue comes from the logic used in `computeChanges`:
      https://github.com/odoo/odoo/blob/75fb0aa6e9c314b61b30d49b5c463fa126dfc835/addons/pos_restaurant/static/src/js/multiprint.js#L215-L222
      
      
      `old_res` contains the products already sent to the kitchen
      As a result, since the line from step 5 and the one from step 7 have the
      same product, we consider that the new line (step 7) was already
      present. Then, when comparing the quantities, both lines have their
      quantity equal to 1, so we consider there isn't any information that
      should be sent to the kitchen
      
      OPW-2557518
      
      closes odoo/odoo#80054
      
      X-original-commit: fae78670
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      171e42e3
    • jbw's avatar
      Cherry pick of 673a66f5b81b36b2eef21153e2471f8d52bbf147 failed · 4e7d8138
      jbw authored
      
      stdout:
      
      stderr:
      17:35:39.225044 git.c:344               trace: built-in: git cherry-pick 673a66f5b81b36b2eef21153e2471f8d52bbf147
      error: could not apply 673a66f5b81... [FIX] account: remove unused variables
      hint: after resolving the conflicts, mark the corrected paths
      hint: with 'git add <paths>' or 'git rm <paths>'
      hint: and commit the result with 'git commit'
      ----------
      status:
      
      closes odoo/odoo#79971
      
      Related: odoo/enterprise#22324
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      4e7d8138
    • Kevin Baptiste's avatar
      [FIX] hr_attendance: use correct company in Kiosk mode · 2cc56150
      Kevin Baptiste authored
      
      A wrong company was used in the Kiosk mode, preventing users to check in
      / out.
      
      closes odoo/odoo#80013
      
      Taskid: 2691031
      X-original-commit: ed3003c9
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      2cc56150
    • Adrien Widart's avatar
      [FIX] stock: transfer the package level to backorder · 4fd5cd6f
      Adrien Widart authored
      The packages reservations are not correctly done in case of a backorder
      
      To reproduce the issue:
      (Use demo data)
      1. In Settings, enable:
          - Delivery Packages
          - Multi-Step Routes
      2. Edit the warehouse:
          - Outgoing Shipments: 2 steps
      3. In Operations Types > Delivery Order, enable:
          - Show Detailed Operations
          - Move Entire Packages
      4. Create a Pick P:
          - 1 x [DESK0004] Desk
          - 1 x Large Cabinet
      5. Put each product in a separate pack
      6. Validate P
      7. Create a Delivery Order (Planned Transfer):
          - 1 x [DESK0004] Desk
          - 1 x Large Cabinet
      8. Mark as TODO, Check Availability
      9. In Detailed Operations, mark one of the packs as Done
      10. Validate the DO, Create a backorder
      
      Error: The not-yet-done pack is still on the delivery order and its
      status is "Reserved". This line shouldn't be present anymore. Moreover,
      the backorder has a line for this pack, its state is "Draft" (instead of
      "Reserved") and the state of the BO is Ready.
      
      When creating the backorder, the packages levels of the not-yet-done
      moves are transferred to the new picking (i.e., the backorder) However,
      these moves does not have a package level defined (due to
      9d758fa2). Therefore, when checking the
      packs:
      https://github.com/odoo/odoo/blob/e7450bee8f018a5334d9628235824f2fc6f32cec/addons/stock/models/stock_picking.py#L822-L832
      
      
      `package_level_ids` is empty, so a new `stock.package_level` is created
      (instead of using the one of the initial delivery order). And
      `move_lines_to_pack` is empty too, so the new `stock.package_level`
      won't have any move lines and its state will be "Draft"
      
      We should rather transfer the package levels of the moves' lines.
      
      OPW-2659176
      closes #77509
      
      closes odoo/odoo#79999
      
      X-original-commit: 68e96ef4
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      Co-authored-by: default avatarAdrien Widart <awt@odoo.com>
      Co-authored-by: default avatarFlorent de Labarre <florent.mirieu@gmail.com>
      4fd5cd6f
    • Habib (ayh)'s avatar
      [IMP] account_edi,account_edi_extended,l10n_es_edi_sii,l10n_it_edi_sdicoop:... · 9dab66ee
      Habib (ayh) authored
      [IMP] account_edi,account_edi_extended,l10n_es_edi_sii,l10n_it_edi_sdicoop: improve the ability to debug EDI xml
      
      When using EDI, documents often fail to be submitted to the relevant API. This provides the ability to generate and download the XML
      
      Task-2669041
      
      closes odoo/odoo#79160
      
      Related: odoo/enterprise#21970
      Signed-off-by: default avatarLaurent Smet <las@openerp.com>
      9dab66ee
    • roen-odoo's avatar
      [FIX] mrp : BoM report · d113cb1e
      roen-odoo authored
      
      Current behavior:
      When creating a BOM with quantity different than 1 (here 12) with operation duration 1 minute and work center capacity 23
      The BoM Structure & Cost report only changes the time for the operation when the quantity is > 276
      However, when planning a MO the expected duration changes to 2 minutes when the quantity is > 23
      
      Expected behavior:
      Expected duration should be the same in the MO and BoM report
      
      Steps to reproduce:
      - BOM with quantity different than 1 (here 12)
      - operation duration 1 minute
      - work center capacity 23
      - go in BoM report
      
      closes odoo/odoo#79241
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      d113cb1e
    • baa's avatar
      [IMP] account: auto-load invoices modules for KSA · 661a0cc2
      baa authored
      
      closes odoo/odoo#79829
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      661a0cc2
    • baa's avatar
      [ADD] l10n_sa_invoice: adding new mandatory fields for KSA e-invoicing · 44a2a45f
      baa authored
      Part-of: odoo/odoo#79829
      44a2a45f
    • baa's avatar
      [ADD] l10n_gcc_invoice: arabic/english report for GCC countries · 4482d8a7
      baa authored
      Most GCC countries are required by law to have invoice reports in both arabic in english
      
      Part-of: odoo/odoo#79829
      4482d8a7
  3. Nov 17, 2021
    • Younn Olivier's avatar
      [FIX] web_editor: fix logo poor quality · 8355c106
      Younn Olivier authored
      
      This commit fixes and improves the suggested width that we compute for
      images optimizations.
      Before, images displayed outside .container elements were resized to
      their container size. As a result logos were resized to 2.5rem (40px).
      
      Now, it handles these scenarios :
      - The image is in the navbar, it is a logo
      - The image is in a container/container-small
      - The image is in a container-fluid
      - The image is outside a container
      
      Values are read from the css instead of being hardcoded.
      
      Note: another issue remains with our resizing method. Drawing on a
      canvas is not performant enough when there are large differences between
      the width and the resize width. A solution could be to use
      createImageBitmap for the resize, but it is not supported by enough
      browsers.
      In the meantime, imageSmoothing was enabled on the context.
      
      Note 2: this also fixes rounding issues when computing the optimized
      width which may break the UI update as comparing the integer and
      floating value returned false.
      
      task-2506205
      
      closes odoo/odoo#72872
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      8355c106
    • Florent de Labarre's avatar
      [FIX] sale: dont't show section/note in report · 42920592
      Florent de Labarre authored
      
      - Create sale order with section and note
      - Go to Sale Analysis
      --> Issue : you see count of section and note
      
      closes odoo/odoo#75545
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      42920592
    • tranngocson1996's avatar
      [IMP] account_payment: add hook method · 15cbb7c0
      tranngocson1996 authored
      
      I create a method `_prepare_payment_display_name` for inherit.
      When you want to set a new name for payment, you can extend this method.
      
      Exp:
      I create a new partner type is `employee` in payment for payment with
      employee, but with your old code i can't add the key `outbound-employee`
      or `inbound-employee`. So, the system will give an error message.
      
      I think if you add this hook method, it will be good for customizers.
      
      closes odoo/odoo#79804
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      15cbb7c0
    • Prakash Prajapati's avatar
      [FIX] product: fix the pricelist report traceback · a1ee7217
      Prakash Prajapati authored
      
      Currently, if we print the pricelist report after refresh,
      the traceback will occur. It has been fixed.
      
      closes odoo/odoo#73225
      
      Task-id: 2584806
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      a1ee7217
    • Rémy Baranx (bar)'s avatar
      [FIX] microsoft_calendar: do not call Outlook API during sync · 78a4968d
      Rémy Baranx (bar) authored
      
      When we are syncing Outlook events with Odoo events, there is no need
      to call back the Outlook API to patch/delete some events.
      
      closes odoo/odoo#79766
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      78a4968d
    • alt-odoo's avatar
      [FIX] l10n_fr_fec: correct translation of journal name in FEC export · 80bfcde4
      alt-odoo authored
      
      Before this commit, when exporting the FEC report, we were using the account journal
      name in the initial language set. As it could be confusing for the French administration
      to see names in a foreign language, we should use the user language instead to allow the
      export of FEC report in French even if another default language was used.
      
      closes odoo/odoo#79901
      
      X-original-commit: 8ba4b760
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      Signed-off-by: default avatarAlex Thuyls (alt) <alt@odoo.com>
      80bfcde4
  4. Nov 16, 2021
    • Florian Damhaut's avatar
      [FIX] microsoft_calendar : Only sync-write on existing element · 067d911b
      Florian Damhaut authored
      
      In case of m event being removed by a change in recurrence further change is then only applied on the existing events and not all past events
      
      closes odoo/odoo#79872
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      067d911b
    • Adrien Widart's avatar
      [FIX] mrp: configure in and out moves of draft MO · a023d7fd
      Adrien Widart authored
      
      In multi steps configurations, the additional products of a MO could be
      missing in the associated picking
      
      To reproduce the issue:
      (Use demo data)
      1. In Settings, enable "Multi-Step Routes"
      2. Update the current warehouse:
          - Manufacture: 2 steps
      3. Create a MO for product "Table Top"
      4. Edit the MO:
          - Add 1 x Screw in the components
      5. Confirm the MO
      6. Open the generated Picking
      
      Error: The operations only contains one line for "Wood Panel". There
      should be a second line for the "Screw"
      
      When adding the new component, a new stock move is created but the
      latter does not have any `group_id` defined. This is the reason why the
      generated picking does not include this stock move.
      
      OPW-2671995
      
      closes odoo/odoo#79828
      
      X-original-commit: 57b3364f
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      a023d7fd
    • Aurélien (avd)'s avatar
      [FIX] stock: speedup inventory lines creation · 13c5fc46
      Aurélien (avd) authored
      
      Browse product.product outside of for loop in
      inventory_line.create to cache the results and
      speedup the product.product_tmpl_id.uom_id.id line.
      
      Replace search_count in for loop in
      inventory_line._check_no_duplicate_line by a read_group call.
      
      Add a small test for _check_no_duplicate_line just to be
      safe.
      
      opw-2655357
      
      closes odoo/odoo#79587
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      13c5fc46
    • Florian Damhaut's avatar
      [FIX] microsoft_calendar : revert name change · d7d7809f
      Florian Damhaut authored
      
      Revert signature name change from #78161
      
      closes odoo/odoo#79821
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      d7d7809f
    • Florian Damhaut's avatar
      [FIX] microsoft_calendar : make test time-insensitive · 0d10b39f
      Florian Damhaut authored
      
      Make microsoft calendar test case time insensitive
      
      closes odoo/odoo#79769
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      0d10b39f
    • Nicolas Martinelli's avatar
      [FIX] base: GC files progressively · 2ba274c1
      Nicolas Martinelli authored
      
      - Get a database with millions of files in the checklist (do not ask how
        this happened)
      - Set a cron timeout low enough so that `autovacuum_job` times out
      
      The file GC will endlessly timeout without being able to delete any
      file.
      
      This is due to how the `_file_gc` method is built: we first build the
      whole whitelist, then we perform the deletion. With millions of
      checklist files, the loop which builds the `whitelist` takes ages. It
      ultimately leads to a timeout of the scheduled action, and therefore no
      file is deleted.
      
      To avoid this, we delete the files progressively. The checklist is split
      in chunks, and we check which files must be GC'd in a given checklist
      chunk. This way the files are removed even in case of timeout, meaning
      that there will be less files to check during the next run. Eventually
      the GC won't timeout anymore.
      
      closes odoo/odoo#79807
      
      X-original-commit: dbae5247
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      2ba274c1
    • dht-odoo's avatar
      [FIX] mass_mailing: fix the tour bubble for mailing creation · 82a61cfb
      dht-odoo authored
      
      We introduced a tour for email marketing (see commit[1]) which has one
      important step, that asks user to create a new Mailing. However, the
      selector for this step is generic, which makes the tour bubble appear
      on every other installed app's create button (on the kanban view).
      
      This commit fixes the issue by providing the extra_trigger as
      `oe_kanban_mass_mailing` for that particular step, and
      thus targeting the button only for the kanban view of the mailing.
      
      Note: Email Marketing and SMS Marketing shares the same kanban view, so
      they both will have this tour.
      
      commit[1] - c15f9efe
      
      TaskID-2583760
      
      closes odoo/odoo#72966
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      82a61cfb
    • Khalid El Haji's avatar
      [FIX] hr_presence: Import missing cron in manifest file · c91c9f74
      Khalid El Haji authored
      
      This PR addresses issue #68761. The issue describes a bug
      that results in a field not being automatically updated.
      
      closes odoo/odoo#68766
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      c91c9f74
    • Adrien Widart's avatar
      [FIX] stock: enable all "Show Detailed Operations" only once · 5b165dee
      Adrien Widart authored
      
      When changing any option in Settings, the option "Show Detailed
      Operations" of almost all operations types will be enabled
      
      To reproduce the issue:
      (Use demo data)
      1. Open the Operation Type "YourCompany: Delivery Orders" and ensure
      "Show Detailed Operations" is unchecked
      2. In Settings, enable an option (e.g., "Default Access Rights")
      3. Go back to the form of "YourCompany: Delivery Orders"
      
      Error: "Show Detailed Operations" is checked for no reason
      
      With this commit, "Show Detailed Operations" of almost all operations
      types will be directly enabled only if one of the three options (Lots &
      Serial Numbers, Storage Locations or Packages) is enabled and none of
      these options was enabled before.
      
      OPW-2514993
      
      closes odoo/odoo#79778
      
      X-original-commit: 6f7e9a93
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      5b165dee
    • David (dafr)'s avatar
      [FIX] stock_account: fix multi-company stock.quant value · 0a770961
      David (dafr) authored
      
      On Fifo costing method, the 'value' field of a stock quant was computed using quantity_svl and value_svl of the product_id.
      However the method 'with_company()' wasn't used for quantity_svl, resulting in an incorrect 'value' field of stock.quant
      
      This commit add the use of 'with_company()' method to get quantity_svl.
      
      OPW-2652211
      
      closes odoo/odoo#79735
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      0a770961
  5. Nov 15, 2021
Loading