Skip to content
Snippets Groups Projects
  1. Dec 17, 2020
  2. Nov 20, 2020
    • xO-Tx's avatar
      [IMP] website: update default theme tour · 9b3c4d07
      xO-Tx authored
      
      The goal of this commit is to update the default theme
      tour (steps, changes on snippets...) as in other themes tours.
      
      The url was changed in "registerThemeHomepageTour" function since
      the homepage tours are supposed to start in edit mode.
      
      task-2375011
      
      closes odoo/odoo#61733
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      9b3c4d07
  3. Dec 11, 2020
  4. Dec 17, 2020
    • Adrien Widart's avatar
      [FIX] point_of_sale: barcode and decimal notation · 6abd50ae
      Adrien Widart authored
      
      In some languages, if the thousands/decimals separators are different
      from ','/'.' , when scanning a barcode that contains a decimal quantity,
      the conversion won't be correct.
      
      To reproduce the error:
      1. Go to Settings > Inventory
      2. Enable "Units of Measure"
      3. Go to Point of Sale > Products > Products
      4. Create a Product P
      	- Set a barcode, e.g. 2112345000008
      	- Set UoM to 'kg'
      5. Go to Settings > Translations > Languages
      6. Add and switch to French (BE)
      7. Run one POS
      8. Use the debugging window to simulate a scan
      	- Enter the code, e.g. 2112345087550
      		(It means 8.755kg of product P)
      	- Click on "Scan EAN-13"
      
      => Here is the error: it actually adds 8755kg of P-product. This comes
      from the quantity conversion. The barcode provides the qty as a number with
      basic decimal notation (.) but later, it is converted using the user's
      language configuration.
      
      OPW-2412561
      
      closes odoo/odoo#63406
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      6abd50ae
  5. Dec 15, 2020
  6. Dec 16, 2020
  7. Dec 04, 2020
    • Ivan Yelizariev's avatar
      [FIX] calendar, calendar_sms: stop sending wrong reminders · 0e434d8c
      Ivan Yelizariev authored
      
      STEPS:
      * Update cron "Calendar: Event Reminder": set Execute every 2 minutes
      * create a recurring event:
      
        * date: now() - 8 weeks
        * time: now() + 1 hour + 3 minutes
        * Repeat every 1 week, until "now() + 8 weeks"
        * Reminders: "Notification-1 hour", "Email-1 hour", "SMS-1 hour"
      
      * wait 3 minutes
      * Wait 0-5 minutes
      * Check menu ``[[ Settings ]] >> Technical >> Discuss >> Messages``
      * Check menu ``[[ Settings ]] >> Technical >> Phone / SMS >> SMS``
      
      BEFORE: you get mail/sms/UI notifications for all passed dates
      
      AFTER: you get mail/sms/UI notifications only for the comming event
      
      WHY: in v13.0-, recurring calendar.event records were virtual, so
      _get_occurrences was used to generate those virtual records. In Odoo v14+ it's not needed
      
      ---
      
      opw-2389877
      
      closes odoo/odoo#62701
      
      Signed-off-by: default avatarIvan Yelizariev // IEL <yelizariev@users.noreply.github.com>
      0e434d8c
  8. Dec 16, 2020
    • Raphael Collet's avatar
      [FIX] core: accounting groups field dropped from users' form view · 399b4f1c
      Raphael Collet authored
      
      To reproduce this issue, install the module "Accounting" in English,
      then switch language to Dutch, and go to a user's form.  The selection
      field for accounting groups is missing from the users' form view.
      
      The source of the bug is the special case introduced for accounting
      groups in d8c5cc13.  The groups in that
      selection field are not totally ordered, and the non-ordered elements
      are de facto ordered by name, which is a translated field!  In the
      example above, the English version uses the field name
      `sel_groups_22_23_24_25` while the Dutch version uses the field name
      `sel_groups_23_22_24_25`.  Because the first one is used in the form
      view, and it is not found in the model's documented fields (which uses
      the second one), the field is discarded from the view.
      
      The patch modifies the override of method `fields_get()` to consider all
      the possible names for that selection field, and returns them all.
      
      OPW-2394209
      
      closes odoo/odoo#63423
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      399b4f1c
  9. Dec 10, 2020
  10. Dec 16, 2020
    • Thanh Dodeur's avatar
      [FIX] mail: prevents image loading errors · 31f71f50
      Thanh Dodeur authored
      
      Before this commit, an event listener was still active after the removal
      of the attachment viewer, which caused the the onLoad function to be
      called on an removed component if the component was unmounted before
      the image was loaded. This commit fixes this issue by adding the
      eventListener through the owl template.
      
      Additionally, when a new image was loading, the old image was kept in
      the dom until the end of the loading of the new image, this commit
      also fixes this issue by adding a t-key on the image element.
      
      part of task-2363522
      
      closes odoo/odoo#61560
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      31f71f50
    • oco-odoo's avatar
      [FIX] account: display account.journal's currency_id field at the right place in form view · fb68cc93
      oco-odoo authored
      
      Before that, that field was located under "Outgoing payment", which made no sense.
      
      closes odoo/odoo#63432
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      fb68cc93
    • Thanh Dodeur's avatar
      [FIX] mail: prevents traceback when clicking attachment unlink button · 18581843
      Thanh Dodeur authored
      
      Before this commit, quickly clicking on the unlink button of an
      attachment could result in a traceback if the click happened right
      after the deletion of attachment but before the rendering of the DOM.
      
      part of task-2363522
      
      closes odoo/odoo#63366
      
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      18581843
    • nie's avatar
      [FIX] website: gallery img inside anchor is too large · a9c96699
      nie authored
      
      Steps:
      - Go to "Website" > "Go to Website"
      - Click Edit
      - Add an image gallery
      - Add an image to the gallery
      - Click the image
      - Click on the Link button in the bottom-right of the side panel
      - Add a link and save
      
      Bug:
      The image is too large.
      
      Explanation:
      The flex layout is not carried over to `img` when it's nested into an `a` tag. Redefining the flex layout on the `a` tag fixes the issue.
      
      This fixes portrait images:
      ```css
      height: 100%;
      width: 100%;
      ```
      
      And adding this also fixes landscape and smaller images:
      ```css
      display: flex;
      ```
      
      opw:2394953
      
      closes odoo/odoo#63364
      
      Signed-off-by: default avatarbackspac <backspac@users.noreply.github.com>
      a9c96699
    • Jigar Vaghela's avatar
      [FIX] account: correct management of groups of taxes on misc operations · d99d9dd3
      Jigar Vaghela authored
      
      Using group of taxes with type_tax_use='none' children messed up the sign of the tax_base_amount and line tags.
      
      closes odoo/odoo#63418
      
      X-original-commit: fb39ebcb
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      d99d9dd3
    • Achraf (abz)'s avatar
      [FIX] lunch: Use extra toppings without problem · a8467765
      Achraf (abz) authored
      1) Extra Items
      
          Issue: Adding an extra to one menu item, automatically adds it to the other food items in the same order.
      
          Expected Behavior: When adding an extra, it should only be associated to
          the food item for which it was selected, and NOT applied to the other ordered items.
          For example, if I select a "Ranch" dressing for the "Chef Salad",
          the ranch should not appear as an extra for the "Cheeseburger" or "Cookie of the Day".
      
      2) Unable to Submit Certain Orders
      
          Issue: Odoo prevents the user from submitting an order in the following case
          (better illustrated through an example). If you select a "Chef Salad", you will be prompted to select a "Dressing Choice",
          because the configuration is set to select one and only one extra.
          You cannot add the salad to the cart without selecting a dressing,
          nor can you proceed if you have more than one dressing selected;
          this is functioning as expected. The problem, however, comes when you
          select a dressing and add the salad to the cart, and now you try to add a
          dressing as its own order item (separate from any salad). Even though the
          salad has its own dressing selected, and the separate dressing is its own item,
          the error message: "You have to order one and only one Dressing choice" appears and
          prevents the order from being submitted. This issue may be a consequence of the behavior observed in the first issue.
      
          Expected Behavior: The user should be able to submit the order in
          this case because the salad had only one dressing associated with it,
          and the extra dressing is supposed to be its own item.
          This should not create a conflict with the "only one" extra logic.
      
      Step to reproduce (edv)
      Reproducible on runbot.
      1) Extra Items
      https://drive.google.com/file/d/1yos9coFqd55pq8qNbNs1OqGNMNSdgxDX/view
      
      2) Unable to Submit Certain Orders
      https://drive.google.com/file/d/1M0ZEElu-hYwU9bmCwEx_tqEZRAPG_UEt/view
      
      
      
      opw-2391070
      
      closes odoo/odoo#63228
      
      Signed-off-by: default avatarAchraf <abz-odoo@users.noreply.github.com>
      a8467765
  11. Dec 15, 2020
  12. Dec 09, 2020
  13. Dec 15, 2020
    • Samuel Degueldre's avatar
      [FIX] web_editor: fix crash on chrome (cannot read editable of null) · c891eb46
      Samuel Degueldre authored
      
      This crash is caused by some of our integration code with summernote.
      When clicking on a button of the toolbar, we attempt to create a range
      from the current selection so that we can show the image toolbar if the
      selection contains an image, but there was no check to see whether the
      current selection was actually inside of the editable part of the page.
      This causes issues later when we attempt to generate layoutInfo for the
      image, as it will look for the editable area that contains the image and
      fail.
      
      This commit fixes that by making sure that the current selection is
      inside of the editable area before adding it to the styleInfo.
      
      opw-2376794
      
      closes odoo/odoo#63373
      
      X-original-commit: b26c57b4
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      c891eb46
  14. Dec 11, 2020
  15. Dec 10, 2020
    • Goffin Simon's avatar
      [FIX] account_check_printing: Check number in Payment · f01eb942
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider a bank journal BJ with manual numbering activated
      - Create a customer payment CP using BJ as journal and confirm CP
      - Create a vendor payment VP using BJ as journal, select Check as payment method
      - A Check Number with 0001 is automatically assigned to VP
      - Confirm or save VP
      
      Bug:
      
      An error was raised saying that:
      
      The following numbers are already used: 0001
      
      PS: When creating the customer payment, a check number was assigned to CP even if
      customer payment has nothing to do with check numbers
      
      opw:2415170
      
      closes odoo/odoo#63174
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      f01eb942
  16. Dec 15, 2020
    • Achraf (abz)'s avatar
      [FIX] web: Load odoo script after other scripts · a0c7880c
      Achraf (abz) authored
      
      What are the steps to reproduce your issue ?
      
          1. Install website
          2. Connect on the website
          3. Choose Customize > HTML/CSS/JS Editor
          4. Choose "Web layout" (in "XML (HTML)" )
          5. Modify the HTML code by adding any <script> before the existing <script> (console.log whatever)
          6. Save
          7. Refresh
      
      What is currently happening ?
      
          Traceback: TypeError: Cannot read property 'user_context' of undefined
      
      How to fix the bug ?
      
          Target the odoo script by id in the xpath.
      
      opw-2375490
      
      closes odoo/odoo#63357
      
      X-original-commit: 0b7ba571
      Signed-off-by: default avatarAchraf <abz-odoo@users.noreply.github.com>
      a0c7880c
  17. Dec 14, 2020
  18. Dec 09, 2020
  19. Dec 11, 2020
    • Qiuyu (QHO)'s avatar
      [FIX] sale_project: fix usage of unavailable field "is_fsm" · 36c3fb0e
      Qiuyu (QHO) authored
      
      Step to reproduce:
      1. Install module "sale_project"
      2. In Project > Configuration > Settings, turn on "Recurring Tasks"
      3. Create a recurrent task
      4. Set the "next_recurrence_date" for the recurrence ahead of today
      5. Run scheduled action " Project: Create Recurring Tasks"
      => error: 'project.task' object has no attribute 'is_fsm'
      
      Reason:
      "is_fsm" is defined in the module "industry_fsm" and the module "sale_project" does not depend on that module.
      
      opw-2412370
      
      closes odoo/odoo#63027
      
      Related: odoo/enterprise#15272
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      36c3fb0e
  20. Dec 14, 2020
    • Raphael Collet's avatar
      [FIX] core: imports with one2many lines with dangling external ids · 0322febb
      Raphael Collet authored
      Consider a model M with a one2many field with comodel L, such that
      deleting records in M cascade-deletes records in L.  Import a bunch of
      records in M with one2many lines having specific external ids.  Delete
      the imported records: the database cascade-deletes the corresponding
      lines, but the lines' external ids are not deleted.  Now re-import the
      same records: this crashes, because the import process finds the lines'
      external ids and tries to update the deleted lines!
      
      The fix consists in checking that an external id's record actually
      exists.  The existence check was removed for performance reasons by
      https://github.com/odoo/odoo/pull/26496
      
      .  We reintroduce it by resolving
      the external id with a join on the model's name, which checks the
      record's existence faster than an extra query.  This patch allows to
      re-create the imported records' lines.
      
      Another patch is necessary to actually update the external ids that
      refer to deleted records, otherwise they remain dangling, and importing
      the same records again duplicates the lines, because their external ids
      do not match any existing record.
      
      OPW 2409649
      
      closes odoo/odoo#63077
      
      Related: odoo/enterprise#15202
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      0322febb
  21. Dec 09, 2020
    • oco-odoo's avatar
      [FIX] account: reconciliation models: fix auto-reconciliation result when the... · 7393aa3e
      oco-odoo authored
      [FIX] account: reconciliation models: fix auto-reconciliation result when the reconciliation doesn't cover the whole invoice
      
      Before that, using an auto-validate reconciliation model to match an invoice with a statement line with a lesser amount resulted in the creation of an payment entry with which the invoice got fully reconciled, and the difference amount was fowarded to the suspsense account in an additional line. This wasn't correct, as we expect the invoice to be only partially paid in that case (with an amount equal to the statement line's).
      
      closes odoo/odoo#63111
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      7393aa3e
  22. Dec 13, 2020
Loading