Sunday, December 18, 2022
4 changes · master
Miscellaneous changes
It was reported the following error: ``` psycopg2.errors.DatatypeMismatch: column "country_id" is of type integer but expression is of type boolean LINE 9: false, 1, NULL, 4, 4, ``` The root cause is unknown, it's not yet sure how this is happening exactly. This commit is then fixing naively the consequence. Somehow, GEOIP is returning a country code which does not exists in Odoo for this error to appear. It's normally not possible.
Original PR description
It was reported the following error:
```
psycopg2.errors.DatatypeMismatch: column "country_id" is of type integer
but expression is of type boolean
LINE 9: false, 1, NULL, 4, 4,
```
The root cause is unknown, it's not yet sure how this is happening exactly.
This commit is then fixing naively the consequence.
Somehow, GEOIP is returning a country code which does not exists in Odoo for this error to appear. It's normally not possible.
There is multiple possible case that would lead to this error:
- The user modified the `code` field of a country in his DB (unlikely)
- The user deleted a country in his DB (unlikely)
- The GEOIP database is returning a country which does not exists in Odoo. This is the most probably case, even if the latest up to date `GeoLite 2 City` seems to have the exact same country code list as in Odoo 16.0 (250 exact same ones).
Forward-Port-Of: odoo/odoo#107724This commit fixes an issue with shape elements sometimes having tiny spacing on their top or bottom edge. This issue is only on Chrome when the user has changed the page zoom. When the page is zoomed the elements can have a width value with a decimal part. Because of it, the size of the SVG background images are not correctly rounded compared to their container and therefore leaves a visible space. Steps to reproduce the bug: - On Chrome, add several shapes on a website page. - Ch
Original PR description
This commit fixes an issue with shape elements sometimes having tiny spacing on their top or bottom edge. This issue is only on Chrome when the user has changed the page zoom. When the page is zoomed…
This commit fixes an issue with shape elements sometimes having tiny spacing on their top or bottom edge. This issue is only on Chrome when the user has changed the page zoom. When the page is zoomed the elements can have a width value with a decimal part. Because of it, the size of the SVG background images are not correctly rounded compared to their container and therefore leaves a visible space. Steps to reproduce the bug: - On Chrome, add several shapes on a website page. - Change the zoom of the page and change the window width. - At some points, the gap will appear. The least bad solution we found to fix this is to ensure that the width of the shape elements is always as close to an integer as possible. Several commits had attempted to fix this before ([1], [2], [3], [4]). But that wasn't enough to stop it happening. [1]: https://github.com/odoo/odoo/commit/c0f62593a4da37e8404dddc0a5762879a5ebbf7f [2]: https://github.com/odoo/odoo/commit/ac82407b259eab929486bf0a333a48bc507efa60 [3]: https://github.com/odoo/odoo/commit/42b3ad10e0b32b7fc72f801e2c67d6baf938c566 [4]: https://github.com/odoo/odoo/commit/e386f318f5cff50901dba3db8a2587911ba02a6e task-2824607 opw-3069213 opw-3057533 Forward-Port-Of: odoo/odoo#108117 Forward-Port-Of: odoo/odoo#107492
There is an unnecessary reload of account.move.line caused by the asynchronous orm call. Adding an await statement resolves this issue Also debounce form view button clicks. Forward-Port-Of: odoo/enterprise#35055
Original PR description
There is an unnecessary reload of account.move.line caused by the asynchronous orm call. Adding an await statement resolves this issue Also debounce form view button clicks. Forward-Port-Of: odoo/enterprise#35055
Before this commit search more dialog title for timer header fields display its actual name instead of string for ex: 'project_id' instead of 'Project' because timer header fields missing a string attribute. This commit add string attribute for timer header project and task field. task-3081393 Forward-Port-Of: odoo/enterprise#34373
Original PR description
Before this commit search more dialog title for timer header fields display its actual name instead of string for ex: 'project_id' instead of 'Project' because timer header fields missing a string attribute. This commit add string attribute for timer header project and task field. task-3081393 Forward-Port-Of: odoo/enterprise#34373