Commits on Source (18)
-
Isaac Gallart Bochons authored
When Odoo is installed with the latest version of the PostgreSQL client (postgres-client or postgres-client-16) and running in Docker (possibly other environments as well but not reproduced so far), executing `pg_dump` via `exec_pg_command` fails with Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpmnqiktog/dump.sql', '15TEST') error 1 This seems to be because `os.devnull` is being opened in *read* mode which is incorrect (as it's written to). It's not entirely clear if older `pg_dump` simply ignored the non-writable stdout or if docker adds some restrictions which cause the failure. Either way this can be solved by either opening `os.devnull` in write mode or switching to the `DEVNULL` constant. While the function is deprecated in 16.0 (7f14631f) and removed in master (ae3056f3) the latter is not a huge change and it a touch cleaner. fixes #139687 closes odoo/odoo#143198 Forward-port-of: odoo/odoo#142987 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
-
Odoo Translation Bot authored5cd0df5c
-
OCA Git Bot authoredfbea2f02
-
Pedro M. Baeza authored
[14.0][FIX] base: postgres subprocess error when dumping database
-
Thomas Lefebvre (thle) authored
Backport of commit: https://github.com/odoo/odoo/commit/4ac35f11703282494e4d844afbd0cbc6bd292292 closes odoo/odoo#143123 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
6073378e -
OCA Git Bot authoredcdbe4888
-
Odoo Translation Bot authored8744d263
-
OCA Git Bot authored2b2cfbdf
-
Odoo Translation Bot authoreda543ebd6
-
OCA Git Bot authored02fa521c
-
Emanuele authored
Before this commit, since we are no longer in 2023, the test failed because there is no longer 2021 in the filters dynamically added in the dropdown of the date filter. The reason is now we have the current year, the previous one, and the one before, that is, 2024, 2023, 2022. This commit adds a patchDate to be sure we will start the test in 2023, to get the expected filters displayed (2023, 2022, 2021). closes odoo/odoo#147899 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
adb6739e -
OCA Git Bot authoredd2b5d2d1
-
Arnold Moyaux authored
This reverts commit 652edc38527b14995f017d514053a57825091813. It creates a new issue with valuation change. Steps to reproduce: -Create a new product with a cost of 10 (std, manual) -Create an inventory adjustment to set the quantity to -3 -Change the product's category to real-time -Now the valuation for this product is -30€, but the accounting part has 30€, creating a difference of 60€." A better solution to fix both issues has been tried but it was far from optimal. Since it's an edge usecase we will not support it until master closes odoo/odoo#147949 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
eb65f7d1 -
OCA Git Bot authored63ad4931
-
Odoo Translation Bot authored1485ff1e
-
OCA Git Bot authored518aaefb
-
François Honoré authored
When a user try to import (to edit) some account.tax, some verification are done on pos.order.line. The search is done in sudo but the read is executed with the current logged user. So pos.order.line from others companies are check with a user who don't have access to these companies. And the AccessError exception is triggered. This PR aims to fix the permission issue by adding a sudo() for the read on pos.order.line closes odoo/odoo#145565 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
1c22f6bd -
OCA Git Bot authored9bb7a640