Tryton merge requestshttps://foss.heptapod.net/tryton/tryton/-/merge_requests2024-01-04T17:40:44Zhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/1080Sort correclty eager and lazy fields when calling Form.display2024-01-04T17:40:44ZNicolas ÉvrardSort correclty eager and lazy fields when calling Form.displayCloses #12890Closes #12890Nicolas ÉvrardNicolas Évrardhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/1078Take advantage of the nested read API2024-03-26T17:15:52ZNicolas ÉvrardTake advantage of the nested read APINicolas ÉvrardNicolas Évrardhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/1020Order xxx2Many targets by id origin instead of order name2023-12-23T11:37:13ZCédric Kriercedric.krier@b2ck.comOrder xxx2Many targets by id origin instead of order nameThe ordering is only to group records for cache alignment, so ordering by id
avoid to have to join on the origin table.
Closes #12795The ordering is only to group records for cache alignment, so ordering by id
avoid to have to join on the origin table.
Closes #12795Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/1018Remove usage of set_user to skip check access2023-12-12T23:40:26ZCédric Kriercedric.krier@b2ck.comRemove usage of set_user to skip check accessSince ce8d7a19766a the access rule are enforced only if check access is set.Since ce8d7a19766a the access rule are enforced only if check access is set.Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/977Do not instanciate transaction multiple times when computing sale price2023-11-19T11:11:42ZSergi Almacellas AbellanaDo not instanciate transaction multiple times when computing sale priceSergi Almacellas AbellanaSergi Almacellas Abellanahttps://foss.heptapod.net/tryton/tryton/-/merge_requests/951Do not prevent to fill the cache of fields with a context2023-12-12T22:04:05ZNicolas ÉvrardDo not prevent to fill the cache of fields with a contextThe value of those fields in the database do not depend of the context.
We shouldn't prevent to eagerly load other fields either.
Closes #12715The value of those fields in the database do not depend of the context.
We shouldn't prevent to eagerly load other fields either.
Closes #12715Nicolas ÉvrardNicolas Évrardhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/950Enforce date modification on fiscal year and period2023-11-19T10:49:48ZCédric Kriercedric.krier@b2ck.comEnforce date modification on fiscal year and periodCloses #12667Closes #12667Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/906Optimize update of customer move when drop shipment is set to waiting2023-11-23T21:31:43ZCédric Kriercedric.krier@b2ck.comOptimize update of customer move when drop shipment is set to waitingBy using One2Many fields, it is possible to avoid custom search and use nested
single loop to update the customer moves.By using One2Many fields, it is possible to avoid custom search and use nested
single loop to update the customer moves.Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/881Share record's _ids when saving new records2023-11-11T13:11:56ZNicolas ÉvrardShare record's _ids when saving new recordsCloses #12657Closes #12657Nicolas ÉvrardNicolas Évrardhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/862Remove EGG_MODULES to rely only on imported module path2023-10-18T14:04:35ZCédric Kriercedric.krier@b2ck.comRemove EGG_MODULES to rely only on imported module pathCédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/851Use list comprehension to filter internal order point2023-10-14T13:38:52ZCédric Kriercedric.krier@b2ck.comUse list comprehension to filter internal order pointIt prevents to make a query to the database.It prevents to make a query to the database.Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/842Draft: Simplify RNC syntax2024-01-30T15:45:11ZCédric Kriercedric.krier@b2ck.comDraft: Simplify RNC syntaxThe idea is to use the full power of [RNC syntax](https://relaxng.org/compact-tutorial-20030326.html) with grammar and XSD datatype, and combining attribute definition to avoid #12617.The idea is to use the full power of [RNC syntax](https://relaxng.org/compact-tutorial-20030326.html) with grammar and XSD datatype, and combining attribute definition to avoid #12617.Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/802Remove user and employee from rule context and cache2023-10-07T10:44:40ZCédric Kriercedric.krier@b2ck.comRemove user and employee from rule context and cacheThis gives more chances to hit the cache as there is less sets of groups than users.
Also to remove some core rules (which should never be customized), this provide a simpler API for the clients.
Closes #12581This gives more chances to hit the cache as there is less sets of groups than users.
Also to remove some core rules (which should never be customized), this provide a simpler API for the clients.
Closes #12581Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/799Remove extra button group access2023-10-07T09:16:40ZCédric Kriercedric.krier@b2ck.comRemove extra button group accessSince ab05d05bb811 there is no need to have access defined on button if they
are the same as the write access on the model.
Closes #12578Since ab05d05bb811 there is no need to have access defined on button if they
are the same as the write access on the model.
Closes #12578Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/761Backed out changeset 10e16de6a4942023-09-09T07:12:50ZCédric Kriercedric.krier@b2ck.comBacked out changeset 10e16de6a494Applying the domain on the LEFT JOIN create wrong result because the fallback
value (from COALESCE) is then used even if a valid translation exists.
Closes #11781Applying the domain on the LEFT JOIN create wrong result because the fallback
value (from COALESCE) is then used even if a valid translation exists.
Closes #11781Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/747Improve test performances under postgresql2023-10-02T10:08:08ZNicolas ÉvrardImprove test performances under postgresqlThis merge request contains two changes:
- The first one allows to use database templates as the storing place for the test databases under postgresql
- The second one uses the `-j` switch of `pg_dump` and `pg_restore` in order to speed...This merge request contains two changes:
- The first one allows to use database templates as the storing place for the test databases under postgresql
- The second one uses the `-j` switch of `pg_dump` and `pg_restore` in order to speed up the restoring of the test cache databases.
Here's the result on the `stock` module tests (time in seconds):
| | Single Process | Multi Process | Template | SQLite |
| --- | --- | --- | --- | --- |
| Dump | 177 | 158 | 124 | 71 |
| Restore | 166 | 136 | 103 | 57 |Nicolas ÉvrardNicolas Évrardhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/742Remove unused _location_amount from customer shipment2023-08-27T11:10:56ZCédric Kriercedric.krier@b2ck.comRemove unused _location_amount from customer shipmentThe method was introduced by a3aa9d985589 for the assign_try method but it is
no more used.The method was introduced by a3aa9d985589 for the assign_try method but it is
no more used.Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/740Remove biginteger widget from tryton and sao2023-08-27T09:27:26ZCédric Kriercedric.krier@b2ck.comRemove biginteger widget from tryton and saoSince 73fe133d7a2c trytond does not have anymore a biginteger type.Since 73fe133d7a2c trytond does not have anymore a biginteger type.Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/727Support add/update/remove/delete for on_change_with of xxx2Many2023-09-10T21:58:26ZCédric Kriercedric.krier@b2ck.comSupport add/update/remove/delete for on_change_with of xxx2ManyCloses #12473, #12474Closes #12473, #12474Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.comhttps://foss.heptapod.net/tryton/tryton/-/merge_requests/680Do not apply unaccent when searching on number fields2023-08-14T22:58:16ZCédric Kriercedric.krier@b2ck.comDo not apply unaccent when searching on number fields#12435#12435Cédric Kriercedric.krier@b2ck.comCédric Kriercedric.krier@b2ck.com