yezyilomo / odoo-rest-api

Module which expose Odoo as a REST API
MIT License
202 stars 162 forks source link

Improve serialization performance for Odoo 17 #80

Open dloewen opened 1 month ago

dloewen commented 1 month ago

Replacing fields_get_keys with fields_get results in a large performance penalty (more than 10x slower in some testing).

This is due to the fields_get method having more logic and functionality than necessary, and being extended by various models in Odoo.

This change simply provides _fields from the model similar to previous Odoo versions.