Skip to content
Snippets Groups Projects
  1. Jun 24, 2019
    • qmo-odoo's avatar
      [IMP] website(_sale)_slides: Add login,join,buy button on quiz · cd8afe85
      qmo-odoo authored
      
      This commit improves the elearning onboarding on the quizzes
      
      If the user is not logged in, a log in button will show up under
      the quiz
      
      If he is logged in but not a member of the course and the course is public,
      a join button will appear under the quiz
      
      If the course needs to be bought, a buy button will appear under the quiz.
      
      If the course is on invite only, a message under the quiz will inform the
      user about it
      
      TaskID: 2003986
      PR: #33861
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      cd8afe85
  2. Jun 27, 2019
  3. Jun 21, 2019
  4. Jun 26, 2019
  5. Jun 24, 2019
  6. Jun 21, 2019
  7. Jun 20, 2019
  8. Jun 19, 2019
    • Xavier Morel's avatar
      [FIX] core: work around ir_logging deadlock · c5c955db
      Xavier Morel authored
      
      DROP CONSTRAINT (even with IF EXISTS is specified) acquires an ACCESS
      EXCLUSIVE lock on the table, preventing e.g. inserts in an other
      transaction, so ir_logging would systematically deadlock if configured
      to the same database and a warning would be triggered during install
      or update (if that ran ir.logging's init).
      
      1. hand-roll the "IF EXISTS" bit, to avoid taking an ACCESS EXCLUSIVE
      lock on the table if the problematic constraint does not exist and
      thus doesn't need to be dropped (which by now should be the vast
      majority of cases).
      
      Replacing DROP CONSTRAINT with DISABLE TRIGGER does not fix the
      issue as *that* acquires SHARE ROW EXCLUSIVE. While that's less
      constraitning than ACCESS EXCLUSIVE, it still conflicts with an
      insert's ROW_EXCLUSIVE.
      
      2. add a timeout to the logging INSERT anyway, the deadlock is still
      an issue if we're updating a database which does have the
      problematic constraint, and we want to preclude the possible
      eventual introduction of new deadlocks in the future.
      
      closes odoo/odoo#34243
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      c5c955db
    • Thanh Dodeur's avatar
      [FIX] base, web: set 304 status in binary_content · f3e10f69
      Thanh Dodeur authored
      
      Before this commit, the No Change status wasn't properly set because
      the `filehash` wasn't passed to `_binary_set_headers` and because
      the status was not changed to 304 if it was already set to 200 earlier.
      
      This commit fixes this issue and also prevents images to be processed
      in `content_image` if the status is 304.
      
      opw-2008426
      
      closes odoo/odoo#34032
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      f3e10f69
  9. Jun 20, 2019
  10. Jun 19, 2019
  11. Jun 20, 2019
    • qsm-odoo's avatar
      [FIX] gamification: restore broken images in non-demo data · 8401c6bf
      qsm-odoo authored
      
      For some strange reasons, the e-learning ranks are created in data but
      the demo data override their motivational message fields.
      Unfortunately, the demo data were ok but the normal data had broken
      images in them.
      
      closes odoo/odoo#34282
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      8401c6bf
    • qsm-odoo's avatar
      [FIX] web_editor: allow fullscreen editor even when inside modal · 6f653ac6
      qsm-odoo authored
      The new editor of https://github.com/odoo/odoo/pull/29775
      
       came with a
      fullscreen option. When using the toggle when the editor is in inside
      a modal, the editor stretched only to match the size of the modal
      instead of the viewport.
      
      This is because the 'position: fixed' rule which is used to achieve the
      fullscreen layout cannot work if a parent of the element has a CSS
      transform applied on it. Indeed in that case, that element acts like the
      viewport for 'position: fixed' elements.
      
      closes odoo/odoo#34272
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      6f653ac6
    • mgh-odoo's avatar
      [FIX] point_of_sale: discount applied twice · 42413faf
      mgh-odoo authored
      
      * Setup an IoTBox connected to a receipt printer
      * In POS Config:
      - IoT Box: check "IoTBox", set the IP of the Box and check "Receipt Printer"
      - Pricing: Select "Tax-Included Price"
      * Start the POS, select any product
      * Click on "Disc" on the virutal keyboard on the bottom left of the POS
      * Enter the amount of the discount
      * Validatate payment (Click "Payment" > "Cash" > Enter Amount > "Validate")
      * A ticket should print on the receipt printer:
      - The price in the rigth column is correct
      
      Current behaviour:
      * In the left column, it shows : Product name, Base price, Discount: X%, 1 x Price --> This price is not correct, it shows the price with the discount applied twice.
      
      Expected behaviour:
      * Discount applied once everywhere on ticket.
      
      task-1978564
      
      closes odoo/odoo#34278
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      42413faf
    • mgh-odoo's avatar
      [FIX] point_of_sale: wrong price on receipt fix · 1f62977d
      mgh-odoo authored
      
      Before this commit, if a user select option 'tax-Included Price' in pricing
      from pos.config and sale product with a discount, it is first displaying
      price without tax instead of the price including tax.
      
      Task-2002464
      Closes #33733
      
      closes odoo/odoo#34259
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      1f62977d
  12. Jun 19, 2019
  13. Jun 20, 2019
  14. Jun 19, 2019
  15. Jun 18, 2019
Loading