f5dcbb297d681dadd1f40e0762c4b5c91dea7fa6
Avoid filtering/checking the same condition multiple times on the same records... This allows to avoid n more fetch of all applicable coupon programs from the database (because _check_promo_code is called on each program in a loop). Also apply the date filter directly in SQL: * The computation of inherited fields (_inherits) by the orm is intrinsically slow. The fields rule_date_from and rule_date_to checked in the _filter_on_validity_dates python filter are inherited from sale.coupon.program.rule model. * Filtering recordsets in SQL is faster. closes odoo/odoo#60292 X-original-commit: 679ebc3381179f6b18364c6f2b4d4f7f34274698 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%