Skip to content
Snippets Groups Projects
  1. Feb 26, 2021
    • Adrien Widart's avatar
      [FIX] l10n_mx: allow MX to print receipts · 0f0238c6
      Adrien Widart authored
      
      To reproduce the error:
      (Need MX configuration)
      1. Go to Accounting > Customers > Receipts
      2. Create a Receipt
      3. Post and Print it
      
      Error: An error message is displayed: "Only invoices could be printed."
      However, MX should be allowed to print the receipts.
      
      OPW-2456374
      
      closes odoo/odoo#66910
      
      Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
      0f0238c6
    • Adrien Dieudonne's avatar
      [FIX] hr_contract: Avoid horizontal scroll in contract form on mobile · af81ac1a
      Adrien Dieudonne authored
      
      The following warning is very long in absolute position. The following
      text: "Calendar Mismatch : The employee's calendar does not match its
      current contract calendar. This could lead to unexpected behaviors."
      is invisible but takes a lot of width on the same line.
      
      Now, the item is a block of 0px height and doesn't take space.
      This avoids the horizontal scroll on mobile.
      
      Note that the item is displayed at the wrong place anyway.
      This will be fixed in master.
      
      Steps to reproduce:
      - Payroll / Employees / All contracts
      - Change "Working Schedule" field
      
      closes odoo/odoo#66858
      
      Task-id: 1929043
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      af81ac1a
    • Raphael Collet's avatar
      [FIX] core: convert_to_write() of x2many field with new records · 03a4137c
      Raphael Collet authored
      
      When comparing the values of a new record with its origin, x2many fields
      are always different because we compare new records with real records.
      For instance, converting the value of a one2many field where lines have
      a many2many field always returns update commands for the many2many
      field.
      
      closes odoo/odoo#66914
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      03a4137c
    • Adrien Widart's avatar
      [FIX] website_sale_digital: ignore Note/Section · 95ba17ae
      Adrien Widart authored
      
      When downloading the digital file, if there exists one SO linked to the
      current customer and that contains a Note/Section, the web page will be
      redirected to the "Internal Server Error" web page.
      
      To reproduce the error:
      (Need sale_management)
      1. Create a customer C
      2. Grant C portal access
      3. Create a product P
          - Add a digital attachment
      4. Create a SO
          - Customer: C
          - Add product P
          - Add a note
      5. Save, Confirm, Create Invoice, Register Payment
      6. Sign in with P
      7. Consult the SO web page
      8. Download the file attached to the SO line
      
      Error: The page is redirected to the "Internal Server Error" web page.
      
      When downloading the document, the module checks the customer's access.
      To do so, it gets all relevant invoices and free products. Here is the
      problem, when getting the free products, the domain includes the SO
      lines used for Section and Note. As a result, when it tries to read the
      product of such a line, this will raise an error.
      
      OPW-2419478
      
      closes odoo/odoo#66904
      
      Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
      95ba17ae
  2. Feb 24, 2021
  3. Feb 26, 2021
  4. Feb 23, 2021
  5. Feb 25, 2021
  6. Feb 24, 2021
  7. Feb 17, 2021
  8. Feb 24, 2021
  9. Feb 23, 2021
    • Adrien Widart's avatar
      [FIX] account: register attachment only if it exists · 03d2e457
      Adrien Widart authored
      
      When printing an invoice, the server tries to register one attachment as
      main one (see #65320). However, if there is not any attachment, this
      will raise an error.
      
      OPW-2465995
      
      closes odoo/odoo#66706
      
      Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
      03d2e457
    • Katherine Zaoral's avatar
      [ADD] l10n_ar: generic changes to use in QR code · 4ceb056a
      Katherine Zaoral authored
      
      AFIP give us new resolution 4291 that request to print QR code in
      printed version of electronic invoices. For that we:
      
      1) update the xml report footer style
      2) add generic method to sanitze the identification number we are
      sending, the sanitize method is added here in order to be re used for
      other functionalities across electronic invoice and reports. If we are
      not able to sanitize the number then we show an error to the user
      3) update translations to add new raise message translated term
      
      closes odoo/odoo#65032
      
      Related: odoo/enterprise#15947
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      4ceb056a
  10. Feb 10, 2021
  11. Feb 23, 2021
    • Goffin Simon's avatar
      [FIX] point_of_sale: Multicompany tax · 5dcfdcb2
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Create a multi-company environment with two companies A & B
      - Create two sales taxes TA & TB, one for company A & one for company B
      - Created a shared product P and assign both TA & TB
      - Create a fiscal position FP that maps TA and TB to other taxes
      - Login with user having access of both companies
      - Enable a POS session S with fiscal position and select FP
      - Open S and select P as product
      
      Bug:
      
      A traceback was raised
      
      PS: Only the taxes of company's user are loaded in taxes_by_id
      So when trying to fetch taxes from a product with function get_taxes,
      the taxes from other companies than company's user must be ignored.
      
      opw:2448785
      
      closes odoo/odoo#66684
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      5dcfdcb2
    • Nasreddin (bon)'s avatar
      [FIX] stock_account: display datetime with user timezone · 235386e4
      Nasreddin (bon) authored
      
      Issue
      
      	- Install Inventory module
      	- Go to Inventory -> Reporting -> Inventory Valuation
      	- Click on "Inventory At Date" button
      	- Select any date
      
      	The datetime in breadcrumb is displayed in UTC.
      
      Solution
      
      	Display datetime in current user timezone.
      
      opw-2464744
      
      closes odoo/odoo#66533
      
      Signed-off-by: default avatarbon-odoo <nboulif@users.noreply.github.com>
      235386e4
  12. Feb 22, 2021
    • Tiffany Chang (tic)'s avatar
      [FIX] stock: make package level package consistent v2 · 9e0f8c04
      Tiffany Chang (tic) authored
      
      Commit e5ab8cf9 missed a use case.
      
      Steps to reproduce:
      
      - Activiate "Packages" setting in Inventory
      - Configure an operation type to "Move Entire Packages"
      - Create a "Planned Transfer" picking with that operation type and add a
        package to be moved
      - Turn off "Move Entire Packages" and try set the destination
        package of the move line to nothing (False).
      
      Expected result:
      Move line has no destination package + package level is deleted as
      expected.
      
      Another bug will still exist due to the design of package_level where if
      in addition to the above use case, if a different package is used instead
      of deleting it and "Move Entire Packages" is reactived => final package
      shown in the Detailed Operations will show all move lines as being part
      of the same package even though they are not. Data appears to be correct
      in the database otherwise and a reasonable fix doesn't seem feasible for
      now so we leave this bug as is.
      
      Related to Task: 2418907
      
      closes odoo/odoo#66619
      
      Fixes: odoo/odoo#66542
      Fixes: odoo/odoo#66517
      X-original-commit: a73505dd
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      9e0f8c04
  13. Feb 17, 2021
    • Rémy Voet (ryv)'s avatar
      [FIX] stock_account: fix rounding adjustment · 74ba8039
      Rémy Voet (ryv) authored
      
      This fix (odoo/odoo#46850) was too permissive and fix too much
      stock valuation issues (other than rounding error) under the hood.
      The problem of the "too permissive" is will hide some errors
      without get any feedback about them. Also, it changes the SVL value
      without any explanation.
      
      To avoid the first issue, apply a threshold on the rounding adjustment.
      This threshold is '(quantity_out * smallest_value_of_the_currency) / 2'
      (`smallest_value_of_the_currency` = `rounding` field of the related
      currency).
      Also to improve debugging, add a line in the description
      about the rounding adjustment done in a SVL
      
      task-2452786
      
      closes odoo/odoo#65567
      
      Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
      74ba8039
  14. Feb 22, 2021
  15. Feb 21, 2021
  16. Feb 19, 2021
  17. Feb 16, 2021
  18. Feb 19, 2021
  19. Feb 18, 2021
    • Goffin Simon's avatar
      [FIX] mrp_subcontracting: Updat quantity on confirmed PO · 8bec87d0
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider a product P with a subcontracting BOM B and subcontractor S
      - Create a purchase order PO with S as vendor
      - Add P on PO and confirm it
      - Change quantity of P two times
      
      Bug:
      
      A traceback was raised
      
      opw:2419222
      
      closes odoo/odoo#66440
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      8bec87d0
    • Denis Ledoux's avatar
      [IMP] pos_sale: `pos_order_amount_total` performances using read_group · 23e54113
      Denis Ledoux authored
      
      Using `read_group` to gather such a sum is always more performant
      than a `search` followed by a `mapped`.
      
      In the case of the studied database,
      the computation never ended,
      while it ends in a few seconds
      using `read_group`.
      
      upg-7528
      
      closes odoo/odoo#66502
      
      X-original-commit: 8547bb6145c3ddf9c7205ea10deef22473362cce
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      23e54113
    • Adrien Widart's avatar
      [FIX] account_analytic_default: keep new account analytic · 7fdec660
      Adrien Widart authored
      
      When importing some invoice lines, if the analytic account field of a
      line has changed, the new invoice line will still keep the initial
      analytic account value.
      
      To reproduce the error:
      (use demo data)
      1. Create an invoice I01
          - Add one line with one analytic account (e.g., "Administrative")
      2. Save
      3. Go to Accounting > Customers > Invoices
      4. Export I01:
          - Enable "I want to update data (import-compatible export)"
          - Fields to export:
              - Invoice lines
              - Invoice lines/External ID
              - Invoice lines/Analytic Account
              - Invoice lines/Analytic Account/Analytic Account
      5. On exported file:
          - Delete column "invoice_line_ids"
          - Change the analytic account (e.g., "Operating Costs")
      6. Import the file
      7. Open I01
      
      Error: The analytic account is still "Administrative". It should be
      "Operating Costs".
      
      The issue comes from both `._origin`: the module keeps the initial
      values. Both `_origin` were introduced to fix an issue (see #49110), but
      they are not useful anymore.
      
      OPW-2452428
      
      closes odoo/odoo#66433
      
      Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
      7fdec660
  20. Feb 12, 2021
    • Ivan Yelizariev's avatar
      [FIX] account: reconcile by batches of 1000 lines · ca69537f
      Ivan Yelizariev authored
      
      Neither server, no browser cannot handle unlimited number of lines at the same
      time. On server side it leads to series of heavy sql requests. On client side,
      browser will eat all the memory on trying to render all of those lines.
      
      This also prevents loading reconciled lines ids to browser.
      
      Size of the batches can be customized via System Parameter
      ``account.reconcile.batch``
      
      Details:
      * ``action_bank_reconcile_bank_statements`` is used on clicking `[Reconcile]`
      button in ``account.bank.statement`` form
      * ``action_open_reconcile`` is used on clicking `[Reconcile]` for a journal in
      Account Dashboard
      
      ---
      
      opw-2424992
      opw-2344807
      
      closes odoo/odoo#65789
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      ca69537f
  21. Feb 18, 2021
    • Nasreddin (bon)'s avatar
      [FIX] sale: Display color tootlip in product configurator · fc7ef284
      Nasreddin (bon) authored
      
      Issue
      
      	- Install "Sales" module
      	- Go to settings and activate "Product Configurator" feature
      	- Create a product X with mutilple color (variants)
      	- Create a quotation
      	- Add product X (Product Configurator should open)
      	- Hover any color
      
      	Popup with color name does not appear.
      
      Cause
      
      	'title' attribute value is removed.
      
      Solution
      
      	if element have 'value_name' data attribute, set it back as title else set no title.
      
      opw-2438704
      
      closes odoo/odoo#66451
      
      X-original-commit: efa36bc522771e17805ee965bdc0f0315b5f34ff
      Signed-off-by: default avatarbon-odoo <nboulif@users.noreply.github.com>
      fc7ef284
    • Nicolas Lempereur's avatar
      [FIX] web_editor: have video button even if sanitized · 73f57819
      Nicolas Lempereur authored
      
      If a field is sanitized, a6e2b484 would hide the video button because
      the video does not show in backend. It is better for the consistency but
      if the field appear in frontend, the video would still show so we
      prevent something that worked (but is very not user friendly when
      editing in backend).
      
      This changeset go back to the previous behavior (keeping the code
      simplification), at one point there should be a fix so at least when
      editing we see the video (currently we see an empty div in given
      conditions).
      
      opw-2463746
      
      closes odoo/odoo#66434
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      73f57819
    • Nicolas Lempereur's avatar
      [FIX] web_editor: shift+enter in editor add direct newline · 27b84138
      Nicolas Lempereur authored
      
      Enter keypress browser event were removed in 3c372d1d.
      
      It was reintroduced in text fields with d2f024d2 and in source mode
      of html field with b10ca1f6.
      
      When doing ENTER in the editor, we do our special case of ENTER (eg. it
      will split the container in two and have other custom behavior) but when
      doing SHIFT+ENTER we let the browser handle it and add a normal newline.
      
      With the "Enter" prevention, SHIFT+ENTER did not work.
      
      opw-2463746
      
      closes odoo/odoo#66426
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      27b84138
  22. Feb 16, 2021
  23. Feb 17, 2021
    • Tiffany Chang (tic)'s avatar
      [FIX] stock: make package level package consistent · b33e72d0
      Tiffany Chang (tic) authored
      
      Currently a package level is created and has the newly created package
      assigned to it when "Put In Pack" is used. Unfortunately if a move line
      has its result_package_id changed after having a package assigned via
      the Put In Pack, then the package level's package_id isn't correctly
      updated. This leads to incorrect data in the db. This incorrect data
      doesn't affect much since result_package_id from an entire package move
      cannot be changed in any views, but it does mean that the created
      package associated with the package level can never be deleted even if
      it's never used.
      
      Steps to reproduce:
      1. active (delivery) packages in settings
      2. create a picking and create some done values
      3. use "Put In Pack" to put done move lines into a package
      4. change the newly created Destination Package to another package
      5. Go to Packages and try to delete the package created by Put In Pack
      
      Expected result: able to delete the package
      Actual result: Server error that package is still required by Stock
      Package Level.
      
      This is a short term fix. In the long run it would be better to fix the
      package_level logic so it isn't unnecessarily assigned to moves/move
      lines and/or updates in a cleaner way.
      
      Task ID: 2418907
      
      closes odoo/odoo#66386
      
      X-original-commit: e5ab8cf9
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      b33e72d0
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] web_editor: prevent crash on link edit · da14e444
      Andrea Grazioso (agr-odoo) authored
      
      Go to Website
      Go to conatct us form
      Switch in Edit mode
      Click on “send” (or "submit")
      click on edit link
      
      A js traceback will apper. This occur because we refocus an elements
      which may not be the correct one. In this case $editable will contain
      all the contact form instead of just the relevant div of the submit
      button
      
      opw-2439090
      
      closes odoo/odoo#66081
      
      Signed-off-by: default avataragr-odoo <agr-odoo@users.noreply.github.com>
      da14e444
    • Nicolas Lempereur's avatar
      [FIX] project: access to project if follower of folded task · d23ca8b8
      Nicolas Lempereur authored
      
      The access rule on a project with invitation only will for example
      check if the user is follower of a task inside this project.
      
      Currently it used task_ids to do that, so:
      
      - you would not see a project where you have access to project if the
        tasks you have access to are in folded columns
      
      - there is an odd issue with computation of the field value and the
        domain where is might cause an error and make Project app
        inaccessible (when searching it doesn't filter on task_ids domain,
        so find too many results, when checking security for compute fields
        it filters on it
      
      In any case, we should use tasks which also contains task in folded
      stage and not just task_ids.
      
      opw-2455780
      
      closes odoo/odoo#66375
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      d23ca8b8
Loading