Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
87f55a78 by Nicolas Évrard at 2024-05-25T12:50:02+02:00
Optimize instance creation in ModelStorage.__getattr__

The kwargs and pysoned context are put in a cache to avoid rebuild them for
each similar instance.

Closes #13245
- - - - -
40615f3e by Nicolas Évrard at 2024-05-25T12:59:45+02:00
Use read to fetch reverse field value of x2M field in field get

This avoid to create instances for origin or target just to get their id.

Closes #13245
- - - - -


3 changed files:

- trytond/trytond/model/fields/many2many.py
- trytond/trytond/model/fields/one2many.py
- trytond/trytond/model/modelstorage.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/a9e90ec5c9fb1f1ca95f7c55ccf244732c01bb60...40615f3e3e8e5f8332d1ab99c72ce4998aacfb03

-- 
This project does not include diff previews in email notifications.
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/a9e90ec5c9fb1f1ca95f7c55ccf244732c01bb60...40615f3e3e8e5f8332d1ab99c72ce4998aacfb03
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to