Skip to content
Snippets Groups Projects
  1. Dec 02, 2021
  2. Dec 01, 2021
  3. Nov 30, 2021
  4. Nov 29, 2021
    • Nasreddin Boulif (bon)'s avatar
      [FIX] payment_payulatam: Set right domain on response url · 30f11bc6
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce the issue:
      
      - Install the module eCommerce
      - Activate PayU Latam payment acquire in test mode and
        set it to Website 2
      - Set a domain for each website
      - Go to Website 2
      - Add any product to cart and go to checkout
      - Select PayU Latam as payment acquire and click on pay
      - Select any payment method, finish the payment and click
        on the "Back to the store" button
      
      Issue:
      
        Redirect to the first website (instead of Website 2),
        therefore the user has not the receipt of the payment.
      
      Cause:
      
        The domain of the response url is set to the ir.config_parameter
        'web.base.url'.
      
      Solution:
      
        Use the function `self.get_base_url()` to get the right domain
        (already what is done in other payments acquires).
      
      opw-2652582
      
      closes odoo/odoo#80538
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      30f11bc6
    • Touati Djamel (otd)'s avatar
      [FIX] stock, mrp: fix the manufacturing product moves filter · f4ab29a1
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a storable product > add a BOM
      - Create a MO> add the product > confirm > Mark as done
      - Go to the product form > click on product moves
      - The move linked to the MO is displayed
      - Add the "Manufacturing" filter
      - No move is displayed
      
      Solution:
      Display all "stock.move.line" which are linked to a "stock.move" with a "mrp.production"
      
      Bug2:
      The "Manufacturing" filter should be defined in the MRP module instead of the stock
      otherwise, users who do not have MRP installed will have access to this filter as well
      
      opw-2697254
      
      closes odoo/odoo#80383
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      f4ab29a1
    • Touati Djamel (otd)'s avatar
      [FIX] mrp: fix the qty in the BOM report · dcd3de94
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
       - Create a BOM:
          - Set the quantity of the finished product and component as more than 1
      - Save > Go to BOM Structure & Cost > the quantity in the input is set on 3
      - Print
      
      Problem:
      The report generated shows the qty and cost for production of 1 unit of product, regardless of the BOM quantity set in the input
      
      The "_onClickPrint" function tries to get the quantity of the bom in the context,
      but since the value of "this.given_context.searchQty" is null, the function will use the default value of 1.
      The "searchQty" is only set in the "onchange", so we can manually trigger it when initiating the page so that the "searchQty" is set correctly
      
      opw-2691632
      
      closes odoo/odoo#80435
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      dcd3de94
  5. Nov 28, 2021
  6. Nov 26, 2021
    • svs-odoo's avatar
      [FIX] sale,stock,website_sale: DHL Connector · 6c7700bc
      svs-odoo authored
      
      Renames "DHL", "DHL USA" and "DHL Express" into "DHL Express Connector".
      
      task-2581265
      
      closes odoo/odoo#80471
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      6c7700bc
    • Guillaume (guva)'s avatar
      [FIX] account: tax line in invoice report · 303d3be4
      Guillaume (guva) authored
      
      Steps to reproduce:
      
      - Install Argentinian Accounting
      - Enable multi-currency
      - Create a customer invoice in USD
      - Product X, quantity 10, price 17.82, VAT 21%
      - Save and click on preview
      
      Issue:
      
      On tax line, "VAT 21% on $178.20" is displaid instead of just "VAT 21%"
      
      Cause
      
      This is the result of a rounding issue inherent to python, when passing in Currency.round method, 178.20 became 178.20xxx001.
      
      Solution
      
      Overwritte the _get_rendering_context method in order to be able to use the float_compare method instead of a strict comparison in xml report.
      
      opw-2677160
      
      closes odoo/odoo#79740
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      303d3be4
    • Adrien Widart's avatar
      [FIX] stock: add required fields to SML's kanban view · 248f6596
      Adrien Widart authored
      
      When using a mobile, scanning a product to manage a delivery won't work
      
      To reproduce the error:
      (Need stock_barcode. Use demo data)
      1. In Operations Types, edit "Delivery Orders":
          - Enable "Show Detailed Operations"
      3. Create a planned delivery order DO:
          - 1 x [FURN_1118] Corner Desk Black
      4. Mark a Todo
      5. Switch to a mobile view
      6. Edit DO and scan 601647855640 (i.e., the barcode of FURN_1118)
      7. Save DO
      
      Error: An error is displayed "The operation cannot be completed [...]
      Model: Product Moves (Stock Move Line) (stock.move.line), Field: From
      (location_id)"
      
      The kanban view does not include both `location_id` and
      `location_dest_id` although they are required
      
      OPW-2688915
      
      closes odoo/odoo#80162
      
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      248f6596
    • Nicolas (vin)'s avatar
      [IMP] [base, account_facturx]: Add PDF/A(-3B) support · 60e9632a
      Nicolas (vin) authored
      Improve the factur-x export in two ways: make the exported PDF
      PDF/A-3B compliant, and add the factur-x XMP metadata inside the file.
      
      The added .ICC profile comes from https://www.color.org/srgbprofiles.xalter
      License terms can be found here: https://www.color.org/profiles2.xalter#license
      
      
      
      Task id # 2668919
      
      closes odoo/odoo#78974
      
      Signed-off-by: default avatarLaurent Smet <las@openerp.com>
      60e9632a
  7. Nov 25, 2021
  8. Nov 24, 2021
    • qsm-odoo's avatar
      [FIX] website: properly mark carousel test tour as a test tour · 732addec
      qsm-odoo authored
      Commit [1] and its forward-ports introduced a test tour (properly added
      in assets_tests) but was not declared as a test one. Meaning that if you
      were in debug=tests, you were able to follow a strange tour not meant
      for user testing.
      
      [1]: https://github.com/odoo/odoo/commit/3c194faa930b0d3a537ca8b893b2c0442b5464e7
      
      
      
      closes odoo/odoo#80354
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      732addec
    • Xavier BOL (xbo)'s avatar
      [FIX] sale_timesheet: not display project stat button when SO is draft · c4d7357f
      Xavier BOL (xbo) authored
      
      Before this commit, when the user creates a quotation and add a SOL with
      product contained a project in `project_id` field, the
      'Project Overview' stat button is shown even if the quotation is not
      confirmed.
      
      This commit changes the visibility condition of this button to display
      it only if at least a project is contained in `project_ids` field of
      `sale.order` model and if the quotation is confirmed that is when the
      quotation becomes a sales order.
      
      Step to reproduce:
      =================
      1) Go to the Sales app
      2) Click on 'Create' button to create a quotation.
      3) Add a SOL with 'Customer Care (Prepaid Hours)' product
      
      Actual Behavior:
      ===============
      The 'Project Overview' stat button is displayed.
      
      Expected Behavior:
      =================
      This stat button should not be displayed while the quotation is not
      confirmed to become a sales order.
      
      task-2697063
      
      closes odoo/odoo#80305
      
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      c4d7357f
    • Touati Djamel (otd)'s avatar
      [FIX] purchase_product_matrix: fix warning message on product variants · 4eb3e149
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - install `”purchase_product_matrix”`
      - Go to the purchase settings and enable “Warnings” option
      - Create a product with variants
      - Add purchase warning
      - Create a PO and add the product
      
      Problem:
      The warning message is not appearing
      
      Solution:
      the `”_product_id_change()”` function has no return.
      To trigger the warning message, we have to call the `”onchange_product_id_warning”` manually because it is not triggered automatically in the grid case
      
      opw-2696007
      
      closes odoo/odoo#80275
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      4eb3e149
  9. Nov 23, 2021
    • Paolo (pgi)'s avatar
      [FIX] l10n_fr_fec: Cleanup spaces in FEC export · e11db407
      Paolo (pgi) authored
      The fields of the FEC export must be sanitized.
      All tabs, carriage returns and newlines must be excised.
      
      Ticket link: https://www.odoo.com/web#id=2672261&model=project.task
      
      
      
      opw-2672261
      
      closes odoo/odoo#80288
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      e11db407
    • Goffin Simon's avatar
      [FIX] hr_expense: Wrong tax in multi companies · a3daaf4d
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider two companies C1 and C2 where C1 is the parent of C2
      - Let's consider an expense product P with T1 as tax in C1 and T2 as tax in C2
      - Let's consider an expense alias A defned for C1 and C2
      - Let's consider an employee E in C2 with work email address W
      - Send from W to A an email with subject [internal reference of P] Test Expense 1000€
      
      Bug:
      
      An expense is created in C2 with T1 and T2 as supplier taxes instead of only T2
      
      Inspired from function _compute_tax_id defined in model sale.order and purchase.order
      
      opw:2507162
      
      closes odoo/odoo#71586
      
      X-original-commit: 436b8fcf6a10485acb1a6f47b9b81860ae1c243b
      Signed-off-by: default avatarLaurent Smet <las@openerp.com>
      a3daaf4d
    • thcl-odoo's avatar
      [FIX] payment: use correct target on onclick event · de8e67ad
      thcl-odoo authored
      
      Current behavior :
      If we click on the icon rather than the label we got a crash
      
      Steps to reproduce :
      - Enable Online Payment and configure an acquirer and add the possibility to save the card
      - Go to the Website and Log in (e.g. as `Marc Demo`)
      - Go to your account (from dropdown menu > `My Account`)
      - Manage you payment methods and add a new one
      - Try to delete the newly added payment method by clicking on the trash icon in the button
      
      Reason :
      Currently, we rely on the `target` property of the event (triggered after clicking on the button). 
      The problem is that, as in this case, if a button has an HTML element as a child and we click on this child, `target` property will target the child whereas in this case we want to retrieve the button and not the child. 
      
      Using `currentTarget` property instead of `target` allows us to retrieve the button no matter what since `currentTarget` always refers to the element to which the event handler has been attached.
      
      OPW-2660186
      
      closes odoo/odoo#80189
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      de8e67ad
  10. Nov 22, 2021
  11. Nov 21, 2021
  12. Nov 19, 2021
    • Raphael Collet's avatar
      [FIX] base_automation: recursive computed field cause too many calls to flush · 7ed7c922
      Raphael Collet authored
      
      The use-case that motivated this fix is the deletion of a project task
      with many subtasks.  The field 'project_id' on tasks is recursively
      computed, and some automated action must be executed when its value
      corresponds to a given project.
      
      The issue occurs when the domain of automated actions is evaluated by
      method search(), because the latter flushes the fields to search on,
      which are also the ones being recomputed.  Combined with the fact that
      recursive fields are not computed in batch, this leads to a huge amount
      of recursive calls between the automated action and flush().
      
      The execution of task.unlink() looks like this:
      - mark 'project_id' to compute on subtasks
      - delete task
      - flush()
        - recompute 'project_id' on subtask1
          - call compute on subtask1
          - in action, search([('id', 'in', subtask1.ids), ('project_id', '=', pid)])
            - flush(['id', 'project_id'])
              - recompute 'project_id' on subtask2
                - call compute on subtask2
                - in action, search([('id', 'in', subtask2.ids), ('project_id', '=', pid)])
                  - flush(['id', 'project_id'])
                    - recompute 'project_id' on subtask3
                      - call compute on subtask3
                      - in action, search([('id', 'in', subtask3.ids), ('project_id', '=', pid)])
                        - flush(['id', 'project_id'])
                          - recompute 'project_id' on subtask4
                            ...
      
      closes odoo/odoo#80114
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      7ed7c922
    • Touati Djamel (otd)'s avatar
      [FIX] mrp: improve mrp BOM report · 0700db23
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a BOM:
          - set the quantity of the finished product and component as more than 1
          - save > print > BOM Structure
      
      Problem:
      The report generated shows the qty and cost for production of 1 unit of product, regardless of the BOM quantity
      
      opw-2691632
      
      closes odoo/odoo#80093
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      0700db23
    • Florian Damhaut's avatar
      [FIX] mrp : Removing a workorder broke the continuity · 81497125
      Florian Damhaut authored
      
      Unlinking a workorder which was in the middle of a chain of workorder created two subchains which both created a product when reaching their new respective ends.
      The issue was solve by assuring that when we a link is remove from a workorder chain, their adjacent workorders are linked together using next_workorder_id
      
      opw-2669514
      
      closes odoo/odoo#79251
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      81497125
    • Wolfgang Taferner's avatar
      [FIX] l10n_at: supplement and fix tags + remove empty tax_ids · 9de58fc6
      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#80034
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      9de58fc6
    • Tariq Ahmed Khan's avatar
      [CLA] signature for partho222 · a0c938c9
      Tariq Ahmed Khan authored
      
      closes odoo/odoo#79989
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      a0c938c9
Loading