yezyilomo / odoo-rest-api

Module which expose Odoo as a REST API
MIT License
209 stars 169 forks source link

Improve serialization performance for Odoo 17 #80

Open dloewen opened 3 months ago

dloewen commented 3 months 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.