Skip to content
Snippets Groups Projects
  1. Dec 28, 2021
  2. Dec 27, 2021
    • qsm-odoo's avatar
      [FIX] website: do not lose the shadow configuration on option hover · e2a1c683
      qsm-odoo authored
      
      Hovering the shadow mode option reset the entire shadow instead of just
      previewing the mode change.
      
      Related to opw-2701512
      
      closes odoo/odoo#81038
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      e2a1c683
    • Nasreddin Boulif (bon)'s avatar
      [FIX] website: allow to remove shadow on all cards · 2eb70a47
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
        - Install `website_hr_recruiment` module
        - Go to `your_website.com/jobs`
        - Activate Edit mode and add a "3 Columns" block
        - Select one of the columns and set the shadow to `None`
      
      Issue:
      
        Shadow is not removed, and by default the "outset" mode is selected.
      
      Cause:
      
        When we check the state of the shadow with `css('box-shadow')`, it
        will always be set because a custom css 'box-shadow' is set by the
        module website_hr_recruitment on card element, and therefore the value
        will always be either 'inset' or 'outset'.
      
      Solution:
      
        If widget value is set to '', replace `box-shadow` style to 'none'
        (only if needed) so it will override the style from css file.
      
      opw-2701512
      
      Part-of: odoo/odoo#81038
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      2eb70a47
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] sale_timesheet: Use invisible=1 on the non_allow_billable field · de969a63
      Hubert Van de Walle (huvw) authored
      
      Steps to follow
      
       -  Go to project
       -  Select a project task with timesheet
       -  Edit the view with studio
       -  Edit the timesheet list view
       -  Enable 'Show Invisible Elements'
       -  Select 'Non-Billable'
       -  Uncheck 'Invisible'
       -> An exception is thrown
      
      Cause of the issue
      
        attrs.column_invisible was used with invisible
      
      Solution
      
        remove attrs.column_invisible
      
      opw-2706370
      
      closes odoo/odoo#81751
      
      Signed-off-by: default avatarHubert Van De Walle <huvw@odoo.com>
      de969a63
    • Josse Colpaert's avatar
      [FIX] l10n_es_edi_sii: partners without vat should work as well · 2b164b8e
      Josse Colpaert authored
      
      Before, the system required a vat number on every partner, but that
      is not required.  We need to send it as some other kind of ID however.
      
      To clarify, a partner without vat is not for the simplified case only.
      
      closes odoo/odoo#81906
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      2b164b8e
    • Sébastien Theys's avatar
      [FIX] mail, im_livechat, *: restore usage of livechat user name · c4b50b18
      Sébastien Theys authored
      
      * = website_livechat
      
      Prevents from leaking unnecessary information to livechat clients.
      
      opw-2453956
      
      closes odoo/odoo#68946
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      c4b50b18
    • Nasreddin Boulif (bon)'s avatar
      [FIX] sale,website_sale: Display extra prices with taxes included · d3eac801
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce the issue:
      
        - Install eCommerce and Inventory module
        - Go to Settings
        - Ensure `Product Prices` is set to 'Tax included'
        - Ensure `Variant Grid Entry` is activated
        - Create a new Product as storable
        - Set `Sales Price` to $1.0
        - Set `Customer Taxes` to 10.00 %
        - Under `Variants` tab, set 'Sales Variant Selection' to 'Order Grid Entry'
        - Under `Variants` tab add an Attribute with 2 values
        - Set "Price Extra" to $2.0 to one of the variants
        - Go to the Shop and select the product
      
      Issue:
      
        The extra price badge does not include the taxes
        ($2.0 instead of $2.2), however the final price does.
      
      Cause:
      
        The price_extra field from ptav (used in the badge) does not include
        the taxes.
        However, when calculating the final price, we do first the sum of all
        prices (including the extra prices) and then apply the taxes.
      
      Solution:
      
        In the template, for each 'variants', we call `_get_combination_info`
        to get the variant.price_extra with taxes included/excluded
        depending the `Product Prices` setting.
      
      opw-2669871
      
      closes odoo/odoo#81858
      
      X-original-commit: 83c927f3
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      Signed-off-by: default avatarNasreddin Boulif (bon) <bon@odoo.com>
      d3eac801
  3. Dec 26, 2021
  4. Dec 24, 2021
    • Josse Colpaert's avatar
      [FIX] l10n_es_edi_sii: do not change the success · 853ff30b
      Josse Colpaert authored
      
      Before, the 'success' key was removed from the results
      of the invoice processing and as such the invoice
      was never put as successfully sent, but you sent it
      again and again.
      
      closes odoo/odoo#81902
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      853ff30b
    • Josse Colpaert's avatar
      [FIX] l10n_es_edi_sii: certificate problems with newer libraries · f908171f
      Josse Colpaert authored
      In urllib3 1.25, an _is_key_file_encrypted method was added
      where urllib3 checks if the keyfile is encrypted or not, but
      urllib3 uses filenames, while we want to use the contents of cert.
      So, in our case, this gave a traceback because it could not open
      the file.
      
      The final simple solution for now is to keep keyfile empty as
      we store our info in certfile anyways already.
      
      Part-of: odoo/odoo#81902
      f908171f
    • Bruno-brsy's avatar
      [FIX] account: Validate invoice with archived bank account · 8b9ff034
      Bruno-brsy authored
      
      It's possible to confirm an invoice with an archived bank account of
      the recipient. But it's not making any sense, since the bank account
      is archived.
      
      It's why we need to raise an error if the user want to confirm an
      invoice with an archived bank account.
      
      opw-2704605
      
      closes odoo/odoo#81287
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      8b9ff034
  5. Dec 23, 2021
    • Florian Damhaut's avatar
      [FIX] hr_fleet: no duplicate contract renewal activity reminder · 3610069e
      Florian Damhaut authored
      
      Step to reproduce:
      - Have a fleet contract that need renewal
      
      Current Behaviour:
      - A new activity is created everytime the scheduler is called
      
      Behaviour after PR:
      - A new activity is only created if there is no current renewal activity present when the scheduler is called
      
      opw-2713537
      
      closes odoo/odoo#81671
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      3610069e
    • Merlin (megu)'s avatar
      [FIX] point_of_sale: session's cash journal entries correctly computed · 0e723c6c
      Merlin (megu) authored
      
      Journal entries related to a POS session without cash are wrong
      
      Steps to reproduce:
      1. Install the Point of Sale and Accounting apps
      2. Go to Point of Sale -> Configuration -> Point of Sale and create a new one
      3. Remove the payment method 'Cash' for this POS and save
      4. Open a session in this POS, sell something and then close and post journal entries
      5. Open the Journal Items related to the session
      
      Solution:
      Fix the account_move_line query to match the statement_id with the session's statement_ids
      
      OPW-2684748
      
      closes odoo/odoo#81790
      
      Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
      0e723c6c
    • Nicolas (vin)'s avatar
      [FIX] [base, account_edi_facturx]: Fix pdf export · b3a748a8
      Nicolas (vin) authored
      
      There is an issue when exporting pdf using edi documents created before
      the PDF/A commit. With the subtype now included, the system would try
      to use the subtype given by the ir.attachment which would not be formated
      as expected by the pdf file format.
      
      The attachment may get neutered by the ORM, so we may have to force
      the mimetype when embedding it.
      
      This fix in two parts will allow to force a subtype when adding an
      attachment into a pdf, as well as parse the subtype of ir.attachment
      to give them the right format.
      
      xxx/xxx should become /xxx#2Fxxx
      
      opw-2714040
      
      closes odoo/odoo#81709
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      b3a748a8
    • Stéphane Bidoul's avatar
      [IMP] account: avoid join when filtering on journal · 2741f245
      Stéphane Bidoul authored
      
      account.move.line has a journal_id field that is related on move_id.journal_id.
      By searching on journal_id we avoid a useless join,
      offering more room for database query optimizations.
      
      closes odoo/odoo#81797
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      2741f245
    • Stéphane Bidoul's avatar
      [IMP] account: search on parent_state instead of move_id.state · e67fe3d1
      Stéphane Bidoul authored
      
      By searching on account.move.line parent_state instead
      of move_id.state, we avoid a join in many circumstances
      and allow the database to benefit on an index on
      company_id+parent_state to optimize several
      queries, such as the default filter on the Journal Items
      menu which shows posted items.
      
      closes odoo/odoo#81793
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      e67fe3d1
  6. Dec 22, 2021
  7. Dec 21, 2021
    • Arnold Moyaux's avatar
      [FIX] sale_mrp: quantity invoiced in cogs is different than qty delivered · 1a56d664
      Arnold Moyaux authored
      
      When a kit is exploded to `stock.move` the quantity is rounded half-up
      for every move. But during the invoice. The quantity to invoice on
      kit is rounded up so it could result in differences between the
      inventory valuation and the cost of the product
      
      closes odoo/odoo#81588
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      1a56d664
    • nni-odoo's avatar
      [FIX] sale_mrp: unit price calculation BoM in different UoM · d7c2f59d
      nni-odoo authored
      Fix for task 2620026.
      
      _get_bom_component_qty function is only referred to once in the whole odoo app,
      which is on addons/sale_mrp/models/account_move.py#22.
      
      The result returned from this function is used as a multiplier to quantity
      to convert into the expected UoM. However, the quantity being referred to on
      _stock_account_get_anglo_saxon_price_unit (qty_invoiced, qty_to_invoice), are
      already converted into the SO Line's product's default UoM. In this function,
      it however tries to convert 1 from SO Line's UoM to BoM's UOM.
      
      With this, if Product UoM=x, SO Line UoM=y, BOM UoM=x, in the function _stock_account_get_anglo_saxon_price_unit,
      the quantities will be multiplied by the same factor twice, resulting to the incorrect computation of price_unit to follow.
      
      Part-of: odoo/odoo#81588
      d7c2f59d
    • oco-odoo's avatar
      [FIX] account: don't mistake a tax with a sum of tax repartition factors == 0 for a 0% tax · 9d24e3cf
      oco-odoo authored
      
      Consider this example:
      
      - Create a 42% tax, price-included, with two tax repartition lines doing +100 -100
      - Create an invoice of 100€ using this tax, and look at the move lines generated
      
      ==> Only a base line of 100 and a receivable/payable line of 100 have been created; no tax line.
      
      This is wrong, as we'd expect to see:
      
      - 100 in payable/receivable
      - 100 for the base line
      - 42 for the +100 tax repartition line
      - -42 for the -100 tax repartition line
      
      The two tax lines are missing because the compute_all considers the tax as a 0% one, because of the +100 -100 stuff.
      
      OPW 2716083
      
      closes odoo/odoo#81733
      
      X-original-commit: 24d32f3d
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      9d24e3cf
    • qsm-odoo's avatar
      [FIX] web_editor: consider all remaining DOM changes before save · 50833296
      qsm-odoo authored
      When clicking on save, the saved HTML should be what the user currently
      sees. Before this commit, there might be cases where clicking on save
      actually triggers a DOM update which occurs too late for the change to
      be considered for the save. In 15.0, this manifests for example with
      the blog cover saving*: if the color is being changed with the
      colorpicker and that the user does not close the colorpicker before
      saving, the color change is not considered because the previewMode=false
      update of the colorpicker is not received. With this commit, we ensure
      that DOM updates which occur because of the click on the save button
      are considered before saving.
      
      * That bug is however due to two other issues which are being fixed with
        the PR at [1].
      
      [1]: https://github.com/odoo/odoo/pull/79028
      
      
      
      closes odoo/odoo#81732
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      50833296
    • Benjamin Vray's avatar
      [FIX] website: fix the position of the ripple effect · 95728886
      Benjamin Vray authored
      
      Before this commit, the ripple effect did not work when a button was not
      in the same location/size when clicked compared to its position/size
      when the page was loaded. (e.g. after scrolling the page)
      
      task-2686370
      
      closes odoo/odoo#80611
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      95728886
    • nurefexc's avatar
      [FIX] web: missing context during resequence · 75bbec4f
      nurefexc authored
      
      Problem 1: The context was not passed when calling the resequence function.
      Problem 2: Also, the subsequent read operation did not pass the full
      context, but only the context of the user, not the context of the action.
      A test has been added for the basic model to check that the context is properly
      given after a resequence.
      
      closes odoo/odoo#81477
      
      X-original-commit: 9b665ba8
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      Signed-off-by: default avatarLuca Vitali <luvi@odoo.com>
      75bbec4f
  8. Dec 20, 2021
  9. Nov 29, 2021
  10. Sep 20, 2021
  11. Nov 19, 2021
  12. Oct 02, 2021
  13. Jan 19, 2021
  14. Aug 26, 2021
  15. Jul 16, 2021
  16. Apr 08, 2021
  17. Apr 20, 2021
Loading