Skip to content
Snippets Groups Projects
  1. Feb 18, 2021
    • 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
  2. Feb 16, 2021
  3. 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
    • Benjamin Vray's avatar
      [FIX] website_forum: remove o_we_selected_image class on post images · 876bb9cb
      Benjamin Vray authored
      
      Before this commit, the o_we_selected_image class was not removed from
      forum post when saving.
      
      task-2312878
      Part of #66316
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      876bb9cb
    • Benjamin Vray's avatar
      [FIX] website_forum: fix selector in event of the submit btn of a post · 3509d438
      Benjamin Vray authored
      A comma was removed in the following commit for no reason
      912996fe . Because of this, the click
      event of the forum post submit button was not working.
      
      task-2312878
      Part of #66316
      3509d438
    • Aaron Bohy's avatar
      [FIX] web: correctly close confirm dialog · 05d34d4f
      Aaron Bohy authored
      
      Let's assume the following scenario:
       - have an action in target new (e.g. a form view)
       - in the dialog, have an action/object button with confirm
         attribute
       - when clicking on that button, a confirm dialog opens
       - if validated, the following action returned by the server
         is again an action in target new
      
      Before this commit, the confirm dialog remained in the DOM.
      
      This issue occurred because it's parent wasn't correctly set (wrong
      use of `this`), so when the first dialog was destroyed, the confirm
      dialog wasn't automatically destroyed in turn.
      
      OPW~2440712
      
      closes odoo/odoo#66340
      
      X-original-commit: 2016fe31af970976775c9df160a31abfbec742ba
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      05d34d4f
    • Nicolas Lempereur's avatar
      [FIX] website_sale: wrap unbreakable product name in td · 644dbaff
      Nicolas Lempereur authored
      
      91937764 added new selector to target other location where product name
      could break the interface on short screen or with long unbreakable word
      in title.
      
      But there is some use case missing where overflow-wrap doesn't work and
      word-wrap doesn't. Also adding overflow-wrap since word-wrap is
      deprecated.
      
      opw-2451496
      
      closes odoo/odoo#66279
      
      X-original-commit: e3eb5bf4
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      644dbaff
    • Goffin Simon's avatar
      [FIX] account: Printing journal entries" · b20e6896
      Goffin Simon authored
      
      This commit ba32244c introduced an error when
      validating pickings or reconciling
      
      closes odoo/odoo#66331
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      b20e6896
  4. Feb 16, 2021
    • Arnold Moyaux's avatar
      [FIX] stock: couldn't unreserve mixed tracking stock · 3b59d0b1
      Arnold Moyaux authored
      
      - Install stock
      - Go to Inventory > Configuration > Settings and enable "Lots" and "Storage Locations"
      - Create a Product tracked By Lots (i.e. Product X)
      - Go to Inventory > Operations > Inventory Adjustments
      - Create an Inventory Adjustment for Product X:
      
           Product   |   Location   |   Lot/SN   |   Real Quantity
       -------------------------------------------------------------
          Product X  |   WH/Stock   |   LOT 01   |       20
          Product X  |   WH/Stock   |            |       10
      
      - Validate Inventory
      - Go to Inventory > Operations > Transfers and create one:
        * Source Location: WH/Stock
        * Destination Location: WH/Stock/Shelf1
        * Operation Type: Internal Transfers
        * Operations:
          [Product: Product X, Initial Demand: 25]
      - Save Transfer, Mark As Todo and Check availability
      - Click on list icon of Operation line for Product X to display Detailed Operations
      - 20 units of LOT 01 and 5 units without lot have been reserved
      - Set LOT 01 for the 5 reserved units without lot and confirm
      - Open Detailed Operations again
      - There are now 20 units of LOT 01 and 5 units of LOT 01
      - Remove the row with 5 units and confirm
      - Check availability and open Detailed Operation
      - There is now only a row with 25 reserved units of LOT 01
      - Unreserve
      The following errror is raised:
      "It is not possible to unreserve more products of P than you have in stock."
      
      It happens because the system is not able to manage quants with lots and
      wihtout lots at the same time. When modifying the move line to 25
      reserved units. It's composed of 20 quants with lot and 5 quants without
      lot. And when unreserving it will check if there is a quants with 25
      units with the lot and if it's not found 25 units without lot. But never
      25 units of quants with lots and without lots.
      
      opw-2419444
      
      Close #64497
      
      closes odoo/odoo#66029
      
      X-original-commit: 217c76b11e6c2bb5bf861284343c87b4ca241da1
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      3b59d0b1
  5. Feb 17, 2021
    • Mohammed Shekha's avatar
      [FIX] web: fix issue of notebook page with invisiblity modifier · a0b5ecd3
      Mohammed Shekha authored
      
      before this commit: when there is only one page in the notebook tag and
      there is a boolean field in form to show/hide that notebook page based on
      invisibility attrs, if we toggle boolean field notebook hides, that's OK
      but when we toggle boolean field again then notebook page is displayed but
      it is not active and due to that content of notebook page is not displayed.
      
      after this commit: when there is only one page in notebook and it has attrs
      for invisibilty, when we toggle boolean field to hide/show notebook page
      then notebook page as well as content is toggled.
      
      task-2449053
      
      closes odoo/odoo#66241
      
      X-original-commit: 33e2c947f5af3bf4bd8944e5adc3a02a2f07243b
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      a0b5ecd3
  6. Feb 16, 2021
  7. Feb 11, 2021
  8. Feb 13, 2021
  9. Feb 16, 2021
    • Nicolas Lempereur's avatar
      [FIX] base: mail signature CSS inlined for icons etc · a723bcbe
      Nicolas Lempereur authored
      
      The mail signature of an user did not inline the CSS like the body of a
      message, so for example icons seemed to work but would not be seen
      (unless the mail reader had the same font-awesome system).
      
      With this change we inline the signature too.
      
      On edition there was also an issue since the original icon was saved as
      data-class which was stripped: so eg. when editing a mail.message with
      working icon, the icons would disappear.
      
      opw-2453912
      
      closes odoo/odoo#66216
      
      X-original-commit: 29347ceefa1f83a350a544a02d040e69f2906aaf
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      a723bcbe
  10. Feb 15, 2021
  11. Jan 21, 2021
  12. Feb 15, 2021
  13. Feb 12, 2021
    • Laurent Smet's avatar
      [FIX] account: Set memo to ref if not payment_reference · 10274903
      Laurent Smet authored
      
      Issue
      
      	- Install "Accounting" module
      	- Create a new bill :
      	- Set vendor
      	- Set no payment reference
      	- Set a bill reference
      	- Add products to bill
      	- Confirm and click on Register Payment
      
      	Memo field has no value.
      
      Cause
      
      	The memo field is based on lines name.
      	Lines name is computed in `_onchange_payment_reference`
      	and depends only on payment_referecence.
      
      Solution
      
      	If no `payment_reference`, fallback on `ref` to set line name.
      
      opw-2440389
      
      closes odoo/odoo#66032
      
      Co-author: nboulif <bon@odoo.com>
      Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
      10274903
  14. Feb 15, 2021
  15. Feb 14, 2021
  16. Feb 12, 2021
    • Nicolas Lempereur's avatar
      [FIX] web: show more text of short calendar event · b856d312
      Nicolas Lempereur authored
      
      In a4d170ad there were some improvment to not show event totally empty
      on the day calendar view because of different style (font + padding).
      
      The lower part of the text was still a little cut, this commit try to
      improve this for week and day view mode by removing 5 additional pixels.
      
      opw-2422700
      
      closes odoo/odoo#66078
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      b856d312
    • Mohammed Shekha's avatar
      [IMP] web: fix UI glitch on image widget when too smal image · c1a45f58
      Mohammed Shekha authored
      
      with this commit, we fixes UI glitch on image widget when image is too small,
      when hovering over too small image Edit and Delete icon will ne displayed but
      it is displayed with glitch, so to avoid that glitch we added min-width to
      icons div.
      
      task-2376452
      
      closes odoo/odoo#66056
      
      X-original-commit: 7aaad848
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      c1a45f58
    • Nicolas Lempereur's avatar
      [FIX] rating: use website language if full frontend · ebee0a7a
      Nicolas Lempereur authored
      
      The route for customer rating force the customer language.
      
      If website is installed, this overrides the normal language so if
      current website language is spanish and customer is english, either:
      
      - we will have a page with two languages mixed with language selector
        set on spanish but showing mostly english
      
      - or if english is not installed, we get an error
      
      With this changeset, if website is intalled we just let it handle
      language (previous language used, or if not browser language, ...).
      
      Not necessary in 12.0 since we did not use frontend_layout (e9be0bb1).
      
      opw-2449678
      
      closes odoo/odoo#66055
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      ebee0a7a
    • Wolfgang Taferner's avatar
    • Mohammed Shekha's avatar
      [IMP] web: list multi-edit: discard, cancel then save · 18ed619b
      Mohammed Shekha authored
      
      In a list view that allows the multi edition, select several
      records, edit a field, and 'click' on Discard. In the confirm
      dialog, click on 'Cancel'. The row is still in edition and the
      changes are still there. However, before this commit, clicking
      on 'Save' did nothing.
      
      The reason is that the 'Save' button is fake. Typically, clicking
      on it triggers a 'field_changed' event, thus saving the selected
      records. In this above scenario, the changes have already been
      notified, so nothing happens when the user clicks on 'Save'.
      
      This commit fixes the issue by storing the last 'field_changed'
      event, and re-triggering it when necessary. This isn't the cleaner
      way to handle that scenario, but it is the simpler, so we go for
      it in stable. In master, it would be nice to rework the multi
      edition feature with this scenario in mind.
      
      task-2376233
      
      closes odoo/odoo#62652
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      18ed619b
  17. Feb 11, 2021
  18. Feb 10, 2021
    • Goffin Simon's avatar
      [FIX] mrp: Print BOM / BOM structure & cost · 994355da
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Install manufacturing app
      - Create a product A
      - Create a Bill of Materials for product A
      - Archive Product A (Only the final product not any of the components)
      - Print BOM or Print BOM Structure & Cost
      
      Bug:
      
      A traceback was raised
      
      opw:2447514
      
      closes odoo/odoo#65856
      
      X-original-commit: 80d4fb9f
      Related: odoo/enterprise#16258
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      994355da
  19. Feb 11, 2021
  20. Feb 10, 2021
    • Munaf Khan's avatar
      [FIX] crm: prevent crash due to invalid system parameter · ead10c7e
      Munaf Khan authored
      
      Right now, if someone changes the `crm.pls_start_date` system parameter
      to something that is not valid, opening a settings gives you traceback.
      
      This commit improves the behavior by making sure that the compute field on
      settings page `predictive_lead_scoring_start_date` always contains a valid
      date. For doing so, if the system parameter is not a valid date(or not set
      or deleted), we set the above field to the date 8 days prior to current
      date, and thus, when saving the settings, the system parameter is again
      set with a valid date.
      
      closes odoo/odoo#65111
      
      Taskid: 2448248
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      ead10c7e
  21. Feb 11, 2021
Loading