Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote very slow on save #2784

Open
petec81 opened this issue Nov 17, 2023 · 5 comments
Open

Quote very slow on save #2784

petec81 opened this issue Nov 17, 2023 · 5 comments
Labels

Comments

@petec81
Copy link

petec81 commented Nov 17, 2023

Module

Sale Order Archive

Describe the bug

after installing the module the sales model turns very slow, when i click "save" on the new quote it takes 3 minutes to save it

To Reproduce

Affected versions: 15

Steps to reproduce the behavior:

  1. created the order without the module installed (2 seconds)
  2. installed the module
  3. created the order with the module installed (3 minutes)

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

@petec81 petec81 added the bug label Nov 17, 2023
@legalsylvain
Copy link
Contributor

Hi. Interesting problem.
Could you mention the number of sale.order / sale.order.line you have in your instance ?
Could you log slow SQL queries and display the result here, to try to understand the source of the slowdown?

thanks !

@pedrobaeza
Copy link
Member

pedrobaeza commented Nov 17, 2023

For me it sounds very weird that the active field provokes that slowness. Please uninstall the module and check again the speed.

@petec81
Copy link
Author

petec81 commented Nov 17, 2023

I have 8799 sale orders in total

here is the sql query in a video. I takes over a minute to save a sale order with only 1 line item. If the module is not installed then its instant.

https://drive.google.com/file/d/1UicJ1wL4etg3y3kN_s91o5kYbXoYETq8/view

@petec81
Copy link
Author

petec81 commented Nov 17, 2023

here is another video showing the module uninstalled and the time it takes after clicking save

https://drive.google.com/file/d/1_0c2CbnQCoOlHGr-J2BLuJ9T4llMff74/view

@pedrobaeza
Copy link
Member

I see several customizations (including Odoo studio) in the SQL trace. Please try the module in a fresh DB to see if you have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants