-
- Downloads
[IMP] sale: Use a 'cached' pricelist rule mechanism
Cache the pricelist rule used for price computation in a dedicated non stored field, since it is used both for the price_unit and the discount computation. This divides by 2 the number of pricelist requests/queries when discounts computation is enabled.
Showing
- addons/event_sale/models/event_ticket.py 3 additions, 0 deletionsaddons/event_sale/models/event_ticket.py
- addons/product/models/product.py 1 addition, 1 deletionaddons/product/models/product.py
- addons/product/models/product_pricelist.py 14 additions, 2 deletionsaddons/product/models/product_pricelist.py
- addons/product/models/product_template.py 2 additions, 1 deletionaddons/product/models/product_template.py
- addons/sale/models/sale_order_line.py 56 additions, 18 deletionsaddons/sale/models/sale_order_line.py
- addons/sale/tests/test_sale_pricelist.py 2 additions, 0 deletionsaddons/sale/tests/test_sale_pricelist.py
- addons/sale_management/models/sale_order.py 4 additions, 3 deletionsaddons/sale_management/models/sale_order.py
- addons/sale_stock/tests/test_create_perf.py 9 additions, 7 deletionsaddons/sale_stock/tests/test_create_perf.py
- addons/website_sale/models/sale_order.py 1 addition, 0 deletionsaddons/website_sale/models/sale_order.py
Loading
Please register or sign in to comment