Skip to content
Snippets Groups Projects
  1. Aug 01, 2021
  2. Jul 30, 2021
  3. Apr 01, 2021
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] product_email_template: avoid traceback when referring to "object" · 67bdd9ca
      Andrea Grazioso (agr-odoo) authored
      
      1. Activate 'Deliver Content by Email' in the Sales>Configuration>Settings
      2. Create a mail template with Product Template for 'Applies to' and
      a dynamic field (e.g. ${object.company_id.name}) in the body
      3. Add this mail template on a [DEMO] product 'Automatic Email at
      Invoice' field, in the Sales tab
      4. Create an invoice with [DEMO], confirm it.
      5. If the ID of the invoice does not exist as a product.product, you get a
      traceback
      
      The reason is that the model used for the template rendering is the
      one specified on the template, but the res_id given to the composer
      is the one from the invoice.
      
      opw-2476169
      
      closes odoo/odoo#68339
      
      X-original-commit: 9c7d7f01
      Signed-off-by: default avataragr-odoo <agr-odoo@users.noreply.github.com>
      67bdd9ca
  4. Jul 29, 2021
    • Nicolas Lempereur's avatar
      [FIX] website: special character ok in menu label · e788008f
      Nicolas Lempereur authored
      
      Edit a website menu label with:
      
          & < > " ` '
      
      This is what is shown after saving:
      
         &amp; &lt; &gt; &quot; &#x60; &#x27;
      
      This is happening since ea4dbcd2: characters &, <, >, ", `, and ' are
      now always escaped. Before that commit, only < and > where escaped and
      only when an image was inside the label.
      
      With this change, we unescape the label when we are editing a menu.
      
      opw-2609413
      
      closes odoo/odoo#74429
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      e788008f
  5. Jul 30, 2021
  6. Jul 28, 2021
  7. Jul 30, 2021
    • Benjamin Vray's avatar
      [FIX] website, *: prevent bottom fixed elements from hiding buttons · 1cdd1f2f
      Benjamin Vray authored
      
      *: web, website_livechat, website_sale_comparison
      
      Before this commit, bottom fixed elements (e.g. the livechat button)
      hid the buttons to go to the next step in website sale when these
      buttons are located at the bottom of the page, on some screen sizes.
      
      After this commit,
      
      - A bottom fixed element is hidden if this element hides a button at
      the bottom of the page.
      
      - Bottom fixed elements are hidden if a modal is open
      to prevent it to hide buttons or any important part of the modal.
      
      task-2501400
      
      closes odoo/odoo#69296
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      1cdd1f2f
  8. Jul 29, 2021
  9. Jul 28, 2021
  10. Jul 26, 2021
  11. Jul 29, 2021
  12. Jul 28, 2021
  13. Jul 22, 2021
  14. Jul 27, 2021
  15. Jul 29, 2021
    • Sylvain Francis's avatar
      [FIX] point_of_sale: Don't fail when manually running scheduler · 7b527834
      Sylvain Francis authored
      
      When running the scheduler manually with a user who has no read access on pos.session (and point_of_sale is installed),
      the run fails silently for the user, and shows an error in the logs.
      "_alert_old_session" runs with the user's rights, who might have POS access.
      
      This commits runs the problematic search with sudo to work around this
      issue.
      
      closes odoo/odoo#74409
      
      X-original-commit: 5ab9a317
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      7b527834
    • Nicolas Lempereur's avatar
      [FIX] mrp_subcontracting: no operation if subcontracting · 41c7bd14
      Nicolas Lempereur authored
      
      When setting a Bill or Material to subcontracting, the "Operations" tab
      is hidden. But it still effect eg. BoM Structure & Cost report.
      
      With this changeset, we get an error when we save a subcontracting BoM
      that has operations.
      
      opw-2513637
      
      closes odoo/odoo#74382
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      41c7bd14
    • Touati Djamel (otd)'s avatar
      [FIX] account, hr_expense: fix reconciliation function · fb2b1482
      Touati Djamel (otd) authored
      Steps to reproduce the bug:
      - Install Accounting and Expense app
      - Go to accounting settings > enable cash basis option
      - Go to accounting > configuration > accounting > taxes
      - Create a new tax or choose an existing one e.g “Tax abc”:
      Tax Computation = `”Percentage of Price”`
      Tax Type = `”Purchases”`
      Choose any value for amount
      Select "Based on Payment" in tax due
      choose an account with the "Allow Reconciliation" option activated in the Cash Basis Transition Account field
      Save
      
      - Go to expenses > Expense Reports > All reports > Create a new one :
      	- Add 2 expense and for both set up the taxes to "Tax abc" and unit price > 0
      - Submit to manager
      - Approve
      - Post journal entries
      - Register a payment
      
      Problem:
      A user error with the following message is triggered: “You are trying to reconcile some entries that are already reconciled”
      
      In the use case we have two expenses and for each, an `" account.partial.reconcile "` will be created,
      so we will loop twice and therefore add twice all the `”account.move.line”` linked to the taxes
      in the dict `" to_reconcile_after "`: https://github.com/odoo/odoo/blob/beccf82e09d536255d9d9cb9bfe58ebae2559843/addons/account/models/account_partial_reconcile.py#L585
      
      
      
      Then we loop to reconcile all the `" account.move.line "` which are in the dict `" to_reconcile_after "`,
      but since we added them all twice, at each turn of the loop we give them all as a parameter
      of the “reconcile” function without checking whether they are already reconciled or not.
      
      opw-2565934
      
      closes odoo/odoo#74373
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      fb2b1482
  16. Jul 28, 2021
  17. Jul 29, 2021
  18. Jul 28, 2021
    • Mohammed Shekha's avatar
      [FIX] purchase: grouped kanban view displayed after dashboard value div · 067bb35a
      Mohammed Shekha authored
      
      before this commit: when purchase order kanban view grouped then it is not displayed
      below dashboard value div, it is displayed besides it so grouped kanban view is not
      displayed and screen has horizontal scroller, to view kanban view user have to
      scroll screen.
      
      after this commit: purchase order grouped kanban view will be displayed below
      dashboard value div.
      
      task-2366797
      
      closes odoo/odoo#60597
      
      Signed-off-by: default avatarSimon Genin (ges@odoo) <ges@odoo.com>
      067bb35a
    • Hubert (huvw)'s avatar
      [FIX] stock,purchase_stock: multi-company issue on routes with a single company · 59e76779
      Hubert (huvw) authored
      
      Step to follow
      
      Do not activate multiple companies, keep it standard to 1
      Enable multi-locations and routes
      Create a second location for raw materials and a new Receipt operation type with the new location as destination location
      Go to routes -> edit the buy route -> add a second rule with "Buy" and save.
      
      Cause of the issue
      
      When a stock rule is created from a stock route, the default company
      cannot be found as there is none assigned to the stock route.
      
      Solution
      
      Override the default_get method for stock rules in order to use the
      current company
      
      opw-2578984
      
      closes odoo/odoo#74367
      
      X-original-commit: 2b8d7d76
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      59e76779
    • Gorash's avatar
      [FIX] website: avoid traceback when going to options of some themes · 997c8f1b
      Gorash authored
      
      Issue: traceback when website editor is entered and theme options are
      clicked on themes using an unknown-to-the-editor font family (see for
      the theme repo fix for such an example).
      
      opw-2559735
      
      closes odoo/odoo#74294
      
      Related: odoo/design-themes#268
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      997c8f1b
  19. Jul 22, 2021
  20. Jul 27, 2021
    • prro-odoo's avatar
      [FIX] delivery: demo Delivery Products pulled into invoice · db5617a0
      prro-odoo authored
      
      How to reproduce the problem:
      - Install the delivery module
      - Create an SO and add a product. Click on Add Shipping.
      - Choose one of the demo Shipping methods
      - Deliver the main product.
      - Create an invoice: the Delivery Product is not present in the invoice, unless previously manually set as delivered in the SO.
      
      Cause of the problem : the demo values were having their Invoicing Policy set to Delivered Quantity instead of Ordered Quantity (due to the Sale app changing the default Invoicing Policy in 14.0)
      
      Solution : The demo products now have their Invoicing Policy set to Ordered Quantity manually.
      No further modification are needed in the creation of Delivery Products, as they have the correct values (when created from the Shipping Method form)
      
      opw-2496202
      
      closes odoo/odoo#74349
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      db5617a0
  21. Jul 26, 2021
  22. Jul 27, 2021
    • Pierre Masereel's avatar
      [FIX] pos_restaurant: don't mark order as printed · 7504dd34
      Pierre Masereel authored
      
      When the final receipt of an order is printed, the order is marked as
      printed, as it can be then removed, and nothing can be added to it
      anymore.
      
      When the Bill is printed, we should not mark it as printed, as there
      can be some modifications made after the bill is printed.
      
      So as the bill receipt is an inherited object from the final receipt, we
      have to change the behavior for the bill receipt to not mark the order
      as printed.
      
      OPW-2555272
      
      closes odoo/odoo#74317
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      7504dd34
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] mrp: fix recursive procurement handling in orderpoint · ac9975d0
      Andrea Grazioso (agr-odoo) authored
      
      Have 3 products:
      - Product A, manufactured from Product B, RR min 20 max 200
      - Product B, manufactured from Product C, RR min 20 max 200
      - Product C, stored, not manufactured, RR min 20 max 200
      
      1. When triggering the scheduler, reordering rule are evaluated in
      batch, so procurements will be generated both for A and B.
      2. The manufacture orders are created from procurement values:
      2.A When manufacturing A, B is needed: the RR is triggered again and
      will evaluate again ALL the quantity needed for B (400, including the
      quantity already processed at step 1, but not yet written in a MO)
      2.B Manufacture order for B is created from procurement values at step1,
       creating a MO for another 200 units
      
      We end up manufacturing 600 instead of 400 of Product B
      
      Fix by partially backporting bf5e1deb
      along with a test
      
      opw-2509399
      
      closes odoo/odoo#74314
      
      Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
      ac9975d0
    • Gorash's avatar
      [FIX] web: avoid a scrollbar when a carousel is added in pages · c29060c8
      Gorash authored
      
      On Chrome, the browser displayed an horizontal scrollbar because the
      sr-only item inside the 'next' arrow was positioned absolutely, outside
      of the arrow, and thus outside of the window. This happened for the
      website carousel snippet when added in pages for instance.
      
      opw-2585526
      
      closes odoo/odoo#74306
      
      X-original-commit: 5bb45452
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      c29060c8
    • wan's avatar
      [IMP] account: warn when the sequence format changed · 56f7afb2
      wan authored
      
      Explain the situation when a manual change has been done to the sequence
      of `account.move`. This was needed because some user didn't realize that
      they changed the sequence, and when they realized it, it had polluted
      multiple numbers after that.
      
      closes odoo/odoo#70941
      
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      56f7afb2
  23. Jul 26, 2021
    • Achraf (abz)'s avatar
      [FIX] account: Add layout to action send and print · 7fd4dea0
      Achraf (abz) authored
      
      When sending the same invoice from Invoices > list view > select an invoice > action > Send and print, the email received by the client does not contain the header and the link to the invoice
      
      This PR adds the custom_layout attribute to the context of "Send & Print" action
      
      opw-2544654
      
      closes odoo/odoo#74250
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      7fd4dea0
  24. Jul 27, 2021
  25. Jul 23, 2021
  26. Jul 26, 2021
    • Anh Thao Pham (pta)'s avatar
      [FIX] hr_timesheet: fix incorrect company on timesheet report · fb13be1b
      Anh Thao Pham (pta) authored
      
      - Create 2 companies (i.e. Company A & Company B)
      - Create user with access to both companies and default company set to Company B
      - Log with created user
      - Switch to Company A
      - Go to Project and create a new Project (i.e. Project X)
      - Go to Timesheets and add a line for Project X
      - Display all timesheets in list view
      - Select created timesheet and print "Timesheet Entries"
      Logo and address printed on timesheet report are from Company B.
      
      Company used for timesheet report is default company of current user.
      
      This fix will use company linked to the project if it is unique.
      Otherwise, it will use current company.
      
      opw-2502182
      opw-2509463
      
      closes odoo/odoo#74265
      
      X-original-commit: 08126415
      Signed-off-by: default avatarLTU-Odoo <IT-Ideas@users.noreply.github.com>
      fb13be1b
    • Swapnesh Shah's avatar
      [FIX] website: do not allow to create/edit views · e8c5302e
      Swapnesh Shah authored
      
      Before this commit,
      User was allowed to create new records from form view through
      Graph view' action. Since we do not have a way to prevent opening
      form view from Graph and also we should not Introduce new form view
      on stable version.
      
      With this commit,
      we are disabling create/edit/copy from action.
      
      closes odoo/odoo#70820
      
      Signed-off-by: default avatarRomain Derie <rdeodoo@users.noreply.github.com>
      e8c5302e
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] web: fix property assignment in pivot view · d783ab83
      Andrea Grazioso (agr-odoo) authored
      
      Sales > Reporting > Sales
      Select the measure "Customer (count)"
      
      TypeError: Cannot add property group_operator, object is not extensible
      
      As the object is immutable we need to workaround the assignment.
      The previous fix 35967fab
      will be moved in the `documents_spreadsheet` code
      
      opw-2606424
      
      closes odoo/odoo#74211
      
      Related: odoo/enterprise#19859
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      d783ab83
Loading